Opened 7 years ago

Closed 7 years ago

#3897 closed defect (worksforme)

test_lwgeom_clip_by_rect has triggers bad memory access

Reported by: komzpa Owned by: pramsey
Priority: high Milestone: PostGIS 2.4.2
Component: postgis Version: 2.4.x
Keywords: Cc:

Description

While enabling -fsanitize=address for Travis it found an issue in existing code:

https://travis-ci.org/postgis/postgis/builds/286570017#L4739

  Test: test_lwgeom_clip_by_rect ...ASAN:SIGSEGV
=================================================================
==32713== ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000c (pc 0x2b1afafcc640 sp 0x7ffcbbe2e9b0 bp 0x7ffcbbe2e9d0 T0)
AddressSanitizer can not provide additional info.
    #0 0x2b1afafcc63f (/home/travis/build/postgis/postgis/liblwgeom/.libs/liblwgeom-2.5.so.0.0.0+0xde63f)
    #1 0x2b1afafccc35 (/home/travis/build/postgis/postgis/liblwgeom/.libs/liblwgeom-2.5.so.0.0.0+0xdec35)
    #2 0x2b1afafce2db (/home/travis/build/postgis/postgis/liblwgeom/.libs/liblwgeom-2.5.so.0.0.0+0xe02db)
    #3 0x4335d0 (/home/travis/build/postgis/postgis/liblwgeom/cunit/.libs/lt-cu_tester+0x4335d0)
    #4 0x2b1afb47ac99 (/usr/lib/libcunit.so.1.0.1+0x3c99)
    #5 0x2b1afb47af27 (/usr/lib/libcunit.so.1.0.1+0x3f27)
    #6 0x2b1afb47b2a5 (/usr/lib/libcunit.so.1.0.1+0x42a5)
    #7 0x407dbb (/home/travis/build/postgis/postgis/liblwgeom/cunit/.libs/lt-cu_tester+0x407dbb)
    #8 0x2b1afb9acf44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44)
    #9 0x407e81 (/home/travis/build/postgis/postgis/liblwgeom/cunit/.libs/lt-cu_tester+0x407e81)
==32713== ABORTING

Change History (2)

comment:1 by pramsey, 7 years ago

Milestone: PostGIS 2.4.1PostGIS 2.4.2

comment:2 by pramsey, 7 years ago

Resolution: worksforme
Status: newclosed

It's gone or works for me on OSX

Note: See TracTickets for help on using tickets.