Skip to content

Segmentation fault on MacOS #1

@lcirrottola

Description

@lcirrottola

Hello,
I report a segmentation fault using the last master (46fd770) with the last master of Commons (ISCDtoolbox/Commons@e30e350) only on Mac, both with clang and gcc-10.
Reproduced by running from the demo folder:
../build/warping -s source.mesh
Short backtrace from sanitizer:

==29589==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000000 at pc 0x00010f0c7b0f bp 0x7ffee0c1a7a0 sp 0x7ffee0c19f50
READ of size 4379182344 at 0x602000000000 thread T0
    #0 0x10f0c7b0e in __asan_memcpy (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x54b0e)
    #1 0x10f039acf in csmSort sparse.c:423
    #2 0x10f038d77 in csrPack sparse.c:483
    #3 0x10efeb6d6 in matA_P1_3d elasti1_3d.c:198
    #4 0x10efeaa7e in elasti1_3d elasti1_3d.c:280
    #5 0x10efe5520 in main main.c:329
    #6 0x7fff79bb7014 in start (libdyld.dylib:x86_64+0x1014)

Not urgent to debug, reported to keep track of it in case it reappears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions