[GRASS-dev] [bug #5352] (grass) v.db.select segfault if SQL query is malformed

I can replicate that with Spearfish:

v.db.select archsites where="CAT=1"
Segmentation fault

The debugger suggests:
#2 0xb7edbf8e in db_realloc (s=0x804f060, n=36) at alloc.c:76

which is
lib/db/dbmi_base/alloc.c:76
s = realloc (s, (unsigned int) n);

Some memory magic...

Markus

-------------------------------------------- Managed by Request Tracker