Opened 17 years ago

Closed 16 years ago

#1419 closed defect (duplicate)

ogrinfo crashes on an E00 file

Reported by: werchowyna@… Owned by: Daniel Morissette
Priority: normal Milestone: 1.5.3
Component: OGR_SF Version: 1.4.0
Severity: major Keywords:
Cc:

Description (last modified by Daniel Morissette)

Hi

The file is here:
http://kufaya.googlepages.com/Ws.e00.bz2 (630 KB)

Here's the bt:

Program received signal SIGABRT, Aborted.
[Switching to Thread -1220716864 (LWP 18435)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb77c29a1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb77c42b9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7ca76df in CPLErrorV () from /usr/local//lib/libgdal.so.1
#4  0xb7ca7729 in CPLError () from /usr/local//lib/libgdal.so.1
#5  0xb7ca4476 in CPLRealloc () from /usr/local//lib/libgdal.so.1
#6  0xb7cd0bb2 in AVCE00ParseNextArcLine () from /usr/local//lib/libgdal.so.1
#7  0xb7cd0e71 in AVCE00ParseNextLine () from /usr/local//lib/libgdal.so.1
#8  0xb7cd1a45 in _AVCE00ReadNextLineE00 () from /usr/local//lib/libgdal.so.1
#9  0xb7cd24d0 in AVCE00ReadOpenE00 () from /usr/local//lib/libgdal.so.1
#10 0xb7d2f47c in OGRAVCE00DataSource::Open ()
   from /usr/local//lib/libgdal.so.1
#11 0xb7d2e3a8 in OGRAVCBinDriver::Open () from /usr/local//lib/libgdal.so.1
#12 0xb7d51302 in OGRSFDriverRegistrar::Open ()
   from /usr/local//lib/libgdal.so.1
#13 0x08049a4f in main ()

I can reproduce this with todays CVS as well as with an older 1.3.2 CVS of 2006.07.24.


Oo. Just noticed AVCIMPORT 1.3.0 (2005-06-02) also crashes on the file:

Program received signal SIGABRT, Aborted.
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e919a1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e932b9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x08054db2 in CPLError (eErrClass=CE_Fatal, err_no=2,
    fmt=0x805ea78 "CPLRealloc(): Out of memory allocating %d bytes.\n")
    at cpl_error.c:135
#4  0x08055142 in CPLRealloc (pData=0x0, nNewSize=4294967264) at cpl_conv.c:174
#5  0x08051d8c in AVCE00ParseNextArcLine (psInfo=0x80631d0,
    pszLine=0x8063a30 "!-M~ '659~ '660~ (30~} ~1,}%ex& ~1-PuO% ~1-2cC& ~1/i{t%~} ~1-2uv& ~1/l,Z% ~1-9,q") at avc_e00parse.c:681
#6  0x08051b31 in AVCE00ParseNextLine (psInfo=0x80631d0,
    pszLine=0x8063a30 "!-M~ '659~ '660~ (30~} ~1,}%ex& ~1-PuO% ~1-2cC& ~1/i{t%~} ~1-2uv& ~1/l,Z% ~1-9,q") at avc_e00parse.c:588
#7  0x0804a0aa in AVCE00WriteNextLine (psInfo=0x8063170,
    pszLine=0x8063a30 "!-M~ '659~ '660~ (30~} ~1,}%ex& ~1-PuO% ~1-2cC& ~1/i{t%~} ~1-2uv& ~1/l,Z% ~1-9,q") at avc_e00write.c:817
#8  0x080491e1 in ConvertCover (fpIn=0x8063008,
    pszCoverName=0xbfdc3944 "tmp/Ws", eCoverType=AVCCoverV7) at avcimport.c:168
#9  0x0804915d in main (argc=3, argv=0xbfdc3714) at avcimport.c:134

Shall I report the problem to avcimport's author instead?

Linux (Ubuntu Dapper), 32bit Pentium M, 2.6.15-27-686, gcc 4.0.3.

Maciek

Change History (3)

comment:1 by Even Rouault, 16 years ago

Milestone: 1.5.0
Owner: changed from warmerdam to Daniel Morissette

I can reproduce the crash on current GDAL trunk. The crash is caused by "psArc->numVertices == -2" at line 655 of avc_e00parse.c

comment:2 by Daniel Morissette, 16 years ago

Description: modified (diff)
Milestone: 1.5.01.5.1

comment:3 by Even Rouault, 16 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #2513. Fixed in r15077 and in branches/1.5 in r15078

Note: See TracTickets for help on using tickets.