Skip to content

Memory error on Ubuntu Xenial #3

@sebbelese

Description

@sebbelese

I built sedflux on Ubuntu Xenial, but cannot start any run due to a pointer error.

make test produces the following output

Running tests...
Test project /home/sblaise/Develop/sedflux/build
      Start  1: Help
 1/12 Test  #1: Help .............................   Passed    0.00 sec
      Start  2: SedCell
 2/12 Test  #2: SedCell ..........................   Passed    0.01 sec
      Start  3: SedColumn
 3/12 Test  #3: SedColumn ........................***Exception: Other  0.11 sec
      Start  4: SedCube
*** Error in `/home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube': munmap_chunk(): invalid pointer: 0x0000000000a83290 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f555fa617e5]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7f555fa6dae8]
/home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube(eh_dlm_read_full+0x1fe)[0x45b62d]
/home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube(eh_dlm_read_full_swap+0xa5)[0x45b712]
/home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube(sed_get_floor_sequence_2+0xb6)[0x430f0c]
/home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube(test_sequence_2+0x13f)[0x417481]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x6f7db)[0x7f55606c37db]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x6f9a3)[0x7f55606c39a3]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x6f9a3)[0x7f55606c39a3]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_test_run_suite+0xbe)[0x7f55606c3bae]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_test_run+0x11)[0x7f55606c3bd1]
/home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube(main+0x1c5)[0x41c827]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f555fa0a830]
/home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube(_start+0x29)[0x416e29]
======= Memory map: ========
00400000-0049a000 r-xp 00000000 08:07 49711120                           /home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube
00699000-0069a000 r--p 00099000 08:07 49711120                           /home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube
0069a000-0069d000 rw-p 0009a000 08:07 49711120                           /home/sblaise/Develop/sedflux/build/ew/sed/sed-test-cube
0069d000-00791000 rw-p 00000000 00:00 0 
00a6b000-00ab1000 rw-p 00000000 00:00 0                                  [heap]
7f555f55d000-7f555f575000 r-xp 00000000 08:07 22413802                   /lib/x86_64-linux-gnu/libpthread-2.23.so
7f555f575000-7f555f774000 ---p 00018000 08:07 22413802                   /lib/x86_64-linux-gnu/libpthread-2.23.so
7f555f774000-7f555f775000 r--p 00017000 08:07 22413802                   /lib/x86_64-linux-gnu/libpthread-2.23.so
7f555f775000-7f555f776000 rw-p 00018000 08:07 22413802                   /lib/x86_64-linux-gnu/libpthread-2.23.so
7f555f776000-7f555f77a000 rw-p 00000000 00:00 0 
7f555f77a000-7f555f7e8000 r-xp 00000000 08:07 22413617                   /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f555f7e8000-7f555f9e8000 ---p 0006e000 08:07 22413617                   /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f555f9e8000-7f555f9e9000 r--p 0006e000 08:07 22413617                   /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f555f9e9000-7f555f9ea000 rw-p 0006f000 08:07 22413617                   /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f555f9ea000-7f555fba9000 r-xp 00000000 08:07 22413620                   /lib/x86_64-linux-gnu/libc-2.23.so
7f555fba9000-7f555fda9000 ---p 001bf000 08:07 22413620                   /lib/x86_64-linux-gnu/libc-2.23.so
7f555fda9000-7f555fdad000 r--p 001bf000 08:07 22413620                   /lib/x86_64-linux-gnu/libc-2.23.so
7f555fdad000-7f555fdaf000 rw-p 001c3000 08:07 22413620                   /lib/x86_64-linux-gnu/libc-2.23.so
7f555fdaf000-7f555fdb3000 rw-p 00000000 00:00 0 
7f555fdb3000-7f555fdc9000 r-xp 00000000 08:07 22413705                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f555fdc9000-7f555ffc8000 ---p 00016000 08:07 22413705                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f555ffc8000-7f555ffc9000 rw-p 00015000 08:07 22413705                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f555ffc9000-7f55600d1000 r-xp 00000000 08:07 22413594                   /lib/x86_64-linux-gnu/libm-2.23.so
7f55600d1000-7f55602d0000 ---p 00108000 08:07 22413594                   /lib/x86_64-linux-gnu/libm-2.23.so
7f55602d0000-7f55602d1000 r--p 00107000 08:07 22413594                   /lib/x86_64-linux-gnu/libm-2.23.so
7f55602d1000-7f55602d2000 rw-p 00108000 08:07 22413594                   /lib/x86_64-linux-gnu/libm-2.23.so
7f55602d2000-7f5560444000 r-xp 00000000 08:07 22807087                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f5560444000-7f5560644000 ---p 00172000 08:07 22807087                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f5560644000-7f556064e000 r--p 00172000 08:07 22807087                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f556064e000-7f5560650000 rw-p 0017c000 08:07 22807087                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f5560650000-7f5560654000 rw-p 00000000 00:00 0 
7f5560654000-7f5560763000 r-xp 00000000 08:07 22413514                   /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f5560763000-7f5560962000 ---p 0010f000 08:07 22413514                   /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f5560962000-7f5560963000 r--p 0010e000 08:07 22413514                   /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f5560963000-7f5560964000 rw-p 0010f000 08:07 22413514                   /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f5560964000-7f5560965000 rw-p 00000000 00:00 0 
7f5560965000-7f556098b000 r-xp 00000000 08:07 22413623                   /lib/x86_64-linux-gnu/ld-2.23.so
7f5560b5f000-7f5560b66000 rw-p 00000000 00:00 0 
7f5560b80000-7f5560b81000 rw-p 00000000 00:00 0 
7f5560b81000-7f5560b88000 r--s 00000000 08:07 23069779                   /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f5560b88000-7f5560b8a000 rw-p 00000000 00:00 0 
7f5560b8a000-7f5560b8b000 r--p 00025000 08:07 22413623                   /lib/x86_64-linux-gnu/ld-2.23.so
7f5560b8b000-7f5560b8c000 rw-p 00026000 08:07 22413623                   /lib/x86_64-linux-gnu/ld-2.23.so
7f5560b8c000-7f5560b8d000 rw-p 00000000 00:00 0 
7ffd57e92000-7ffd57eb3000 rw-p 00000000 00:00 0                          [stack]
7ffd57fdd000-7ffd57fdf000 r--p 00000000 00:00 0                          [vvar]
7ffd57fdf000-7ffd57fe1000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
 4/12 Test  #4: SedCube ..........................***Exception: Other  0.11 sec
      Start  5: SedHydro
 5/12 Test  #5: SedHydro .........................***Exception: Other  0.11 sec
      Start  6: SedRiver
 6/12 Test  #6: SedRiver .........................   Passed    0.00 sec
      Start  7: SedWave
 7/12 Test  #7: SedWave ..........................   Passed    0.00 sec
      Start  8: UtilsGrid
 8/12 Test  #8: UtilsGrid ........................   Passed    0.02 sec
      Start  9: UtilsIO
 9/12 Test  #9: UtilsIO ..........................   Passed    0.00 sec
      Start 10: UtilsKeyFile
10/12 Test #10: UtilsKeyFile .....................   Passed    0.00 sec
      Start 11: UtilsNum
11/12 Test #11: UtilsNum .........................   Passed    0.04 sec
      Start 12: UtilsSymbolTable
12/12 Test #12: UtilsSymbolTable .................   Passed    0.00 sec

75% tests passed, 3 tests failed out of 12

Total Test time (real) =   3.43 sec

The following tests FAILED:
	  3 - SedColumn (OTHER_FAULT)
	  4 - SedCube (OTHER_FAULT)
	  5 - SedHydro (OTHER_FAULT)
Errors while running CTest
Makefile:149 : la recette pour la cible « test » a échouée
make: *** [test] Erreur 8

It may be linked with the other issue (#2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions