Question about backtrace_malloc

2022-01-21 Thread Jukka Laitinen
Hi, Sorry if this question comes several times, it seems that for some reason my emails are not always coming through to the mailing list... So re-sending. I started getting this build error from the latest NuttX: misc/lib_execinfo.c:45:17: error: null argument where non-null required (argu

Re: Question about backtrace_malloc

2022-01-20 Thread Xiang Xiao
On Fri, Jan 21, 2022 at 12:41 AM Gregory Nutt wrote: > This functionality is already implemented for asprintf(): It does this the > print using a "null stream" to get the size, allocates memory of that size, > then does the real print into the allocated memory. > > This logic could be easily ext

Re: Question about backtrace_malloc

2022-01-20 Thread Gregory Nutt
This functionality is already implemented for asprintf(): It does this the print using a "null stream" to get the size, allocates memory of that size, then does the real print into the allocated memory. This logic could be easily extracted: https://github.com/apache/incubator-nuttx/blob/master/li

Re: Question about backtrace_malloc

2022-01-20 Thread Xiang Xiao
On Thu, Jan 20, 2022 at 8:43 PM Arie de Muijnck wrote: > > > On 2022-01-20 13:11, Xiang Xiao wrote: > > On Thu, Jan 20, 2022 at 7:33 PM Jukka Laitinen > > wrote: > > > >> Hi, > >> > >> Sorry if this question comes several times, it seems that for some > >> reason my emails are not always coming

Re: Question about backtrace_malloc

2022-01-20 Thread Arie de Muijnck
On 2022-01-20 13:11, Xiang Xiao wrote: On Thu, Jan 20, 2022 at 7:33 PM Jukka Laitinen wrote: Hi, Sorry if this question comes several times, it seems that for some reason my emails are not always coming through to the mailing list... So re-sending. I started getting this build error from

Re: Question about backtrace_malloc

2022-01-20 Thread Xiang Xiao
On Thu, Jan 20, 2022 at 7:33 PM Jukka Laitinen wrote: > Hi, > > Sorry if this question comes several times, it seems that for some > reason my emails are not always coming through to the mailing list... So > re-sending. > > I started getting this build error from the latest NuttX: > > misc/lib_ex

RE: Question about backtrace_malloc

2022-01-20 Thread Tim
>emails are not always coming through to the mailing list... So re-sending. > This happens a lot for me too. I always check https://www.mail-archive.com/dev@nuttx.apache.org/ to see if I've missed anything.

Question about backtrace_malloc

2022-01-20 Thread Jukka Laitinen
Hi, Sorry if this question comes several times, it seems that for some reason my emails are not always coming through to the mailing list... So re-sending. I started getting this build error from the latest NuttX: misc/lib_execinfo.c:45:17: error: null argument where non-null required (argu