Segmentation Fault on Hardy, v0.2.94

Asked by Sciamano on 2009-10-19

Hi Michael,
I upgraded my igotu2gpx installation to v0.2.94 via the repository.
When I launch igotugui, this is what happens:

Setting map theme to : /usr/lib/kde4/share/kde4/apps/marble/data/maps/earth/srtm/srtm.dgml
Detected maximum tile level that contains data: 4
MaxTileLevel: 5
Use workaround: 0
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/cityplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/baseplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/elevplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/otherplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/boundaryplacemarks.cache"
Style reset requested.
Detecting maxLabelHeight ...
Detected maxLabelHeight: 24
Segmentation fault

:-(

Question information

Language:
English Edit question
Status:
Solved
For:
igotu2gpx Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Hofmann
Solved:
2009-10-23
Last query:
2009-10-23
Last reply:
2009-10-23
Michael Hofmann (mh21) said : #1

Thanks for the question. What version of Ubuntu are you using (lsb_release -a)?

Sciamano (sciamano72) said : #2

Here you go:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.2
Release: 8.04
Codename: hardy

Michael Hofmann (mh21) said : #3

Ok, can you also:
* test whether the command line program "igotu2gpx" works for you
* attach a backtrace of the crash (start the prog with "gdb igotugui", run it with "r", get a backtrace with "bt")
* attach the output of "dpkg -l '*marble*'

Sciamano (sciamano72) said : #4

* igotu2gpx works

* here is the backtrace:

-------begin--------
#0 0xb75d5068 in QString::fromLatin1_helper () from /usr/lib/libQtCore.so.4
#1 0xb75d511c in QString::fromLatin1 () from /usr/lib/libQtCore.so.4
#2 0xb7721e4e in QSslCertificate::alternateSubjectNames ()
   from /usr/lib/libQtNetwork.so.4
#3 0xb773009a in ?? () from /usr/lib/libQtNetwork.so.4
#4 0xb77310e8 in ?? () from /usr/lib/libQtNetwork.so.4
#5 0xb7728d28 in ?? () from /usr/lib/libQtNetwork.so.4
#6 0xb772c8b4 in QSslSocket::qt_metacall () from /usr/lib/libQtNetwork.so.4
#7 0xb7663c84 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#8 0xb7664852 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#9 0xb7680507 in QIODevice::readyRead () from /usr/lib/libQtCore.so.4
#10 0xb7711754 in ?? () from /usr/lib/libQtNetwork.so.4
#11 0xb7702ebb in ?? () from /usr/lib/libQtNetwork.so.4
#12 0xb7704c5f in ?? () from /usr/lib/libQtNetwork.so.4
#13 0xb788128d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#14 0xb7884ce7 in QApplication::notify () from /usr/lib/libQtGui.so.4
#15 0xb7650bab in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#16 0xb7675bac in ?? () from /usr/lib/libQtCore.so.4
#17 0xb71a0cf6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0xb71a40b3 in ?? () from /usr/lib/libglib-2.0.so.0
#19 0xb71a466e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0xb7674f12 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#21 0xb7902475 in ?? () from /usr/lib/libQtGui.so.4
#22 0xb764ff42 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#23 0xb765004c in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#24 0xb765281a in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#25 0xb78806e7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#26 0x08054de0 in ?? ()
#27 0xb72fe450 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#28 0x08052341 in ?? ()
--------end----------

* output of dpkg -l '*marble*' follows:

||/ Name Version Description
+++-================-================-================================================
ii libmarble4-kde4 4:4.0.3-0ubuntu1 library for Marble
ii marble-data 0.4.3-2 data files for Marble
ii marble-data-kde4 4:4.0.3-0ubuntu1 data files for Marble

Michael Hofmann (mh21) said : #5

Weird. Reminds me a bit of CVE-2009-2700. Do you have the backports version of qt -> can you post the output of dpkg -l '*qt4*'?

Sciamano (sciamano72) said : #6

Here it is:

||/ Name Version Description
+++-================-================-================================================
ii libqt4-core 4.3.4-0ubuntu3.1 Qt 4 core non-GUI functionality runtime library
un libqt4-designer <none> (no description available)
ii libqt4-dev 4.3.4-0ubuntu3.1 Qt 4 development files
ii libqt4-gui 4.3.4-0ubuntu3.1 Qt 4 core GUI functionality runtime library
ii libqt4-qt3suppor 4.3.4-0ubuntu3.1 Qt 3 compatibility library for Qt 4
ii libqt4-sql 4.3.4-0ubuntu3.1 Qt 4 SQL database module
un pyqt4-dev-tools <none> (no description available)
ii python-qt4 4.3.3-2ubuntu4.1 Python bindings for Qt4
ii python-qt4-commo 4.3.3-2ubuntu4.1 Shared files for PyQt4
un python-qt4-dbg <none> (no description available)
pn python-qt4-dbus <none> (no description available)
un python2.4-qt4 <none> (no description available)
un python2.4-qt4-db <none> (no description available)
un python2.5-qt4 <none> (no description available)
un python2.5-qt4-db <none> (no description available)
ii qt4-designer 4.3.4-0ubuntu3.1 Qt 4 Designer
ii qt4-dev-tools 4.3.4-0ubuntu3.1 Qt 4 development tools
ii qt4-doc 4.3.4-0ubuntu3.1 Qt 4 API documentation
un qt4-qtconfig <none> (no description available)

Michael Hofmann (mh21) said : #7

Hmm, looks ok. I tried to install 0.3.0 (from https://launchpad.net/~mh21/+archive/ppa/+packages) on a Hardy system, and it worked without problems. Can you also post ldd `which igotugui`?

Sciamano (sciamano72) said : #8

I don't know what to say... it used to work, but then it suddenly stopped working and started giving the segfault error...

Here is the output requested:

        linux-gate.so.1 => (0xb7ef2000)
        libigotu.so.1 => /usr/lib/libigotu.so.1 (0xb7ea7000)
        libboost_program_options-gcc42-mt-1_34_1.so.1.34.1 => /usr/lib/libboost_program_options-gcc42-mt-1_34_1.so.1.34.1 (0xb7e70000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7e57000)
        libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb7755000)
        libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xb76c4000)
        libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb7550000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb745d000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7438000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb742c000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb72dd000)
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb72d4000)
        /lib/ld-linux.so.2 (0xb7ef3000)
        libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb72be000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb726d000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7249000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7241000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb7229000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7214000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb720f000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb715e000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb7155000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb714d000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7147000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7142000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7139000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7136000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb70c8000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb709e000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7090000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb6fa9000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb6fa5000)
        libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb6f7d000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6f5c000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb6f59000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb6f57000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6f3f000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6f39000)

I'll try installing the 0.3.0 from the PPA and see what happens.

Sciamano (sciamano72) said : #9

Nothing, same error with v0.3.0 :-(
I can still use igotu2gpx via command line although a gui would be nice :-)

Michael Hofmann (mh21) said : #10

Let's try sth. else. Can you install valgrind (a memory access checker) and post the output of "valgrind igotugui"?

Michael Hofmann (mh21) said : #11

Ok, this should be a workaround: edit ~/.config/mh21/igotugui.conf and add

[Updates]
releaseUrl=http://mh21.de/igotu2gpx/releases.txt

This should prevent it from using https (where the error is happening), but also from getting update notifications.

Sciamano (sciamano72) said : #12

Hi Michael, with the workaround it works.
Do you still need the output of 'valgrind igotugui'?
I can revert the changes in the igotugui.conf and do it.

BTW, I've found out that here:
https://wiki.kubuntu.org/Kubuntu/Kde3/Jaunty

a version of Kubuntu Jaunty that uses KDE 3.5 exists.
It might be useful for other people using Kubuntu but don't want to migrate to KDE4.
I will be update my Hardy to Jaunty as soon as I find the time. Maybe the errors will disappear then.

Best Michael Hofmann (mh21) said : #13

No, because I think there is something weird with your setup :-). Unless the same happens to sb. else, it will be hard to debug.

In the final 0.3.0 version, you will also get update notifications with the workaround.

Sciamano (sciamano72) said : #14

Ok, thanks.
I will report back when I'll update my box to Jaunty. I hope I will be able to do that during the upcoming weekend.

tomubuntu (tomas-manes) said : #15

Hi, I have the same problem:

Ubuntu 8.04
igotu2gpx_0.3.0-1~hardy2_i386.deb

Result of igotugui (I can see window with globe for 1/2 s. and):

tomas@compaq:~$ igotugui
Setting map theme to : /usr/lib/kde4/share/kde4/apps/marble/data/maps/earth/srtm/srtm.dgml
Detected maximum tile level that contains data: 4
MaxTileLevel: 5
Use workaround: 0
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/cityplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/baseplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/elevplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/otherplacemarks.cache"
Style reset requested.
"Loading Default Placemark Cache File:/usr/lib/kde4/share/kde4/apps/marble/data/placemarks/boundaryplacemarks.cache"
Style reset requested.
Detecting maxLabelHeight ...
Detected maxLabelHeight: 24
QDateTime::fromString: Parameter out of range
Segmentation fault

Sciamano (sciamano72) said : #16

tom, have you tried with the workaround Michael suggested? It works for me...

edit ~/.config/mh21/igotugui.conf and add

[Updates]
releaseUrl=http://mh21.de/igotu2gpx/releases.txt

tomubuntu (tomas-manes) said : #17

OK, It works... Thanks.

Juan Tobar (jptobar) said : #18

doesn't works for me :-S
Same issue running Ubuntu 8.04 (BTW, I have "config/mh21.de/igotugui.conf" not "config/mh21/igotugui.conf")