Hello to all,
I would like to report
-
A segmentation fault of synfigstudio 0.61.09:
[list][*] at splash screen, during “History initialization” (or some name like that) -
the text messages relate the event to “Invalid UTF-8 string passed to pango_layout_set_text()” and the crashes occurs in g_markup_escape_text() from glib.
[/:m]
[] a workaround for my box: $ LC_ALL=C synfigstudio
(my locale, with which synfigstudio crashes, is “fr_FR@euro”)[/:m]
[] some details about how it compiles (or not) and crashes (or not)[/*:m][/list:u]
I don’t know if it is really a bug of synfigstudio or some misconfiguration of my linux box, but anyway some warning should be added to the documentation so new users are not surprised by a crash which they don’t understand, specially if they launch synfigstudio from a graphical menu and hence don’t see the messages on the command-line, and that (maybe) main synfig developers never faced if they configured their machine to work in English.
Best regards,
Jérôme
[size=150]General information and internet lookup[/size]
I installed synfigstudio on a AMD64 Gentoo linux box (using sunrise overlay, 0.61.08 and 0.61.09 versions), along with synfig 0.61.09 and ETL 0.04.12. I got a segmentation fault after splash screen. It has already been reported at different places on the internet. See
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg511830.html (a similar crash)
http://dooglus.rincevent.net/synfig/logs/2008/%23synfig-2008-01-03.log (no crash but interesting discussion on the topic of non-en_US locales and execution warnings)
One similar bug had been reported to exist in the 0.61.08 version, corrected recently in the 0.61.09 release. This is obviously a different bug since it still exists in 0.61.09. The existence of two separate bugs has been reported at:
http://bugs.launchpad.net/ubuntu/+source/synfigstudio/+bug/292750
[size=150]Configuration[/size]
[code]
Synfig Studio v.0.61.09
Configuration Summary
Install Prefix -------------------> /usr
Host Platform --------------------> x86_64-pc-linux-gnu
Icon Format ----------------------> png
Debug Mode -----------------------> yes
Profiling Mode -------------------> no
Optimizations --------------------> 2
Window System --------------------> gtkmm
FMOD Enabled ---------------------> no
$CXX ------------------------------> ‘x86_64-pc-linux-gnu-g++’
$CXXFLAGS -------------------------> ’ -pipe -D_DEBUG -g -O2 -W -Wall’
$LDFLAGS --------------------------> ‘-Wl,-O1’
$SYNFIG_CFLAGS ---------------------> '-I/usr/include/synfig-0.0 -I/usr/include/libxml+±2.6 -I/usr/lib64/libxml+±2.6/include -I/usr/include/sigc+±2.0 -I/usr/lib64/sigc+±2.0/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
’
$SYNFIG_LIBS -----------------------> '-lsynfig -lxml+±2.6 -lxml2 -lglibmm-2.4-lgobject-2.0 -lglib-2.0 -lpthread -lsigc-2.0 ’
$GTKMM_CFLAGS ---------------------> '-D_REENTRANT -pthread -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/include/sigc+±2.0 -I/usr/lib64/sigc+±2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0 ’
$GTKMM_LIBS -----------------------> '-pthread -lgtkmm-2.4 -lgdkmm-2.4 -lgtk-x11-2.0 -lpangomm-1.4 -lcairomm-1.0 -lglibmm-2.4 -lsigc-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 '[/code]
[size=150]Debug information[/size]
Although I would like to provide backtraces, I could not compile synfigstudio with -ggdb option, because it would fail like this:
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-libfmod --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu --enable-debug
[...]
creating .libs/synfigstudioS.c
generating symbol list for `synfigstudio'
extracting global C symbols from `synfigstudio-mod_mirror.o'
extracting global C symbols from `synfigstudio-state_mirror.o'
[...]
extracting global C symbols from `synfigstudio-dialog_waypoint.o'
(cd .libs && x86_64-pc-linux-gnu-gcc -march=k8 gdb -D_DEBUG -g -O2 -c -fno-builtin "synfigstudioS.c")
x86_64-pc-linux-gnu-gcc: gdb: No such file or directory
make[3]: *** [synfigstudio] Error 1
make[3]: leaving folder « /mnt/stockage/sys/tmp/portage/media-gfx/synfigstudio-0.61.09/work/synfigstudio-0.61.09/src/gtkmm »
(Some of the compiler messages were manually translated to English for ease of reading.)
Of course I would be glad if someone could help me passing the correct options to ./configure or to the CFLAGS.
[size=150]Failed execution test[/size]
18:22:25 jerome jerome/ gdb -r synfigstudio
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
r
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /usr/bin/synfigstudio
Synfig Studio -- démarrage de l'application ...
(synfigstudio:5314): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
[skipping dozens of identical lines]
(synfigstudio:5314): Gtk-WARNING **: Invalid input string
[skipping dozens of identical lines]
Program received signal SIGSEGV, Segmentation fault.
0x00007f4aa80eb302 in g_markup_escape_text () from /usr/lib/libglib-2.0.so.0
(gdb) q
The program is running. Exit anyway? (y or n) y
[size=150]Successful execution test[/size]
18:23:07 jerome jerome/ LC_ALL=C synfigstudio
synfig studio -- starting up application...
synfig(5365) [18:27:31] info: Created directory "/home/jerome/initialisation/.synfig/tmp"
synfig(5365) [18:32:30] warning: Couldn't find layer to be activated in layer list. Rebuilding index...
[size=150]Other possibly relevant information[/size]
$ uname -a
Linux anomalocaris 2.6.28-gentoo #1 SMP PREEMPT Fri Dec 26 09:09:43 WET 2008 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
Synfigstudio specifically crashes using this locale (at least):
$ echo $LC_ALL
fr_FR@euro
Filesystem is in ISO-8859-1, which usually causes me some problems to programs using GTK+. For example, Inkscape would not be able to open a file when the path contains non Latin-0 characters. But until now, it does not causes a crash to the software I use, and anyway synfigstudio crashes while it is called from a directory tree using only 7-bits ASCII characters.