[GRASS-dev] [bug #5341] (grass) v.db.select: segfault

Hamish hamish_nospam at yahoo.com
Mon Nov 27 18:13:42 EST 2006

Maciek Sieczka via RT wrote:
> > Maybe you could give 'ddd' a try first? It's really not so difficult.
> But I need to now something about how C works, more or less, don't I?

you can still find out where it breaks, without understanding the "why".

some gdb hints:
GRASS> gdb `which v.db.select`

(gdb) run  map=foo where="this = 'that'"

#full backtrace
(gdb) bt f

#list code at point in source code where it broke
(gdb) l

#change function reference frame (#1, #2, #3, ... in bt list)
frame <number>

#list code at breakpoint (in new frame)
(gdb) l

#print variable value at this point ("bt full" shows all values)
(gdb) p <variable name>


More information about the grass-dev mailing list