Cannot Find New Threads Generic Error Gdb
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the gdb "thread debugging using libthread_db enabled" company Business Learn more about hiring developers or posting ads with us Stack Overflow
Gdb Libthread_db
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7
Suspend Error: Generic Error
million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up gdb: Cannot find new threads: generic error after system update up vote 4 down vote favorite I am running
Unable To Find Libthread_db Matching Inferior's Thread Library
an OpenEmbedded based Linux on an ARM board, where my application is running. I used to run kernel 2.6.35, gdb 6.8 and gcc 4.3. Lately I've updated the system to kernel 2.6.37, gdb 7.4 (also tried 7.3) and gcc 4.6. Now, my application can not be debugged anymore (on the ARM board), everytime I try to run it in gdb I get the error "gdb: Cannot find new threads: generic error". The application cannot execute this command while the selected thread is running. makes use of pthreads and does link against pthreads (readelf lists libpthread.so.0 as a dependency). The suggested solutions I found so far all recommend linking to pthread which I am already doing. The other recommendation I found was to use LD_PRELOAD=/lib/libpthread.so.0 which does not make any difference for me. Debugging the x86 builds of the application works without a problem. EDIT: To answer the questions posed in the first answer, I am using gdb on the target (ARM), i.e. no cross-gdb. I also have not stripped libpthread.so.0 (/lib/libpthread-2.9.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped). glibc remained at version 2.9, and the update involved recompiling the whole linux image EDIT2: Removing /lib/libthread-db* allows debugging (with consequent warnings and obviously some features will not work) EDIT3: Using set debug libthread-db 1 I get: Starting program: /home/root/app Trying host libthread_db library: libthread_db.so.1. Host libthread_db.so.1 resolved to: /lib/libthread_db.so.1. td_ta_new failed: application not linked with libthread thread_db_load_search returning 0 Trying host libthread_db library: libthread_db.so.1. Host libthread_db.so.1 resolved to: /lib/libthread_db.so.1. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". warning: Unable to set global thread event mask: generic error Warning: find_new_threads_once: find_new_threads_callback: cannot get thread info: generic error Found 0 new threads in iteration 0. Warning: find_new_threads_once: find_n
- Cannot find new threads: generic error Summary: Cannot find new threads: generic error Status: NEW Alias: None Product: gdb Classification: Unclassified Component: threads (show other bugs) Version: 7.2 Importance: P3 normal Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: Depends on: 17629 Blocks: Show dependency tree /graph Reported: 2008-09-27 17:38 UTC by Carlo Wood Modified: 2014-11-20 11:46 UTC (History) CC List: 4 users (show) gbenson gdb-prs john.carter palves See Also: Host: Target: Build: Last http://stackoverflow.com/questions/10840621/gdb-cannot-find-new-threads-generic-error-after-system-update reconfirmed: Attachments Very short file that "kills gdb". (81 bytes, text/plain) 2011-05-27 05:26 UTC, John Carter Details fix (661 bytes, patch) 2011-05-27 10:46 UTC, Pedro Alves Details | Diff View All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Carlo Wood 2008-09-27 17:38:01 UTC https://sourceware.org/bugzilla/show_bug.cgi?id=9635 [Converted from Gnats 2530] gdb stopped working, I can't recall why -- must have been some update of the operating system. What happens when I try to debug my C++ application is this: hikaru:~/projects/cwchessboard/cwchessboard-objdir>gdb ./tstpgnread GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Non-*NIX Forums > Programming gdb - Cannot find new threads: generic error User Name Remember Me? Password Programming This forum is for all programming questions. The question does not have http://www.linuxquestions.org/questions/programming-9/gdb-cannot-find-new-threads-generic-error-565411/ to be directly related to Linux and any language is fair game. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and generic error ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created cannot find new as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 06-29-2007, 12:01 PM #1 tashtego LQ Newbie Registered: Mar 2007 Posts: 5 Rep: gdb - Cannot find new threads: generic error Hi, I'm using gdb 6.6 on a 2.6.20 kernel gentoo installation. I get this generic error when I try to run my c++ program (built with gcc 4.1.1-r3) and I'm not sure how to proceed to figure out what is going on. Any sugggestions would be welcome. tashtego View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by tashtego 07-01-2007, 12:42 PM #2 knobby67 Member Registered: Mar 2006 Posts: 604 Rep: Have you 1 made sure you've installed a version of GDB