-
Notifications
You must be signed in to change notification settings - Fork 408
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
SIGSEGV of a2ps when compiled against bdw-gc on Solaris #664
Comments
This is how
It corresponds to what
Thanks, |
Please recompile libgc with |
It seems that But, please provide the stack trace with line numbers. |
Will do and let you know. Thank you! |
This is the backtrace I got:
Let me know what do you think. Thank you, |
Also, there are various warnings about
Don't know how much are they related. |
And a2ps
Could that be the reason? |
This line contains @l1gi I think to find out the root cause (and understand how to fix it), you should figure out where the handler is changed for SIGSEGV. |
Added a truss output where you can see the signal related calls and faults. Looking further into the source code. |
Also, please figure out why does GC_register_main_static_data() return true. |
Will look into it. This is strange also:
The address is 0x20. It almost looks there is something wrong with the a2ps code which stores a pointer to 0x20 somewhere and accesses it later. |
Hmm, it looks truss will give a result where the processes dies a different way then what gdb/mdb sees. Will focus on your advices. |
Well, in
And in dyn_load.c:
But I don't see |
dyn_load.c is included by extra/gc.c |
I thought it should defined somewhere above in the file. Could you please check why not on Solaris? |
To be honest, I do not see any SEGV manipulating code in a2ps, but there could be some generic handlers reset which I am not aware of. It seems the definition of
All modern unixes have Then there is a chance to have it defined when:
Also, Solaris does not have Then there is a win section and darwin section. So it finally falls back to define the variant returning TRUE. To be honest, I am not keen on Solaris dynamic linker, but I have many people around who could help. Also, I am not sure for how long no one tried to build bdw-gc on Solaris, so the platform configuration may be outdated. Would you recommend me where to look and what to try to move forward, please? What about to try to set Thank you, |
Hmm, I think I was wrong with the advice. When you are debugging in gdb, before 'r' command you should type: |
Hello,
I am trying to upgrade to a recent version of a2ps where bdw-gc is a mandatory dependency. I have successfully built and tested bdw-gc on recent Solaris:
a2ps
configure script has foundlibgc.so.1
and the whole package has built without issues. I am getting following SIGSEGV after trying to run the binary built:Could you help me with debugging the issue, please? Should you need more information, dont't hesitate to ask.
Thank you,
m.
The text was updated successfully, but these errors were encountered: