gnustep / libobjc2

Objective-C runtime library intended for use with Clang.
http://www.gnustep.org/
MIT License
426 stars 116 forks source link

AssociatedObject and BlockImpTest failures on Linux #232

Closed rmottola closed 1 year ago

rmottola commented 1 year ago

I just tested on Linux/x86 with clang 14.0.6

         19 - AssociatedObject_legacy (Subprocess aborted)
         20 - AssociatedObject_legacy_optimised (Subprocess aborted)
         26 - BlockImpTest_optimised (SEGFAULT)
         28 - BlockImpTest_legacy_optimised (SEGFAULT)
rmottola commented 1 year ago

AssociatedObject_legacy: malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.

AssociatedObject_legacy_optimised: malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
rmottola commented 1 year ago

The two BlockImpTest have no output in the log, I suppose they segfaulted without inform, can I run the tests more verbose perhaps?

davidchisnall commented 1 year ago

This looks like heap corruption. Can you run the test with valgrind?

davidchisnall commented 1 year ago

Not enough information to debug or reproduce. Please reopen this if you are able to run the tests with valgrind or asan.