Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 20:49:54 -0400
From:      Don Bowman <don@sandvine.com>
To:        "'freebsd-stable@freebsd.org'" <freebsd-stable@freebsd.org>
Subject:   gprof & pthreads, crash (null pointer)
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C853376762CC@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help

Can anyone tell me if gprof (ie compiling with -pg) is 
supposed to work with pthreads? I'm finding I get a null
pointer from pthread_create(). Actually, the program counter
becomes a null pointer, as in:
#0  0x00000000 in ?? ()
#1  0x08052cd3 in osiThread::Start( ... )

I'm using gcc30 from the ports, specifically gcc30-3.0.4.
on FreeBSD 4.6-RC #2: Wed May 22 19:30:53 EDT 2002

$ gcc30 -v
Reading specs from
/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/specs
Configured with: ./..//gcc-3.0.4/configure --disable-nls --with-gnu-as
--with-gnu-ld
--with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/
include/g++ --disable-shared --prefix=/usr/local i386-portbld-freebsd5.0
Thread model: posix
gcc version 3.0.4

I'm compiling everything with -pg.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE045D4D9F7AED4CBFF1B3B813C853376762CC>