bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

backtrace() and GNU/Linux on Alpha


From: Paul Komarek
Subject: backtrace() and GNU/Linux on Alpha
Date: Mon, 21 Oct 2002 03:35:31 -0400 (EDT)

I'm not getting any stack trace information from backtrace() on GNU/Linux
on Alpha.  I'm using glibc version 2.2.4, linux version 2.4.19-pre8, and
gnu cc version 2.96.  I have an example program and output at the bottom
of this email.

Actually, I'm a bit confused about the glibc version.  We're using Red
Hat v. 7.1 on this machine, and glibc's package name is glibc-2.2.4-27.
Also, the file is called /lib/libc-2.2.4.so.  However:

$ strings ~komarek/bt | grep -i glibc
GLIBC_2.1
GLIBC_2.1.3
GLIBC_2.0

We are definitely using ELF executables.

Is it expected that backtrace() does not work on this platform?  Do we
need to update our toolchain, kernel, or GNU c libs?

If backtrace()'s failure comes as a surprise, and you'd like help hunting
down the problem, then I'm happy to help.  However, I'm unlikely to be
given enough time to pursue this on my own.

Thanks for your time and help.

-Paul Komarek

EXAMPLE:

------------------------------ code --------------------
#include <stdio.h>
#include <execinfo.h>

int main(void)
{
  static void *addresses[10];
  printf( "num addresses=%d\n", backtrace( addresses, 10));
  return 0;
}
------------------------------ end code --------------------

compile with "gcc -rdynamic bt.c -o bt" (or make a shared object
manually).

--------------------------- output ------------
$ ./bt
num addresses=0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]