GNOME Bugzilla – Bug 667969
Segmentation fault when starting 2.3
Last modified: 2012-03-10 17:37:20 UTC
Created attachment 205312 [details] GDB backtrace (copied from mailing list, added summary of the thread) I've just now tried to run Latexila 2.3.0-1~oneiric~ppa0 (from the testing PPA) on a fully patched Xubuntu 11.10, but it crashes right away with a segfault -- full output attached, as is a gdb backtrace. I've compiled 2.3.0 from the release tarball myself, that version works just fine. I've also tried: * Reinstalling Latexila from the PPA after purging it: same error * Recompiled the code from the tarball with -DWITH_GNOME=ON: works just fine Setting Latexila not to reopen files on startup (using `gsettings set org.gnome.latexila.preferences.editor reopen-files false` -- proposed by Sébastien) or having no files to reopen prevents it from crashing. This is the PPA version only, the version compiled by me works fine regardless of that setting.
Created attachment 205313 [details] Startup log
(In reply to comment #0) > Setting Latexila not to reopen files on startup (using `gsettings set > org.gnome.latexila.preferences.editor reopen-files false` -- proposed by > Sébastien) or having no files to reopen prevents it from crashing. And in this case, when you try to create a new document or open a file, does it crash? Which version of GtkSourceView 2 and GTK+ 2 do you have?
The problem comes maybe from the compilation options (the CFLAGS) of the PPA package. If you know the CFLAGS of the PPA package (e.g. "-O2"), try to compile latexila like this: $ export CFLAGS="-O2" $ cd build; cmake ../ etc.
(In reply to comment #2) > And in this case, when you try to create a new document or open a file, does it > crash? Creating a new file from within Latexila (using either the button, the menu entry or the shortcut) causes a segfault, opening an existing file works fine. > Which version of GtkSourceView 2 and GTK+ 2 do you have? libgtksourceview2.0-0: Installed: 2.10.5-0ubuntu3 Candidate: 2.10.5-0ubuntu3 Version table: *** 2.10.5-0ubuntu3 0 500 http://de.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages 100 /var/lib/dpkg/status libgtk2.0-0: Installed: 2.24.6-0ubuntu5 Candidate: 2.24.6-0ubuntu5 Version table: *** 2.24.6-0ubuntu5 0 500 http://de.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages 100 /var/lib/dpkg/status
(In reply to comment #3) > The problem comes maybe from the compilation options (the CFLAGS) of the PPA > package. The PPA package seems to be compiled with "-g -O2" (from https://launchpadlibrarian.net/85988439/buildlog_ubuntu-oneiric-amd64.latexila_2.3.0-1~oneiric~ppa0_BUILDING.txt.gz), compiling Latexila with these options causes it to behave just like the PPA version. Using only "-g" Latexila works fine.
Thanks for these information. It's quite surprising that the bug most probably comes from the "-O2" option of GCC. Which version of GCC do you use? It can also come from a patch specific to Ubuntu. On my system, the -O2 option works fine. > $ gcc --version > gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3 What you can do is to search in launchpad to see if a similar bug has already been reported. If there is no result, search upstream (on the bug tracker of GCC).
*** Bug 671428 has been marked as a duplicate of this bug. ***
As mentioned in bug #671428, the bug seems to be fixed in the 2.3.1 version. Feel free to reopen this bug if needed.