Opened 9 years ago

Last modified 7 years ago

#12134 assigned bug

segfaulting on lyx binary when debugging enabled — at Version 5

Reported by: jessicah Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/Development
Keywords: Cc: bonefish
Blocked By: Blocking:
Platform: All

Description (last modified by jessicah)

I'm trying to build lyx from their git repository (2.1.3 release is fine), but it segfaults when debugging is enabled. Disabling debugging when building creates a binary that runs without error.

After suggestions from hamishm, I've attached listarea and also syslog output.

Perhaps this is somehow related to the random binary crashes of #10279? CC'ing Ingo in case it is...

Change History (13)

comment:1 by jessicah, 9 years ago

Actually, scratch attaching the binary. It's 156MB! O_O

by jessicah, 9 years ago

Attachment: Debugger (1).report added

by jessicah, 9 years ago

Attachment: Debugger (2).report added

by jessicah, 9 years ago

Attachment: Debugger (3).report added

by jessicah, 9 years ago

Attachment: Debugger (4).report added

by jessicah, 9 years ago

Attachment: Debugger (5).report added

by jessicah, 9 years ago

Attachment: Debugger (6).report added

comment:2 by jessicah, 9 years ago

Summary: Debugger: segfaulting on lyx binary (attached)Debugger: segfaulting on lyx binary

comment:3 by jessicah, 9 years ago

Cc: bonefish added
Description: modified (diff)

Hmm, FWIW, the lyx binary with debug information disabled doesn't segfault at all.

You can git clone git://git.lyx.org/lyx to get the current sources. You will also need to apply autotools patch and app crash on mouse click patch.

Assuming you have libqt4 revision 4 installed:

./autogen.sh
./configure --prefix=/tmp/lyx --without-included-boost
make -jN
make install

/tmp/lyx/bin/lyx

Without latest libqt4 package, you'll need to specify QT_CORE_CFLAGS and QT_FRONTEND_CFLAGS with paths to headers/x86/(QtCore|QtGui).

comment:4 by anevilyak, 9 years ago

This isn't something I'd have time to look into any time soon, but judging from the reports, and given the size of the debug binary and the involvement of Qt, I'd hazard a guess that the debugger team is plain and simply running out of userland address space. If that's the case, then you'd pretty much have no choice but to do this on a 64-bit build, as is the case for other large/complex binaries such as WebKit.

by jessicah, 9 years ago

Attachment: listareas.txt added

by jessicah, 9 years ago

Attachment: syslog.txt added

comment:5 by jessicah, 9 years ago

Component: Applications/DebuggerSystem/Kernel
Description: modified (diff)
Owner: changed from anevilyak to axeld
Summary: Debugger: segfaulting on lyx binarysegfaulting on lyx binary when debugging enabled
Note: See TracTickets for help on using tickets.