TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: BOB PROHASKA
from: MARTIN GREGORIE
date: 2020-09-29 21:12:00
subject: Re: brl-cad on a Pi4?

On Tue, 29 Sep 2020 20:34:06 +0000, bob prohaska wrote:

> Dennis Lee Bieber  wrote:
>> On Tue, 29 Sep 2020 00:27:34 -0000 (UTC), bob prohaska
>> 
>> declaimed the following:
>>
>>
>>>bob@raspberrypi:~/brlcad-code/build $ mged BRL-CAD Release 7.32.1
>>>Geometry Editor (MGED)
>>>    Mon, 28 Sep 2020 16:16:25 -0700, Compilation 2 bob@raspberrypi
>>>
>>>ERROR: alloc size=0 (cnt=0, sz=4) dm name array
>>>
>>>ERROR: bu_malloc(0)
>>>
>>>ERROR: bu_malloc(0)
>>>
>>>Saving stack trace to mged-5459-bomb.log
>>>
>>>
>>         That looks like some significant code error... Attempt to
>>         allocate a
>> chunk of memory of SIZE 0!
>>
>>         It might be worth studying that log to see if you can determine
>>         where
>> in the code this call occurs, and from there track down whatever
>> computation is being used to determine the size to be allocated. (Note:
>> that error message actually comes from a level below bu_malloc -- both
>> bu_malloc and bu_calloc use the same alloc() function, with a parameter
>> identifying which m/c mode to run in --
>> https://brlcad.org/docs/doxygen-r64112/d6/dcd/malloc_8c_source.xhtml ).
>>
>>
>>
> I've put the backtrace at
> http://www.zefox.net/~fbsd/rpi4/mged-9973-bomb.log if anybody wants to
> take a look.
>
> The only things I can recgonize as errors in the logfile are a couple of
> "permission denied" errors apparently caused by the backtrace generation
> process. I don't think that's relevant, but perhaps I should point out
> that the build and run were done as a regular user, with only the
> install using root credentials.
>
> There's already a support request in to the brlcad project, to which
> I've added my $.02 so hopefully somebody will take note. Someday.....
>
Its easy enough to see where malloc is called with a zero pointer,
evidently because calloc, which called it wants zero 4 byte items, but I
lose it at that point thanks to so much stuff being 

So all I'd suggest are: can you turn off crash dump optimisation and is
it possible this is connected with a screwed up configuration file? There
seem to be a lot of zero values in what looks like system parameters.

HTH


--
Martin    | martin at
Gregorie  | gregorie dot org

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.