When trying to start a local debug build of fennec from today's mobile-browser and 1.9.2 branch WARNING: NS_ENSURE_TRUE(compMgr) failed: file nsComponentManagerUtils.cpp, line 90 /home/bcombee/src/mozilla-central/memory/jemalloc/jemalloc.c:5826: Failed assertion: "((alignment - 1) & alignment) == 0 && alignment >= sizeof(void *)" Aborted Couldn't go very far with this failing immediately.
BT from device (but without good symbols) (gdb) bt #0 0x410524b8 in raise () from /lib/libc.so.6 #1 0x41053adc in abort () from /lib/libc.so.6 #2 0x00036e78 in memalign () #3 0x41093b0c in memalign () from /lib/libc.so.6 #4 0x41010e24 in __tls_get_addr () from /lib/ld-linux.so.3 #5 0x43f5ef7c in ?? () from /home/opt/xulrunner-1.9.2b6pre/libxul.so #6 0x43f5ef7c in ?? () from /home/opt/xulrunner-1.9.2b6pre/libxul.so
OK, I'm seeing memalign get called from __tls_get_addr with alignment and size both set to 1. This fails the assert because 1 < sizeof(void *).
I think the assert is a bit broad here... it seems like it would be better to have the current assert to catch requests for non-powers of two, but then to have code that converts requests for alignment < sizeof(void*) into a request for alignment of sizeof(void *).
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 526152
You need to log in before you can comment on or make changes to this bug.