After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 667969 - Segmentation fault when starting 2.3
Segmentation fault when starting 2.3
Status: RESOLVED FIXED
Product: gnome-latex
Classification: Other
Component: general
2.3.x
Other Linux
: Normal normal
: unspecified
Assigned To: LaTeXila maintainer(s)
LaTeXila maintainer(s)
: 671428 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-01-15 22:11 UTC by Philipp Specht
Modified: 2012-03-10 17:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDB backtrace (2.27 KB, text/plain)
2012-01-15 22:11 UTC, Philipp Specht
Details
Startup log (1.00 KB, text/plain)
2012-01-15 22:12 UTC, Philipp Specht
Details

Description Philipp Specht 2012-01-15 22:11:39 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.
Comment 1 Philipp Specht 2012-01-15 22:12:18 UTC
Created attachment 205313 [details]
Startup log
Comment 2 Sébastien Wilmet 2012-01-18 12:08:12 UTC
(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?
Comment 3 Sébastien Wilmet 2012-01-18 12:15:14 UTC
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.
Comment 4 Philipp Specht 2012-01-22 17:24:02 UTC
(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
Comment 5 Philipp Specht 2012-01-22 17:37:21 UTC
(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.
Comment 6 Sébastien Wilmet 2012-01-29 16:32:28 UTC
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).
Comment 7 Sébastien Wilmet 2012-03-06 01:37:33 UTC
*** Bug 671428 has been marked as a duplicate of this bug. ***
Comment 8 Sébastien Wilmet 2012-03-10 17:37:20 UTC
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.