Ivan Maidanski
Ivan Maidanski
Related (most probably): #816
Source: master (32fd37b5) Build: https://ci.appveyor.com/project/bdwgc/bdwgc/builds/52467119/job/0bwaf801jmja6wts
Source: master (62a141407) Build: https://ci.appveyor.com/project/bdwgc/bdwgc/builds/53072632/job/lum6217eouvpoqe0
Source: master Build: https://github.com/ivmai/bdwgc-fork/actions/runs/19598037470/job/56125436149 gctest existed with code 3. Config: `zig build -Dtarget=native -Ddisable_handle_fork=false -Denable_gc_assertions=true -Denable_redirect_malloc=true -Denable_thread_local_alloc=false test`
Hello @jeaye, While nobody reported it, it seems the expected behavior. I think to fix the issue we need same code in `malloc` (see file `malloc.c`) as in `REDIR_MALLOC_AND_LINUX_THREADS` block...
E.g. could you please try the following: ``` diff --git a/malloc.c b/malloc.c index ba6c1edf..b536ea52 100644 --- a/malloc.c +++ b/malloc.c @@ -536,26 +536,6 @@ GC_malloc_atomic_uncollectable(size_t lb) # define REDIRECT_MALLOC_F REDIRECT_MALLOC #...
> HAVE_LIBPTHREAD_SO was not defined for me I think it is correct.
``` #2 0x0000555557b6d4d8 in GC_init_lib_bounds () at /home/jeaye/projects/jank/compiler+runtime/third-party/bdwgc/malloc.c:557 #3 0x0000555557b6d549 in malloc (lb=88) at /home/jeaye/projects/jank/compiler+runtime/third-party/bdwgc/malloc.c:609 #4 0x00007ffff7fc6b72 in _dl_exception_create_format () from /lib64/ld-linux-x86-64.so.2 ``` The problem here is that we should...
> I think to fix the issue we need same code in malloc (see file malloc.c) as in REDIR_MALLOC_AND_LINUX_THREADS block of calloc. Could you please try it? This was wrong...
/cc @hboehm