[GRASS-dev] [grass-code I][509] v.mkgrid: segfault when "grid" parameters missing

grass-dev at grass.itc.it grass-dev at grass.itc.it
Thu Oct 11 04:29:36 EDT 2007

code I item #509, was opened at 2007-10-11 10:29
Status: Open
Priority: 3
Submitted By: Maciej Sieczka (msieczka)
Assigned to: Nobody (None)
Summary: v.mkgrid: segfault when "grid" parameters missing 
Issue type: module bug
Issue status: None
GRASS component: vector
Operating system: Linux
Operating system version: Ubuntu Dapper 64bit
GRASS CVS checkout date, if applies (YYMMDD): 071011

Initial Comment:
If the user fails to provide "grid" parameters, it segfaults. Applies to bot 6.2 CVS and 6.3 CVS. Example:

$ v.mkgrid map=debug_grid position=region grid=
Segmentation fault (core dumped)


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912562415552 (LWP 26775)]
0x00002aaaabe92cf1 in __strtoull_internal () from /lib/libc.so.6
(gdb) bt
#0  0x00002aaaabe92cf1 in __strtoull_internal () from /lib/libc.so.6
#1  0x00002aaaaba65022 in atoi () from /usr/local/lib/libgdal.so.1
#2  0x0000000000401a25 in main (argc=4, argv=0x7fffff972dd8) at main.c:142


You can respond by visiting: 

More information about the grass-dev mailing list