🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Carlo Wood Sun, 19 May 2002 15:34
Huge problems with debugging threaded C++ programs
#1957
Author: Carlo Wood
Date: Sun, 19 May 2002 15:34
37 lines
2171 bytes
Hello everyone,

since many years I've had problems with gdb and
debugging C++.  While things have improved over
time, there are still a lot of problems left.

Unfortunately, the problems that I run into
are not easily to reproduce, and certainly not
with a "simple test case".  If you, the developer,
wants to reproduce these problems then I see
no other way then to install the same software
(on a i686-linux) that I am using and reproduce
the problem under the exact same circumstances.

Please let me know if you're willing to go through
this special effort in order to reproduce the
problems what I run into, so that they can be
fixed.

In the past years I've reported many (C++) template
related bugs for g++, but recently g++ has become
so stable that I do not run into compiler bugs
anymore and I unsubscribed from all gcc/libstdc++
developers mailinglists especially to make time
for gdb.

If you are interested/willing then please drop
me a mail and I'll give instructions on how to
set up the environment that I am working with.

-- 
Carlo Wood <carlo@alinoe.com>

PS I am using gdb-5.1 because gdb-5.2
   and the current CVS doesn't work AT ALL;
   ... but I guess we should start with
   that problem :/
Re: Huge problems with debugging threaded C++ programs
#1974
Author: Carlo Wood
Date: Wed, 22 May 2002 01:33
16 lines
1577 bytes
On Sun, May 19, 2002 at 05:34:01PM +0200, Carlo Wood wrote:
> If you are interested/willing then please drop
> me a mail and I'll give instructions on how to
> set up the environment that I am working with.

Directly after my previous post, I got

(gdb) p ((pthread_t*)&'libcw::debug::_private_::locked_by')[3]
$5 = 1026
(gdb) thread 1
lin-lwp.c:1292: gdb-internal-error: lin_lwp_thread_alive: Assertion `is_lwp (ptid)' failed.
An internal GDB error was detected.  This may make further
debugging unreliable.  Continue this debugging session? (y or n)

-- 
Carlo Wood <carlo@alinoe.com>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads