Opened 15 years ago

Closed 15 years ago

#2789 closed defect (fixed)

gdal_contour segfaults when no output specified

Reported by: msieczka Owned by: Even Rouault
Priority: normal Milestone: 1.6.1
Component: default Version: 1.6.0
Severity: normal Keywords:
Cc:

Description

Backtrace:

(gdb) run -b 1 -a attr -i 2 GFS20090108090600775.grb
Starting program: /usr/local/bin/gdal_contour -b 1 -a attr -i 2 GFS20090108090600775.grb
[Thread debugging using libthread_db enabled]
warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at 0000000000000120
[New Thread 0x7f7a2880d710 (LWP 24409)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f7a2880d710 (LWP 24409)]
0x00007f7a24836050 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x00007f7a24836050 in strlen () from /lib/libc.so.6
#1  0x00007f7a2803e4d8 in CPLStat (pszPath=0x0, psStatBuf=0x7fff3093dad0)
    at cpl_conv.cpp:1411
#2  0x00007f7a281d6c53 in OGRShapeDriver::CreateDataSource (this=0xbea390, 
    pszName=0x0, papszOptions=0x0) at ogrshapedriver.cpp:94
#3  0x00007f7a281d349a in OGR_Dr_CreateDataSource (hDriver=0xbea390, 
    pszName=0x0, papszOptions=0x0) at ogrsfdriver.cpp:73
#4  0x0000000000401a2e in main (argc=8, argv=0xbea3e0) at gdal_contour.cpp:207

Change History (2)

comment:1 by Even Rouault, 15 years ago

Owner: changed from warmerdam to Even Rouault

comment:2 by Even Rouault, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk in r16131 and in branches/1.6 in r16132

Note: See TracTickets for help on using tickets.