Fwd: Oddity in profiliing + pthreads

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Oddity in profiliing + pthreads

Aaron Wiebe-2
Apoligies to those of you who got this on the glibc-bugs list - I
posted before I was aware that it was not meant for this type of item.

I'm using Glibc 2.3.6 and nptl - any assistance would be quite
helpful.  Is this fixed in a later version?  I've spent a good while
trying to find anything on this with no luck.

Please cc me in responses as I am not on this list.

-Aaron

> cat blah.c
#include <stdio.h>

int main(int argc, char *argv[])
{
        printf("Hello world\n");
        return 0;
}

> gcc -Wall -g -pg -o blah blah.c -lc_p -pthread
> ./blah
Segmentation fault (core dumped)

> gdb blah core
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host
libthread_db library "/lib/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `./blah'.
Program terminated with signal 11, Segmentation fault.
#0  0x08080ea0 in _dl_get_tls_static_info ()
(gdb) bt
#0  0x08080ea0 in _dl_get_tls_static_info ()
#1  0xb7eee693 in __pthread_initialize_minimal_internal () from
/lib/libpthread.so.0
#2  0xb7eee328 in call_initialize_minimal () from /lib/libpthread.so.0
#3  0xb7eeded8 in _init () from /lib/libpthread.so.0
#4  0xb7f1684f in _dl_init_internal () from /lib/ld-linux.so.2
#5  0xb7f0a7ef in _dl_start_user () from /lib/ld-linux.so.2