Skip to content
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

Stack backtraces in exceptions not supported #2354

Closed
llvmbot opened this issue Feb 4, 2008 · 6 comments
Closed

Stack backtraces in exceptions not supported #2354

llvmbot opened this issue Feb 4, 2008 · 6 comments
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Feb 4, 2008

Bugzilla Link 1982
Resolution FIXED
Resolved on May 04, 2012 06:47
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl,@jayfoad

Extended Description

The Ada -E binder option stores a stack traceback in the exception.
This doesn't work with llvm-gcc. Testcase:

procedure Trace is
begin
raise Program_Error;
end;

$ gnatmake trace.adb -bargs -E
gcc -c trace.adb
gnatbind -aO./ -E -I- -x trace.ali
gnatlink trace.ali
$ ./trace
Segmentation fault (core dumped)

@asl
Copy link
Collaborator

asl commented Feb 23, 2008

How such stuff is represented in terms of gcc builtins / llvm IR ?

@llvmbot
Copy link
Collaborator Author

llvmbot commented Feb 23, 2008

A quick glance shows it using:

__builtin_frame_address
_Unwind_Backtrace
_Unwind_GetIP

@jayfoad
Copy link
Contributor

jayfoad commented May 4, 2012

This doesn't work with llvm-gcc.

Does it work with dragonegg?

@llvmbot
Copy link
Collaborator Author

llvmbot commented May 4, 2012

This works with dragonegg.

@jayfoad
Copy link
Contributor

jayfoad commented May 4, 2012

Cool!

@llvmbot
Copy link
Collaborator Author

llvmbot commented Nov 26, 2021

mentioned in issue llvm/llvm-bugzilla-archive#2826

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag
Projects
None yet
Development

No branches or pull requests

3 participants