Opened 14 years ago
Closed 14 years ago
#192 closed bug (fixed)
Segmentfault on 64bit system in omalloc
Reported by: | krueger | Owned by: | hannes |
---|---|---|---|
Priority: | major | Milestone: | 3-1-1 |
Component: | omalloc | Version: | 3-1-0 |
Keywords: | Cc: |
Description
When compiling omalloc with -DNDEBUG on an x86_64 system (gcc 4.3.2), Singular crashes with Segment fault/Bus:
On an 32bit system it works!
(gdb) omFreeSizeToSystem (addr=0x7ffff7f4e088, size=8) at /home/soft/Singular/src/kai/Singular_cmake/omalloc/omAllocSystem.c:294 294 { (gdb) 295 OM_FREE_TO_SYSTEM( addr ); (gdb) *** glibc detected *** /home/soft/Singular/src/kai/Singular_cmake/build_release/Singular/Singular-static: munmap_chunk(): invalid pointer: 0x00007ffff7f4e088 ***
Change History (2)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
seems to miss the needed defines(configure error): on 64bit machines omalloc.h needs:
#define OM_T_FREE1 #define OM_T_FREE3 #define OM_T_STR #define OM_T_ALLOC #define OM_T_REALLOC
depending on SIZEOF_LONG being 8
Note: See
TracTickets for help on using
tickets.
Additional test: compiling the full package on: