sge_execd segfaults in ptmalloc_lock_all during fork

Jason Evans jasone at canonware.com
Wed May 23 16:11:15 PDT 2012


On May 23, 2012, at 2:48 PM, Orion Poplawski wrote:
> I'm seeing sge_execd segfaults in ptmalloc_lock_all during fork on Fedora 17 with jemalloc 3.0.0.  See https://bugzilla.redhat.com/show_bug.cgi?id=824646 for details.

In my own build of jemalloc, I see via nm(1) that in libjemalloc[_pic].a and jemalloc.o, the __*_hook symbols are read-only data ('R'), but they should be writable ('D'), as they are in libjemalloc.so.1.  This problem arises because jemalloc mistakenly declares the hooks as const, so they are indeed read-only (whoops).  Here's the fix:

	http://www.canonware.com/cgi-bin/gitweb.cgi?p=jemalloc.git;a=commitdiff;h=5c710cee783a44061fa2c467ffd8984b8047b90e

Thanks,
Jason


More information about the jemalloc-discuss mailing list