Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Oldham, Adam" <adam.oldham@marconi.com>
To: "'gdb@sourceware.cygnus.com'" <gdb@sourceware.cygnus.com>
Cc: "Oldham, Adam" <adam.oldham@marconi.com>
Subject: gdb 5, linuxthreads, working??
Date: Fri, 25 May 2001 13:38:00 -0000	[thread overview]
Message-ID: <A3E34B558F5CD211B4980008C7A4A99003883A1A@sparrow.eng.gilbarco.com> (raw)

Hello,
I've tried to read as far back as I could in the gdb lists and in newsgroups
and I cannot figure out what is wrong, so any help would be appreciated.  I
am currectly running Mandrake 7.2 with kernel 2.2.17, glibc 2.1.3, gcc
2.95.2, gpc 20010502, and gdb 5.  I have a heavy program I have written to
utilize linuxthreads and calls pthread_create to run the threads.  When
debugging the program with gdb 5 (both the binary distributed with Mandrake
and compiling from source) i get this with my executable:
...
This GDB was configured as "i686-pc-linux-gnu"...rw_common (): write: No
such file or directory.

warning: unable to set global thread event mask
[New Thread 1024 (runnable)]
rw_common (): write: No such file or directory.

warning: stop_or_attach_thread: generic error
(gdb)

Needless to say, this only recognizes the first thred, when others are
created, the info thread command returns nothing.

Now....
I downloaded the 20010525 snapshot and compiled it.  I got none of the
errors above and I can run my program with it and it will pick up and
recognize all my threads.  However, when setting breakpoints, I am getting
string range errors and segmentation faults and arithmetic faults.  Its a
development version, I expect that.

So.... can anyone give me an option of something to do to debug my threads?

Thanks,

Adam Oldham

-----------------------------------------------------------------------
C. Adam Oldham              Marconi Commerce Systems Inc.
Software Engineer           7300 West Friendly Ave.
adam.oldham@marconi.com     Greensboro, NC 27420-2087
Phone : 336.547.5952        Fax   : 336.547.5079
-----------------------------------------------------------------------
This document contains confidential information of Marconi Commerce
Systems Inc.  In consideration of the receipt of this document, the
recipient agrees not to reproduce, copy, use or transmit this document
and/or the information contained herein, in whole or in part, or to
suffer such actions by others, for any purpose except with written
permission, first obtained, of Marconi Commerce Systems Inc., and
further agrees to surrender the same to Marconi Commerce Systems Inc.
upon demand.
-----------------------------------------------------------------------


             reply	other threads:[~2001-05-25 13:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-25 13:38 Oldham, Adam [this message]
2001-05-25 14:25 ` Trond Eivind Glomsrød
2001-05-25 14:37 ` Kevin Buettner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A3E34B558F5CD211B4980008C7A4A99003883A1A@sparrow.eng.gilbarco.com \
    --to=adam.oldham@marconi.com \
    --cc=gdb@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox