Subj : Odd SM segfaults in malloc as called from jsarena.c To : netscape.public.mozilla.jseng From : lpsantil Date : Thu May 26 2005 04:29 pm I find that malloc is segfaulting when it's called from jsarena.c's code via JS_CompileFile to js_NewFileTokenStream to JS_ArenaAllocate. This only happens when I use CVS code 20050519. I'd like to add E4X to my app, eventually, which is why I'm working with the CVS code. 1.5rc6a does not exhibit this behavior. It could be the difference in my new development machine (Ubuntu Hoary), but again, my app works well when compiled with 1.5rc6a. The malloc in question is at jsarena.c:201. I'll try to produce a sample shell which exhibits this behavior tonight and produce something with ddd to show what is happening. libc/malloc on Ubuntu is built without debug info so I don't know why exactly it's segfaulting there. I seem unable to find the right .deb to give me a libc compiled with debug info enabled. Louis SM built with make -f Makefile.ref OPTIMIZER="-O3 --static -g -fstrict-aliasing -funroll-loops" .