Re: mm/mm_heap assertion error

2024-03-12 Thread Gregory Nutt
On 3/12/2024 5:12 AM, Nathan Hartman wrote: Try Alan's suggestion to use stack monitor, and that will help understand if there is something wrong. (If it shows that old stack size was OK, while we know corruption was happening, then we will know to look for some out of bound write.) Does the stac

Re: mm/mm_heap assertion error

2024-03-12 Thread Gregory Nutt
After enlarging the stack size of "AppBringUp"  thread, the remote node can boot NSH on RPMSGFS now. I am sorry for not trying this earlier. I was browsing the "rpmsgfs.c" blindly and noticed a few auto variables defined in the stack... then I thought it might worth a try so I did it. That is

Re: mm/mm_heap assertion error

2024-03-12 Thread Gregory Nutt
On 3/12/2024 1:10 AM, yfliu2008 wrote: On the other hand, if we choose not mounting NSH from the RPMSGFS, it can boot smoothly and after boot we can manually mount the RPMSGFS for playing. That sounds like an initialization sequencing problem.  Perhaps something is getting used before it has be

Re: Re: Re:Re: mm/mm_heap assertion error

2024-03-12 Thread Alan C. Assis
ruption? > > Also how we can read this stack issue  from stackdump logs? Let > me > > know if you have any hints. > > > > > > Regards, > > yf > > > > > > > > > > > > > > > > > > > > > > > >

Re: Re:Re: mm/mm_heap assertion error

2024-03-12 Thread Nathan Hartman
tack leads to heap corruption? > Also how we can read this stack issue  from stackdump logs? Let me > know if you have any hints. > > > Regards, > yf > > > > > > > > > > > > > > > > > > Original > > > > From

Re: Re:Re: mm/mm_heap assertion error

2024-03-12 Thread Alan C. Assis
e can read this stack issue  from stackdump logs? Let me > know if you have any hints. > > > Regards, > yf > > > > > > > > > > > > > > > > > > Original > > > > From:"yfliu2008"< yfliu2...@qq.com >; > >

Re: mm/mm_heap assertion error

2024-03-11 Thread Gregory Nutt
use it yet. Regards, yf Original From:"Gregory Nutt"< spudan...@gmail.com >; Date:2024/3/11 1:43 To:"dev"< dev@nuttx.apache.org >; Subject:Re: mm/mm_heap assertion error On 3/10/2024 4:38 AM, yfliu2008 wrote: > Dear experts, > > > > >

Re: mm/mm_heap assertion error

2024-03-11 Thread Simon Filgis
fyid=0, > >>>     rsc=0x80200050, rsc_io=0x7080408 priv=0x708ecd8, > >>>     notify=0x704e6d2 rst_cb=0x0) > >>>     at open-amp/lib/remoteproc/remoteproc_virtio.c:356 > >>> #6  0x0704e956 in remoteproc_create_virtio > (rproc=0x708ecd8, > >

Re: mm/mm_heap assertion error

2024-03-11 Thread Gregory Nutt
If the memory location that is corrupted is consistent, then you can monitor that location to find the culprit (perhaps using debug output).  If your debugger supports it then setting a watchpoint could also trigger a break when the corruption occurs. Maybe you can also try disabling features

Re: mm/mm_heap assertion error

2024-03-11 Thread Nathan Hartman
moteproc/remoteproc.c:957 > > #7  0x0704b1ee in rptun_dev_start (rproc=0x708ecd8) > >     at rptun/rptun.c:757 > > #8  0x07049ff8 in rptun_start_worker (arg=0x708eac0) > >     at rptun/rptun.c:233 > > #9  0x0704a0ac in rptun_thread (argc=3, argv=0x7

Re: mm/mm_heap assertion error

2024-03-11 Thread Gregory Nutt
From:"Gregory Nutt"< spudan...@gmail.com >; Date:2024/3/11 1:43 To:"dev"< dev@nuttx.apache.org >; Subject:Re: mm/mm_heap assertion error On 3/10/2024 4:38 AM, yfliu2008 wrote: > Dear experts, > > > > > When doing regression check on K230 with a previously

Re: mm/mm_heap assertion error

2024-03-10 Thread Gregory Nutt
On 3/10/2024 4:38 AM, yfliu2008 wrote: Dear experts, When doing regression check on K230 with a previously working Kernel mode configuration, I got assertion error like below: #0  _assert (filename=0x704c598 "mm_heap/mm_malloc.c", linenum=245, msg=0x0,regs=0x7082730 This does indicate