Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: BUG: 3.1.5-pws-21: lfs



Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> typed:
:Geoff Wing wrote:
:> :I get a near continuous spew out of:
:> :	BUG: attempt to free storage at invalid address
:> Occurs due to malloc() not aligning on M_ALIGN.
:Any chance you could find out where in zsh's malloc() this is happening?
:It's probably something like one of the structs m_hdr, m_shdr or heap not
:having a size divisible by 8. I altered definitions of structures and sizes
:to get this to work on one system (IRIX 6.2 with gcc), so there is some
:compiler/system dependency here.

Possibly something much simpler.

% size zsh
text    data    bss     dec     hex     filename
290784  16384   31524   338692  52b04   zsh

First time through malloc():
 (m = sbrk(4096)) @ mem.c:760  gives   m = 0x53b24

Yay.

Regards,
-- 
Geoff Wing : <gcw@xxxxxxxxx>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@xxxxxxxx>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@xxxxxxx>       Phone   : (Australia) 0413 431 874



Messages sorted by: Reverse Date, Date, Thread, Author