Debugging help needed ...

Martin Wuerthner martin at mw-software.com
Fri Sep 12 06:20:38 PDT 2003


In message <4c2bbf4142sbellon at sbellon.de>
          Stefan Bellon <sbellon at sbellon.de> wrote:

> Nick Burrett wrote:
> > Stefan Bellon wrote:
> 
> > > So, it looks like UnixLib doesn't like malloc(0). However,
> > > unixlib/source/alloc.c states that allocating zero should be
> > > possible as well (it's however difficult to see whether this is a
> > > comment meant to apply for RISC OS as well).
> 
> > I think the problem is elsewhere otherwise we'd have seen this bug
> > years ago.
> 
> Hm, sounds fair.
> 
> > Are you using the 2.95 compiler or the 3.3 compiler ?
> 
> I still tend to prefer the Norcroft compiler to the GCC one just
> because its faster compilation speed. I've now recompiled my project
> (original version without the malloc(0) fix) with 2.95.4 and this
> indeed works!
> 
> So, this looks like some Norcroft + UnixLib issue then. Sorry for the
> confusion caused.

Which version of Norcroft did you use? You could have fallen foul of the
shrinkwrap optimisation bug. You need either 5.39 or below or use the
magic shrinkwrap disabling option.

Martin
-- 
---------------------------------------------------------------------
Martin Wuerthner          MW Software          martin at mw-software.com
---------------------------------------------------------------------



More information about the gcc mailing list