From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1222 invoked by alias); 3 Dec 2002 22:52:35 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 1213 invoked from network); 3 Dec 2002 22:52:34 -0000 Received: from unknown (HELO exchange.timesys.com) (65.117.135.102) by sources.redhat.com with SMTP; 3 Dec 2002 22:52:34 -0000 Received: from [192.168.2.66] ([65.117.135.98]) by exchange.timesys.com with Microsoft SMTPSVC(5.0.2195.3779); Tue, 3 Dec 2002 17:45:04 -0500 Subject: SIG32/SIGTRAP issues From: Paul Mundt To: gdb@sources.redhat.com Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-SFq/gLRngebV/a11HfY2" Organization: TimeSys Corporation Message-Id: <1038959780.11721.54.camel@Origin> Mime-Version: 1.0 Date: Tue, 03 Dec 2002 14:52:00 -0000 X-OriginalArrivalTime: 03 Dec 2002 22:45:04.0031 (UTC) FILETIME=[9ECBD2F0:01C29B1D] X-SW-Source: 2002-12/txt/msg00055.txt.bz2 --=-SFq/gLRngebV/a11HfY2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-length: 3914 Hi, I seem to be running into a bit of an odd problem. When I have a threaded application thats shared, everything works fine .. in the event that the application is statically linked however, gdb gets a SIG32 at pthread_create() time and doesn't track the threads properly. Using the following code: #include #include #include #include #define MAX_NUM_THREADS 1024 void *thread_func( void * not_used ) { printf("Starting real thread %d\n", *(int *)not_used); sleep(2); printf("Ending thread\n"); } main() { int i,j,k; int num_of_threads; pthread_t thread[MAX_NUM_THREADS]; printf("Enter the number of threads reqd(<=3D1024): "); scanf("%d", &num_of_threads); for ( i=3D0; i TimeSys Corporation --=-SFq/gLRngebV/a11HfY2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part Content-length: 232 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA97USjicEyV32UmDQRAvksAKC2lUMRmsrEosD6PsQxbPbPdxsjqACfXQkB 6wNLvrLVbD7e3VGgVGbCPDM= =MLy5 -----END PGP SIGNATURE----- --=-SFq/gLRngebV/a11HfY2--