Closed Bug 799771 Opened 14 years ago Closed 8 years ago

MOZ_LINKER_EXTRACT=1 causes Fennec to segfault at exit

Categories

(Core :: mozglue, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jseward, Unassigned)

Details

This is with m-c on Xoom running ICS (4.0) w/ the mozconfig shown below. STR: start with setprop wrap.org.mozilla.fennec_sewardj "" sh /system/bin/am start -n org.mozilla.fennec_sewardj/.App --es env0 MOZ_LINKER_EXTRACT=1 Wait till it stabilises, #IOWs (shown by 'top') falls to zero, then use the main menu to quit. It then dies w/ segfault as shown below. It would be really nice to have this fixed. The problem largely undermines what MOZ_LINKER_EXTRACT is supposed to achieve -- can't do proper leak checking with valgrind, due to unclean exit, for example .. and it makes it very confusing to use valgrind to investigate segfaults at exit caused by possible incorrect memory management in the SPS profiler backend. Since it is then not clear if the faulting is caused by this bug or by bugs in my SPS hackery. Needless to say, if I had a remotely useful stack trace I would add it here. But GDB doesn't produce anything much of use and neither does valgrind. ----------------------------------------------------------------- How it dies: W/InputManagerService( 150): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@4129fb78 (uid=10033 pid=872) D/dalvikvm( 872): threadid=13: thread exiting, not yet detached (count=0) I/GeckoAppShell( 872): XRE exited I/GeckoAppShell( 872): we're done, good bye W/GeckoAppShell( 872): Killing via System.exit() I/WindowManager( 150): WIN DEATH: Window{412213d0 org.mozilla.fennec_sewardj/org.mozilla.fennec_sewardj.App paused=true} I/ActivityManager( 150): Process org.mozilla.fennec_sewardj (pid 872) has died. W/WindowManager( 150): Force-removing child win Window{412219d8 SurfaceView paused=false} from container Window{412213d0 org.mozilla.fennec_sewardj/org.mozilla.fennec_sewardj.App paused=true} D/Zygote ( 90): Process 872 terminated by signal (11) ----------------------------------------------------------------- MOZCONFIG: OBJDIR=ff-opt mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/$OBJDIR # Add the correct paths here: ac_add_options --with-android-ndk="/home/sewardj/android-ndk-r6" ac_add_options --with-android-sdk="/home/sewardj/android-sdk-linux/platforms/android-16" ac_add_options --with-android-version=5 # android options ac_add_options --enable-application=mobile/android ac_add_options --target=arm-linux-androideabi ac_add_options --with-endian=little ac_add_options --disable-tests export MOZ_DEBUG_SYMBOLS=1 ac_add_options --enable-debug-symbols=yes ac_add_options --enable-optimize="-g -O -freorder-blocks" ac_add_options --disable-jemalloc ac_add_options --enable-valgrind ac_add_options --disable-elf-hack mk_add_options MOZ_MAKE_FLAGS="-j2"
These days, MOZ_LINKER_EXTRACT is always set, so I'm going to assume it's not a problem anymore.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.