Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th September 2007, 04:39 AM
tcmichals Offline
Registered User
 
Join Date: Sep 2007
Posts: 1
GDB FC (gdb forum set me here)

http://sourceware.org/ml/gdb/2007-09/msg00274.html Is the email thread on the GDB forum.

The issue is debugging a simple multi threaded C++ application using GDB, was using eclipse
until it crashed due to getting this message Cannot find new threads: generic error then I started using gdb to trace the issue.

Hello,

I'm trying to debug simple multithreaded app and get the following error:
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error

Can set break points and trace as shown below.
(gdb)
Here is the info..

GNU gdb Red Hat Linux (6.6-15.fc7rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) list
9 #include <iostream>
10
11 void helloworld(const char* who)
12 {
13 std::cout << who << "says, \"Hello World.\"" << std::endl;
14 }
15
16 int main()
17 {
18 boost::thread thrd(boost::bind(&helloworld, "Bob"));
(gdb) list
19 thrd.join();
20 }
21
(gdb) b main
Breakpoint 1 at 0x8048320: file ../helloworld.cpp, line 18.
(gdb) run
Starting program: /home/tcmichals/workspace/example/Debug/example
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
(gdb) n
Single stepping until exit from function _start,
which has no line number information.
Cannot find user-level thread for LWP 3719: generic error
(gdb) n
Single stepping until exit from function _start,
which has no line number information.
Cannot find user-level thread for LWP 3719: generic error

The kernel version is:
Linux version 2.6.22.4-65.fc7 (kojibuilder@xenbuilder2.fedora.redhat.com)
(gcc v
ersion 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Tue Aug 21 22:36:56 EDT
2007
Reply With Quote
Reply

Tags
forum, gdb, set

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with forum dpropes Linux Chat 2 10th May 2009 08:07 PM
PS3 Sub-forum billb Suggestions & Feedback 27 4th October 2007 07:47 AM
PHP forum? abeb Programming & Packaging 17 9th February 2007 03:14 AM
Is it the Forum or FF 2.0? kona0197 Suggestions & Feedback 13 10th November 2006 10:00 AM
Forum question - how do I move a post from the software forum to hardware forum? laltopi Using Fedora 2 8th July 2005 10:05 AM


Current GMT-time: 00:49 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat