spatialite crashes when exiting

Bug #511885 reported by Dominique Pellé
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
spatialite (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

spatialite program on Ubuntu-9.10 (Karmic) crashes when exiting with double free message.

Steps to reproduce:

1/ install spatialite with:

$ sudo apt-get install spatialite-bin

2/ run "spatialite" from shell, and issue the ".quit" command as follows.
Oberve the crash when issuing the ".quit" command:

$ spatialite
SpatiaLite version ..: 2.3.0 Supported Extensions:
 - 'VirtualShape' [direct Shapefile access]
 - 'VirtualText [direct CSV/TXT access]
 - 'VirtualNetwork [Dijkstra shortest path]
 - 'RTree' [Spatial Index - R*Tree]
 - 'MbrCache' [Spatial Index - MBR cache]
 - 'VirtualFDO' [FDO-OGR interoperability]
 - 'SpatiaLite' [Spatial SQL - OGC]
PROJ.4 version ......: Rel. 4.7.1, 23 September 2009
GEOS version ........: 3.1.1-CAPI-1.6.0
SQLite version ......: 3.6.16
Enter ".help" for instructions
spatialite> .quit
*** glibc detected *** spatialite: double free or corruption (fasttop): 0x09024ec0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0x238ff1]
/lib/tls/i686/cmov/libc.so.6[0x23a6f2]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x23d7cd]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xf8b6f1]
/usr/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d)[0xf6935d]
/usr/lib/libstdc++.so.6(_ZNSsD1Ev+0x4c)[0xf6ad6c]
/lib/tls/i686/cmov/libc.so.6(__cxa_finalize+0xb8)[0x1fd428]
/usr/lib/libgeos-3.1.1.so[0xa9d504]
/usr/lib/libgeos-3.1.1.so[0xb46430]
/lib/ld-linux.so.2[0x379f46]
/lib/tls/i686/cmov/libc.so.6[0x1fd05f]
/lib/tls/i686/cmov/libc.so.6[0x1fd0cf]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xee)[0x1e4b5e]
spatialite[0x8049eb1]
======= Memory map: ========
00110000-00143000 r-xp 00000000 08:01 15717 /usr/lib/libproj.so.0.6.6
00143000-00144000 r--p 00032000 08:01 15717 /usr/lib/libproj.so.0.6.6
00144000-00146000 rw-p 00033000 08:01 15717 /usr/lib/libproj.so.0.6.6
00146000-0014f000 r-xp 00000000 08:01 211401 /lib/tls/i686/cmov/libnss_nis-2.10.1.so
0014f000-00150000 r--p 00008000 08:01 211401 /lib/tls/i686/cmov/libnss_nis-2.10.1.so
00150000-00151000 rw-p 00009000 08:01 211401 /lib/tls/i686/cmov/libnss_nis-2.10.1.so
00196000-001ca000 r-xp 00000000 08:01 591 /lib/libncurses.so.5.7
001ca000-001cb000 ---p 00034000 08:01 591 /lib/libncurses.so.5.7
001cb000-001cd000 r--p 00034000 08:01 591 /lib/libncurses.so.5.7
001cd000-001ce000 rw-p 00036000 08:01 591 /lib/libncurses.so.5.7
001ce000-0030c000 r-xp 00000000 08:01 211381 /lib/tls/i686/cmov/libc-2.10.1.so
0030c000-0030d000 ---p 0013e000 08:01 211381 /lib/tls/i686/cmov/libc-2.10.1.so
0030d000-0030f000 r--p 0013e000 08:01 211381 /lib/tls/i686/cmov/libc-2.10.1.so
0030f000-00310000 rw-p 00140000 08:01 211381 /lib/tls/i686/cmov/libc-2.10.1.so
00310000-00313000 rw-p 00000000 00:00 0
0036c000-00387000 r-xp 00000000 08:01 1055 /lib/ld-2.10.1.so
00387000-00388000 r--p 0001a000 08:01 1055 /lib/ld-2.10.1.so
00388000-00389000 rw-p 0001b000 08:01 1055 /lib/ld-2.10.1.so
004b9000-005f2000 r-xp 00000000 08:01 8923 /usr/lib/libgeos-3.1.0.so
005f2000-005f6000 r--p 00138000 08:01 8923 /usr/lib/libgeos-3.1.0.so
005f6000-005f7000 rw-p 0013c000 08:01 8923 /usr/lib/libgeos-3.1.0.so
0065d000-006aa000 r-xp 00000000 08:01 8924 /usr/lib/libspatialite.so.2.0.3
006aa000-006ab000 r--p 0004c000 08:01 8924 /usr/lib/libspatialite.so.2.0.3
006ab000-006ac000 rw-p 0004d000 08:01 8924 /usr/lib/libspatialite.so.2.0.3
00763000-00776000 r-xp 00000000 08:01 15699 /usr/lib/libgeos_c.so.1.6.0
00776000-00777000 r--p 00012000 08:01 15699 /usr/lib/libgeos_c.so.1.6.0
00777000-00778000 rw-p 00013000 08:01 15699 /usr/lib/libgeos_c.so.1.6.0
00860000-008e6000 r-xp 00000000 08:01 3872 /usr/lib/libsqlite3.so.0.8.6
008e6000-008e7000 r--p 00086000 08:01 3872 /usr/lib/libsqlite3.so.0.8.6
008e7000-008e8000 rw-p 00087000 08:01 3872 /usr/lib/libsqlite3.so.0.8.6
008f1000-0090d000 r-xp 00000000 08:01 8738 /lib/libgcc_s.so.1
0090d000-0090e000 r--p 0001b000 08:01 8738 /lib/libgcc_s.so.1
0090e000-0090f000 rw-p 0001c000 08:01 8738 /lib/libgcc_s.so.1
009ba000-009bc000 r-xp 00000000 08:01 211384 /lib/tls/i686/cmov/libdl-2.10.1.so
009bc000-009bd000 r--p 00001000 08:01 211384 /lib/tls/i686/cmov/libdl-2.10.1.so
009bd000-009be000 rw-p 00002000 08:01 211384 /lib/tls/i686/cmov/libdl-2.10.1.so
00a43000-00a44000 r-xp 00000000 00:00 0 [vdso]
00a44000-00b7e000 r-xp 00000000 08:01 15698 /usr/lib/libgeos-3.1.1.so
00b7e000-00b82000 r--p 00139000 08:01 15698 /usr/lib/libgeos-3.1.1.so
00b82000-00b83000 rw-p 0013d000 08:01 15698 /usr/lib/libgeos-3.1.1.so
00be2000-00be8000 r-xp 00000000 08:01 211397 /lib/tls/i686/cmov/libnss_compat-2.10.1.so
00be8000-00be9000 r--p 00005000 08:01 211397 /lib/tls/i686/cmov/libnss_compat-2.10.1.so
00be9000-00bea000 rw-p 00006000 08:01 211397 /lib/tls/i686/cmov/libnss_compat-2.10.1.so
00c31000-00c62000 r-xp 00000000 08:01 4111 /lib/libreadline.so.5.2
00c62000-00c63000 ---p 00031000 08:01 4111 /lib/libreadline.so.5.2
00c63000-00c64000 r--p 00031000 08:01 4111 /lib/libreadline.so.5.2
00c64000-00c67000 rw-p 00032000 08:01 4111 /lib/libreadline.so.5.2
00c67000-00c68000 rw-p 00000000 00:00 0
00c75000-00c99000 r-xp 00000000 08:01 211394 /lib/tls/i686/cmov/libm-2.10.1.so
00c99000-00c9a000 r--p 00023000 08:01 211394 /lib/tls/i686/cmov/libm-2.10.1.so
00c9a000-00c9b000 rw-p 00024000 08:01 211394 /lib/tls/i686/cmov/libm-2.10.1.so
00cb5000-00cbf000 r-xp 00000000 08:01 211399 /lib/tls/i686/cmov/libnss_files-2.10.1.so
00cbf000-00cc0000 r--p 00009000 08:01 211399 /lib/tls/i686/cmov/libnss_files-2.10.1.so
00cc0000-00cc1000 rw-p 0000a000 08:01 211399 /lib/tls/i686/cmov/libnss_files-2.10.1.so
00cc4000-00cd7000 r-xp 00000000 08:01 211396 /lib/tls/i686/cmov/libnsl-2.10.1.so
00cd7000-00cd8000 r--p 00012000 08:01 211396 /lib/tls/i686/cmov/libnsl-2.10.1.so
00cd8000-00cd9000 rw-p 00013000 08:01 211396 /lib/tls/i686/cmov/libnsl-2.10.1.so
00cd9000-00cdb000 rw-p 00000000 00:00 0
00d39000-00d4e000 r-xp 00000000 08:01 219205 /lib/tls/i686/cmov/libpthread-2.10.1.so
00d4e000-00d4f000 r--p 00014000 08:01 219205 /lib/tls/i686/cmov/libpthread-2.10.1.so
00d4f000-00d50000 rw-p 00015000 08:01 219205 /lib/tls/i686/cmov/libpthread-2.10.1.so
00d50000-00d52000 rw-p 00000000 00:00 0
00ed3000-00fb9000 r-xp 00000000 08:01 1916 /usr/lib/libstdc++.so.6.0.13
00fb9000-00fbd000 r--p 000e6000 08:01 1916 /usr/lib/libstdc++.so.6.0.13
00fbd000-00fbe000 rw-p 000ea000 08:01 1916 /usr/lib/libstdc++.so.6.0.13
00fbe000-00fc5000 rw-p 00000000 00:00 0
08048000-08054000 r-xp 00000000 08:01 8940 /usr/bin/spatialite
08054000-08055000 r--p 0000b000 08:01 8940 /usr/bin/spatialite
08055000-08057000 rw-p 0000c000 08:01 8940 /usr/bin/spatialite
09024000-09045000 rw-p 00000000 00:00 0 [heap]
b7500000-b7521000 rw-p 00000000 00:00 0
b7521000-b7600000 ---p 00000000 00:00 0
b76ce000-b770d000 r--p 00000000 08:01 525727 /usr/lib/locale/en_US.utf8/LC_CTYPE
b770d000-b7712000 rw-p 00000000 00:00 0
b7720000-b7727000 r--s 00000000 08:01 263786 /usr/lib/gconv/gconv-modules.cache
b7727000-b772a000 rw-p 00000000 00:00 0
bfab2000-bfac7000 rw-p 00000000 00:00 0 [stack]
Aborted

ProblemType: Bug
Architecture: i386
Date: Sun Jan 24 13:03:08 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: spatialite-bin 2.3.0-1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: spatialite
Uname: Linux 2.6.31-17-generic i686
XsessionErrors:
 (gnome-settings-daemon:1778): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1778): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:1813): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:1846): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (firefox:2026): GLib-WARNING **: g_set_prgname() called multiple times

Revision history for this message
Dominique Pellé (dominique-pelle) wrote :
description: updated
Revision history for this message
Goyo (goyodiaz) wrote :

Confirmed in Karmic 64 bits.

Revision history for this message
Dominique Pellé (dominique-pelle) wrote :

I checked with Ubuntu-10.04 and bug no longer happens.

Revision history for this message
Goyo (goyodiaz) wrote :

This won't be fixed in Karmic (out of support since 30 April 2011) and it does not affect other releases. Please provide feedback if that's not the case.

Changed in spatialite (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for spatialite (Ubuntu) because there has been no activity for 60 days.]

Changed in spatialite (Ubuntu):
status: Incomplete → Expired
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.