this bug's URL: http://intevation.de/rt/webrt?serial_num=5341
-------------------------------------------------------------------------
Subject: v.db.select: segfault
Under some circumstances v.db.select segfaults. I can't find a pattern, but I
created a reproducible test case.
1. Download the location (2 KB)
http://kufaya.googlepages.com/vdbselect_segfault.tar.bz2. There is a vector
map 'test', in the 'test' mapset.
2. v.db.select map=test where="MAPS_COVER='built up'"
Segmentation fault
The backtrace:
(gdb) bt
#0 0xb7662943 in free () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7663a86 in realloc () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7eff069 in db_realloc (s=0x38, n=1293960530) at alloc.c:76
#3 0xb7f02e12 in db_enlarge_string (x=0xbff49838, len=134832280)
at string.c:133
#4 0xb7f0307f in db_append_string (x=0xbff49838,
s=0x80960a0 " WHERE MAPS_COVER='built up'") at string.c:220
#5 0x080494ee in main (argc=3, argv=0x80960a0) at main.c:122
(gdb)
I used to have this error occassionaly in recent months at random. This time I
finally pinned down a good test case. Please please fix it.
Maciek
-------------------------------------------- Managed by Request Tracker