This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15407] Partial frame info in sysdeps/x86_64/start.S


http://sourceware.org/bugzilla/show_bug.cgi?id=15407

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> 2013-04-26 21:30:28 UTC ---
(In reply to comment #5)
> HJ, do you think you could produce a (preferably C only, not C++) test case
> that shows the same problems that gold/exception_static_test experiences?

The problem only shows up with C++ exception when linked with gold:

[hjl@gnu-6 testsuite]$ cat /tmp/x.cc 
void
f1()
{
  throw 0;
}

bool
t1()
{
  int i;
  try
    {
      i = 0;
      f1();
      i = 1;
    }
  catch (...)
    {
      return i == 0;
    }

  return false;
}

int
main()
{
  return !t1();
}
[hjl@gnu-6 testsuite]$ g++ -static  /tmp/x.cc -fuse-ld=gold
[hjl@gnu-6 testsuite]$ ./a.out 
Aborted
[hjl@gnu-6 testsuite]$

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]