From owner-freebsd-stable Wed May 29 17:50:36 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.sandvine.com (sandvine.com [209.167.74.226]) by hub.freebsd.org (Postfix) with ESMTP id 5F1B537B41D for ; Wed, 29 May 2002 17:50:04 -0700 (PDT) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Wed, 29 May 2002 20:50:03 -0400 Message-ID: From: Don Bowman To: "'freebsd-stable@freebsd.org'" Subject: gprof & pthreads, crash (null pointer) Date: Wed, 29 May 2002 20:49:54 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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