From: Ben Stanley <bds02@uow.edu.au>
To: gdb@sources.redhat.com
Subject: gdb 5.2.1-4, gcc 3.2-7 and lyx thread problem
Date: Tue, 19 Nov 2002 13:39:00 -0000 [thread overview]
Message-ID: <1037741969.25407.32.camel@dragon.home> (raw)
Hi,
I was trying to use gdb on lyx-1.3.0cvs. I would place a breakpoint in
the lyx code (Counter::reset) and run until the program hit the
breakpoint. When that happened, gdb went crazy:
(gdb) run
[New Thread 8192 (LWP 26110)]
Unknown token, keepLyXAspectRatio, skipping.
Unknown token, keepLyXAspectRatio, skipping.
[New Cannot find thread 16385: invalid thread handle
This LyX was built with the Qt front end, and I'm told by the LyX
developers that only a single thread is used.
I then tried to find out what's going on with the threads:
(gdb) info threads
* 1 Thread 8192 (LWP 26128) [No stack.]
lyx: SIGHUP signal caught
Segmentation fault
The segmentation fault was actually gdb, not lyx (reported by ddd).
Thus gdb is becoming internally corrupted when I use it on LyX.
I'm wondering if upgrading gdb to the latest cvs version might help
here. I'm currently using the version that comes with RH-8.0.
LyX uses lots of advanced C++.
I also have a problem with the following:
(gdb) list Counters::reset
[0] cancel
[1] all
[2] Counters::reset(std::string const&) at counters.C:174
[3] Counters::reset() at counters.C:164
That output is correct. However, trying to set a breakpoint is wrong:
(gdb) break 'Counters::reset'
[0] cancel
[1] all
[2] Counters::reset(std::string const&) at
/usr/include/c++/3.2/bits/basic_string.h:229
[3] Counters::reset() at /usr/include/c++/3.2/bits/stl_tree.h:651
This gives incorrect information on the source location of these
functions.
Quoted and unquoted versions of each command give the same answers.
Thanks for any help.
Ben.
--
Ben Stanley, PhD candidate
School of Information Technology and Computer Science
University of Wollongong
reply other threads:[~2002-11-19 21:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1037741969.25407.32.camel@dragon.home \
--to=bds02@uow.edu.au \
--cc=gdb@sources.redhat.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