mfunyu / malloc

Find out the workings behind optimum memory management and recode it, as well as free and realloc.
2 stars 0 forks source link

[bug] google test crush #47

Closed mfunyu closed 5 months ago

mfunyu commented 5 months ago
$> make test
cd ./test/googletest && cmake --build build 1> /dev/null
CMake Error at /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:83 (message):
  Error running test executable.

    Path: '/nfs/homes/mfunyu/sgoinfre/42/malloc/test/googletest/build/test_malloc'
    Result: Segmentation fault
    Output:
      Running main() from /nfs/homes/mfunyu/sgoinfre/42/malloc/test/googletest/build/_deps/googletest-src/googletest/src/gtest_main.cc
      MallocTinyTest.
        One
        SameMultiple
        DiffMultiple
        Small
        BigMultiple
        OverLimit
      MallocSmallTest.
        One
        SameMultiple
        DiffMultiple
        BigMultiple
        FillUp
      MallocLargeTest.
        One
        OneFree
        BigMultiple
      MallocFreeTest.
        Zero
      ErrorTest.
        Malloc
      ReallocTest.
        SameSize
        SameAlignedSize
        EdgeSize
        Expanding
        Realloced
        NullZero
        ReserveContents

Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:179 (gtest_discover_tests_impl)

gmake[3]: *** [CMakeFiles/test_malloc.dir/build.make:116: test_malloc] Error 1
gmake[3]: *** Deleting file 'test_malloc'
gmake[2]: *** [CMakeFiles/Makefile2:137: CMakeFiles/test_malloc.dir/all] Error 2
gmake[1]: *** [Makefile:146: all] Error 2
make: *** [Makefile:139: g_build] Error 2