[GRASS-dev] [grass-code I][507] r.in.xyz: a segfault with particular dataset

grass-dev at grass.itc.it grass-dev at grass.itc.it
Tue Oct 9 11:11:45 EDT 2007


code I item #507, was opened at 2007-10-09 17:11
Status: Open
Priority: 3
Submitted By: Maciej Sieczka (msieczka)
Assigned to: Hamish Bowman (hamish)
Summary: r.in.xyz: a segfault with particular dataset 
Issue type: module bug
Issue status: None
GRASS version: CVS HEAD
GRASS component: raster
Operating system: Linux
Operating system version: Ubuntu Dapper 64bit
GRASS CVS checkout date, if applies (YYMMDD): 071009


Initial Comment:
r.in.xyz has been segfaulting with a particular dataset. It's quite big (23 MB bzipped) and I don't know how to provide it but let me know if ther's a need+way to.

Details:

$r.in.xyz -g input=tin_nieciag.xyz output=tin_nie ciag.xyz method=min type=DCELL fs="|" x=1 y=2 z=3 percent=100

n=5725102.149034 s=5705608.286234 e=587119.577053 w=568715.830892 b=69.431216 t= 224.696106

$ g.region n=5725102.149034 s=5705608.286234 e=587 119.577053 w=568715.830892 res=1 -a

$ gdb r.in.xyz
$ run input=tin_nieciag.xyz output=tin_nie ciag.xyz method=min type=DCELL fs="|" x=1 y=2 z=3 percent=100

Starting program: /usr/local/grass-6.3.cvs/bin/r.in.xyz input=tin_nieciag.xyz output=tin_nieciag.xyz method=min type=DCELL fs="|" x=1 y=2 z=3 percent=100
Scanning data ...
  67%
Program received signal SIGSEGV, Segmentation fault.
0x00002aaaaabf3c09 in G_is_d_null_value (dcellVal=0x2aaa2cd4e960) at null_val.c:502
502             if(((unsigned char *) dcellVal)[i] !=
(gdb) bt
#0  0x00002aaaaabf3c09 in G_is_d_null_value (dcellVal=0x2aaa2cd4e960) at null_val.c:502
#1  0x00002aaaaabf3acb in G_is_null_value (rast=0x2aaa2cd4e960, data_type=2) at null_val.c:365
#2  0x000000000040439c in update_min (array=0x2aaaab3b4010, cols=18405, row=14767, col=4767, map_type=2, value=155.11966910999999) at support.c:74
#3  0x00000000004032c6 in main (argc=10, argv=0x7ffffffd43c8) at main.c:485


----------------------------------------------------------------------

You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=507&group_id=21




More information about the grass-dev mailing list