viking crashes when I start real-time tracking

Bug #456513 reported by Paul Gevers
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Viking
Unknown
Unknown
viking (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: viking

In my data file I have a GPS layer. When I right-click on it to start "Start realtime tracking" viking crashes on me claiming a "Segmentation fault". When I run it from gdb it doesn't crash on the start, but crashes on "stop realtime tracking". The debugging is depicted below. My gpsd runs in standard mode connection to a Garmin Vista on /dev/ttyS0. It's output is also attached (I tried connecting with viking several times.

====================== GDB ===================================
paul@etna ~ $ gdb viking
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
(no debugging symbols found)
(gdb) run
Starting program: /usr/bin/viking
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb6f7f950 (LWP 24921)]
[New Thread 0xb4aabb90 (LWP 24930)]
[New Thread 0xb4047b90 (LWP 24931)]
[New Thread 0xb37bab90 (LWP 24932)]
[Thread 0xb37bab90 (LWP 24932) exited]
[New Thread 0xb37bab90 (LWP 24938)]
[New Thread 0xb2fb9b90 (LWP 24939)]
[Thread 0xb2fb9b90 (LWP 24939) exited]
[Thread 0xb37bab90 (LWP 24938) exited]
[Thread 0xb4047b90 (LWP 24931) exited]
*** glibc detected *** /usr/bin/viking: free(): invalid pointer: 0x083bb3b0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7524604]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb75265b6]
/usr/lib/libgps.so.17(gps_close+0x7c)[0xb763be8c]
/usr/bin/viking[0x8072d36]
/usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x84)[0xb78f73a4]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab)[0xb78e9c7b]
/usr/lib/libgobject-2.0.so.0[0xb78ffe57]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b9)[0xb79014b9]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0xb7901936]
/usr/lib/libgtk-x11-2.0.so.0(gtk_widget_activate+0x87)[0xb7e793f7]
/usr/lib/libgtk-x11-2.0.so.0(gtk_menu_shell_activate_item+0x120)[0xb7d67410]
/usr/lib/libgtk-x11-2.0.so.0[0xb7d68fed]
/usr/lib/libgtk-x11-2.0.so.0[0xb7d5ec5b]
/usr/lib/libgtk-x11-2.0.so.0[0xb7d58526]
/usr/lib/libgobject-2.0.so.0[0xb78e83d9]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1ab)[0xb78e9c7b]
/usr/lib/libgobject-2.0.so.0[0xb78ffaff]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x64f)[0xb790134f]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0xb7901936]
/usr/lib/libgtk-x11-2.0.so.0[0xb7e732ae]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xec)[0xb7d50f7c]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x2e7)[0xb7d52327]
/usr/lib/libgdk-x11-2.0.so.0[0xb7bdf34a]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e8)[0xb784cb88]
/usr/lib/libglib-2.0.so.0[0xb78500eb]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1ca)[0xb78505ba]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0xb7d527d9]
/usr/bin/viking[0x8053992]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb74cb775]
/usr/bin/viking[0x8053631]
======= Memory map: ========
08048000-080f9000 r-xp 00000000 08:03 398877 /usr/bin/viking
080f9000-080fa000 r--p 000b0000 08:03 398877 /usr/bin/viking
080fa000-0810d000 rw-p 000b1000 08:03 398877 /usr/bin/viking
0810d000-0810e000 rw-p 0810d000 00:00 0
083b9000-08915000 rw-p 083b9000 00:00 0 [heap]
b2200000-b2221000 rw-p b2200000 00:00 0
b2221000-b2300000 ---p b2221000 00:00 0
b23e5000-b27b9000 rw-p b23e5000 00:00 0
b27b9000-b27ba000 ---p b27b9000 00:00 0
b27ba000-b2fba000 rw-p b27ba000 00:00 0
b2fba000-b2fbb000 ---p b2fba000 00:00 0
b2fbb000-b37bb000 rw-p b2fbb000 00:00 0
b37bb000-b3847000 r--p 00000000 08:03 4178701 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b3847000-b3848000 ---p b3847000 00:00 0
b3848000-b4048000 rw-p b3848000 00:00 0
b4048000-b417d000 r-xp 00000000 08:03 396064 /usr/lib/libxml2.so.2.6.32
b417d000-b417e000 ---p 00135000 08:03 396064 /usr/lib/libxml2.so.2.6.32
b417e000-b4182000 r--p 00135000 08:03 396064 /usr/lib/libxml2.so.2.6.32
b4182000-b4183000 rw-p 00139000 08:03 396064 /usr/lib/libxml2.so.2.6.32
b4183000-b4184000 rw-p b4183000 00:00 0
b4184000-b4196000 r-xp 00000000 08:03 394412 /usr/lib/libgvfscommon.so.0.0.0
b4196000-b4197000 r--p 00012000 08:03 394412 /usr/lib/libgvfscommon.so.0.0.0
b4197000-b4198000 rw-p 00013000 08:03 394412 /usr/lib/libgvfscommon.so.0.0.0
b41a3000-b41b2000 r-xp 00000000 08:03 1769499 /usr/lib/gio/modules/libgioremote-volume-monitor.so
b41b2000-b41b3000 r--p 0000e000 08:03 1769499 /usr/lib/gio/modules/libgioremote-volume-monitor.so
b41b3000-b41b4000 rw-p 0000f000 08:03 1769499 /usr/lib/gio/modules/libgioremote-volume-monitor.so
b41b4000-b41ea000 r-xp 00000000 08:03 3752580 /lib/libdbus-1.so.3.4.0
b41ea000-b41eb000 r--p 00035000 08:03 3752580 /lib/libdbus-1.so.3.4.0
b41eb000-b41ec000 rw-p 00036000 08:03 3752580 /lib/libdbus-1.so.3.4.0
b4219000-b4234000 r--s 00000000 08:03 475645 /usr/share/mime/mime.cache
b4234000-b4248000 r-xp 00000000 08:03 393538 /usr/lib/libbeagle.so.1.0.2
b4248000-b4249000 r--p 00014000 08:03 393538 /usr/lib/libbeagle.so.1.0.2
b4249000-b424a000 rw-p 00015000 08:03 393538 /usr/lib/libbeagle.so.1.0.2
b424a000-b4266000 r-xp 00000000 08:03 393889 /usr/lib/libdbus-glib-1.so.2.1.0
b4266000-b4267000 r--p 0001b000 08:03 393889 /usr/lib/libdbus-glib-1.so.2.1.0
b4267000-b4268000 rw-p 0001c000 08:03 393889 /usr/lib/libdbus-glib-1.so.2.1.0
b4268000-b4271000 r-xp 00000000 08:03 395262 /usr/lib/libtrackerclient.so.0.0.0
b4271000-b4272000 r--p 00008000 08:03 395262 /usr/lib/libtrackerclient.so.0.0.0
b4272000-b4273000 rw-p 00009000 08:03 395262 /usr/lib/libtrackerclient.so.0.0.0
b4274000-b428f000 r--s 00000000 08:03 475645 /usr/share/mime/mime.cache
b428f000-b42a9000 r-xp 00000000 08:03 1769500 /usr/lib/gio/modules/libgvfsdbus.so
b42a9000-b42aa000 r--p 00019000 08:03 1769500 /usr/lib/gio/modules/libgvfsdbus.so
b42aa000-b42ab000 rw-p 0001a000 08:03 1769500 /usr/lib/gio/modules/libgvfsdbus.so
b42ab000-b42ac000 ---p b42ab000 00:00 0
b42ac000-b4aac000 rw-p b42ac000 00:00 0
b4aac000-b4abc000 rw-s 00000000 00:09 49479692 /SYSV0056a4d6 (deleted)
b4abc000-b4b7f000 r-xp 00000000 08:03 393964 /usr/lib/libasound.so.2.0.0
b4b7f000-b4b81000 r--p 000c2000 08:03 393964 /usr/lib/libasound.so.2.0.0
b4b81000-b4b84000 rw-p 000c4000 08:03 393964 /usr/lib/libasound.so.2.0.0
b4b90000-b4ba0000 rw-s 00000000 00:0f 4816 /dev/snd/pcmC0D0p
b4ba0000-b4ba3000 r-xp 00000000 08:03 444080 /usr/lib/libcanberra-0.11/libcanberra-alsa.so
b4ba3000-b4ba4000 r--p 00002000 08:03 444080 /usr/lib/libcanberra-0.11/libcanberra-alsa.so
b4ba4000-b4ba5000 rw-p 00003000 08:03 444080 /usr/lib/libcanberra-0.11/libcanberra-alsa.so
b4ba5000-b4c05000 rw-s 00000000 00:09 49414154 /SYSV00000000 (deleted)
b4c05000-b4c65000 rw-s 00000000 00:09 49381385 /SYSV00000000 (deleted)
b4c65000-b4cfd00
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb6f7f950 (LWP 24921)]
0xb7ff1430 in __kernel_vsyscall ()
(gdb) quit
The program is running. Exit anyway? (y or n) y

====================== GPSD ===================================
paul@etna ~ $ gpsd -N -D3 /dev/ttyS0
gpsd: launching (Version 2.38)
gpsd: listening on port gpsd
gpsd: Unable to start ntpshm. gpsd must run as root.
gpsd: successfully connected to the DBUS system bus
gpsd: running with effective group ID 1000
gpsd: running with effective user ID 1000
gpsd: opening GPS data source at '/dev/ttyS0'
gpsd: speed 9600, 8N1
gpsd: Navcom: sent command 0x1c (Test Support Block)
gpsd: Navcom: sent command 0x20 (Data Request) - data block id = ae at rate 00
gpsd: Navcom: sent command 0x20 (Data Request) - data block id = 86 at rate 0a
gpsd: garmin_gps not active.
gpsd: no probe matched...
gpsd: gpsd_activate(1): opened GPS (5)
gpsd: client 127.0.0.1 (0) connect on fd 6
gpsd: checking client(0)
gpsd: client(0): assigning channel...
gpsd: User requires 2, channel type is -2
gpsd: client(0): channel 5 already active.
gpsd: client(0): channel 5 already active.
gpsd: checking client(0)
gpsd: detaching 127.0.0.1 (sub 0, fd 6) in detach_client
gpsd: client 127.0.0.1 (0) connect on fd 6
gpsd: checking client(0)
gpsd: client(0): assigning channel...
gpsd: User requires 2, channel type is -2
gpsd: client(0): channel 5 already active.
gpsd: client(0): channel 5 already active.
gpsd: checking client(0)
gpsd: detaching 127.0.0.1 (sub 0, fd 6) in detach_client
gpsd: client 127.0.0.1 (0) connect on fd 6
gpsd: checking client(0)
gpsd: client(0): assigning channel...
gpsd: User requires 2, channel type is -2
gpsd: client(0): channel 5 already active.
gpsd: client(0): channel 5 already active.
gpsd: checking client(0)
gpsd: detaching 127.0.0.1 (sub 0, fd 6) in detach_client

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: viking 0.9.8-0ubuntu1
SourcePackage: viking
Uname: Linux 2.6.28-15-generic i686

Revision history for this message
Paul Gevers (paul-climbing) wrote :
Revision history for this message
Paul Gevers (paul-climbing) wrote :
Revision history for this message
EliotBlennerhassett (eliot-blennerhassett) wrote :

The bug mentioned in #2 is marked as fixed and closed there now.

Rob Norris (rw-norris)
Changed in viking (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.