[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

segfault in malloc (in mpost) while building lilypond



I've run into a segfault in malloc which doesn't quite make sense to
me; the cause is fairly obvious (dereferencing 0x1), but I'm not sure
why 0x1 is in fastbinsY in mainarena instead of 0x0.

You can test this out on harris.debian.org: 

cp ~don/lilypond-2.14.2/mf ~/yourtemp -f;
cd ~/yourtemp/out/pfbtemp.f0oDuEEFg2
MFINPUTS="$(echo ~)/yourtemp/:..::" gdb /home/don/texlive-bin-2012.20120516/Work/texk/web2c/.libs/lt-mpost
set args  -mem=mf2pt1 -progname=mpost "\\mode:=localfont; mag:=100; bpppix 0.02; input feta11.mf"
run

yields:

Program received signal SIGSEGV, Segmentation fault.
_int_malloc (av=0xb6f43258, bytes=56) at malloc.c:4304
4304    malloc.c: No such file or directory.

Unfortunately, I don't seem to be able to get the watch points to work
properly to figure this out, but at some point
&main_arena.fastbinsY[6] gets a 0x1 written to it instead of a 0, and
that causes malloc to explode.

Since this doesn't happen on any other architecture, I'm going to
guess that there's something wrong with armhf or with eglibc on armhf,
or non-random cosmic radiation.


Don Armstrong

-- 
Love is... a complex sequence of neurochemical reactions that makes
people behave like idiots. It's similar to intoxication, but the
hangover's even worse.
 -- J. Jacques _Questionable Content_ #1039
    http://www.questionablecontent.net/view.php?comic=1039

http://www.donarmstrong.com              http://rzlab.ucr.edu


Reply to: