OpenCPN icon indicating copy to clipboard operation
OpenCPN copied to clipboard

Segfault ingesting 2WBD1885 IENC cell

Open nohal opened this issue 5 months ago • 0 comments

While processing the Austrian cell 2WBD1885 from the EURIS catalog we crash:

Thread 47 "opencpn" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd9c006c0 (LWP 295376)]
OGRLineString::getX (this=0x7fffb41b4530, i=0) at /home/nohal/source/OpenCPN/libs/gdal/include/gdal/ogr_geometry.h:270
270	    double      getX( int i ) const { return paoPoints[i].x; }
(gdb) bt
#0  OGRLineString::getX (this=0x7fffb41b4530, i=0) at /home/nohal/source/OpenCPN/libs/gdal/include/gdal/ogr_geometry.h:270
#1  0x000000000102f9b4 in CheckPoints (poLine1=0x7fffb41b4530, iPoint1=0, poLine2=0x7fffb41a0bf0, iPoint2=15, pdfDistance=0x7fffd9be7740)
    at /home/nohal/source/OpenCPN/libs/gdal/src/ograssemblepolygon.cpp:105
#2  0x000000000102fec2 in OGRBuildPolygonFromEdges (hLines=0x7fffb404d410, bBestEffort=1, bAutoClose=0, dfTolerance=0, peErr=0x7fffd9be7814)
    at /home/nohal/source/OpenCPN/libs/gdal/src/ograssemblepolygon.cpp:273
#3  0x0000000000e66cbe in S57Reader::AssembleAreaGeometry (this=0x7fffb41040c0, poFRecord=0x7fffb4232f80, poFeature=0x7fffb419f8b0)
    at /home/nohal/source/OpenCPN/gui/src/s57/src/s57reader.cpp:1711
#4  0x0000000000e63a2c in S57Reader::AssembleFeature (this=0x7fffb41040c0, poRecord=0x7fffb4232f80, poTarget=0x0) at /home/nohal/source/OpenCPN/gui/src/s57/src/s57reader.cpp:700
#5  0x0000000000e6361e in S57Reader::ReadFeature (this=0x7fffb41040c0, nFeatureId=1439, poTarget=0x0) at /home/nohal/source/OpenCPN/gui/src/s57/src/s57reader.cpp:601
#6  0x0000000000e6340d in S57Reader::ReadNextFeature (this=0x7fffb41040c0, poTarget=0x0) at /home/nohal/source/OpenCPN/gui/src/s57/src/s57reader.cpp:530
#7  0x0000000000cd3063 in Osenc::GetChartNextM_COVR (this=0x7fffd9bff1f0, catcov=@0x7fffd9be7b3c: -1, pENCReader=0x7fffb41040c0) at /home/nohal/source/OpenCPN/gui/src/Osenc.cpp:3602
#8  0x0000000000cd206c in Osenc::CreateCOVRTables (this=0x7fffd9bff1f0, poReader=0x7fffb41040c0, poRegistrar=0x2ff2520) at /home/nohal/source/OpenCPN/gui/src/Osenc.cpp:3427
#9  0x0000000000ccca43 in Osenc::createSenc200 (this=0x7fffd9bff1f0, FullPath000=..., SENCFileName=..., b_showProg=false) at /home/nohal/source/OpenCPN/gui/src/Osenc.cpp:1557
#10 0x0000000000db6260 in SENCBuildThread::Entry (this=0xd53eea0) at /home/nohal/source/OpenCPN/gui/src/SencManager.cpp:293
#11 0x00007ffff6f7def6 in wxThreadInternal::PthreadStart(wxThread*) () at /lib64/libwx_baseu-3.2.so.0
#12 0x00007ffff4ea66d7 in start_thread () at /lib64/libc.so.6
#13 0x00007ffff4f2a60c in clone3 () at /lib64/libc.so.6

nohal avatar Sep 02 '24 22:09 nohal