-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GC_init segfaults if called from asm code on Linux/x86_64 #654
Comments
Sorry, I cannot compile/test your sample at this moment. Would be nice if you dig into the crash details and provide more information - e.g. does it segfaults during initial collection or when detecting stack bottom? (I am assuming you are using fresh bdwgc master.) |
I have a guix-Linux distribution with libgc version 8.2.2 installed.
|
Dear all,
Since I'm currently writing a compiler for a functional language I thought about using
bdwgc
as a garbage collector.Since the compiler generates code for the x86_64 plattform (using nasm as assembler) I wanted to use the GC in assembler code directly, avoiding parts written in C/C++. So far it worked well but today I dicovered a strange phenomenon: the following code works fine:
while
segfaults. How can pushing and popping
rbp
to/from the stack twice can influence the behavior of GC_init? Or am I calling it completely wrong?The commands used to assemble the program are:
The text was updated successfully, but these errors were encountered: