Opened 4 years ago

Last modified 2 years ago

#12134 assigned bug

segfaulting on lyx binary when debugging enabled

Reported by: jessicah Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/Development
Keywords: Cc: bonefish
Blocked By: Blocking:
Has a Patch: no 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...

Attachments (8)

Debugger (1).report (17.8 KB ) - added by jessicah 4 years ago.
Debugger (2).report (16.5 KB ) - added by jessicah 4 years ago.
Debugger (3).report (18.1 KB ) - added by jessicah 4 years ago.
Debugger (4).report (16.4 KB ) - added by jessicah 4 years ago.
Debugger (5).report (16.9 KB ) - added by jessicah 4 years ago.
Debugger (6).report (23.8 KB ) - added by jessicah 4 years ago.
listareas.txt (6.6 KB ) - added by jessicah 4 years ago.
syslog.txt (22.4 KB ) - added by jessicah 4 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 by jessicah, 4 years ago

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

by jessicah, 4 years ago

Attachment: Debugger (1).report added

by jessicah, 4 years ago

Attachment: Debugger (2).report added

by jessicah, 4 years ago

Attachment: Debugger (3).report added

by jessicah, 4 years ago

Attachment: Debugger (4).report added

by jessicah, 4 years ago

Attachment: Debugger (5).report added

by jessicah, 4 years ago

Attachment: Debugger (6).report added

comment:2 by jessicah, 4 years ago

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

comment:3 by jessicah, 4 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, 4 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, 4 years ago

Attachment: listareas.txt added

by jessicah, 4 years ago

Attachment: syslog.txt added

comment:5 by jessicah, 4 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

comment:6 by axeld, 2 years ago

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.