Comments (4)
Reproduced locally: ./configure --enable-gc-assertions --disable-shared && make -j check CFLAGS_EXTRA="-O0 -g -D _FORTIFY_SOURCE=2 -D FIND_LEAK -D SKIP_LEAKED_OBJECTS_PRINTING"
Output:
Signals delivery fails constantly at GC #1
from bdwgc.
The scenario of the failure (on Linux):
- Find-leak mode is on
- pthread_create/join primitives are not redirected
- GC is initialized from a thread other than primordial
- that thread is terminated (but not unregistered as the 1st one in GC)
- the primordial thread exits and launches GC_exit_check
- GC_gcollect tries to suspend the terminated thread by sending a signal
- the signal is not delivered but pthread_kill just returns zero
- the signal sending is retried until aborting with the proper message.
The proposed solution (workaround) is not to call GC_gcollect at the process exit (in the find-leak mode) if GC_init was called from a thread other than primordial one.
from bdwgc.
the signal is not delivered but pthread_kill just returns zero
Such behavior is first observed on Ubuntu 22.04 (Jammy) x64.
from bdwgc.
The solution should also solve #533 (because no need to modify GC_in_thread_creation inside GC_exit_check).
from bdwgc.
Related Issues (20)
- Unexpected heap growth in gctest single-threaded incremental mode with checksums on Linux/x64
- SEGFAULT in gctest on Win64
- gctest sometimes hang on Linux/x64 when compiled with DONT_ADD_BYTE_AT_END HOT 2
- gc-8.2.2 gctest fail on linux/aarch64 (qemu) HOT 5
- Signals delivery fails in gctest on Ubuntu Jammy if compiled with TSan HOT 10
- Incremental GC collecting referenced objects (gctest fails with soft vdb if shared build by zig) HOT 13
- Best practice on parallel + incremental / generational ? HOT 8
- Design question, concurent GC + free? HOT 4
- Provide global aligned allocators in gccpp library HOT 1
- Bad complex descriptor occurs rarely in find-leak mode HOT 3
- Assertion violation in cpptest about nFreed/nAllocated with ASan on E2K HOT 1
- SIGSEGV in gctest, disclaimtest, weakmaptest if compiled with TSan and MPROTECT_VDB mode active on Linux HOT 2
- SIGPWR signal on Debian HOT 3
- Inconsistent soft-dirty against mprotect dirty bits HOT 3
- Downstream libgc releases (May 2023) HOT 30
- Initial support of Embox OS HOT 8
- config doesn't recognize riscv on netbsd HOT 3
- Provide build.zig for building libgc? HOT 2
- Initial support of KOS/arm64 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bdwgc.