Cannot Get Thread Event Message Generic Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions gdb "thread debugging using libthread_db enabled" you might have Meta Discuss the workings and policies of this
Gdb Libthread_db
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers suspend error: generic error or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a unable to find libthread_db matching inferior's thread library community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up gdb: Cannot find new threads: generic error up vote 25 down vote favorite 13 When I run GDB against a program which loads a .so which is linked to pthreads, GDB reports error "Cannot
Cannot Execute This Command While The Selected Thread Is Running.
find new threads: generic error". Note that executable that I run is not linked with pthreads. Any clues? $ gdb --args lua -lluarocks.require GNU gdb (GDB) 7.0-ubuntu Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see:
Printing -XML -Clone This Bug -Last Comment First Last Prev Next This bug is not in your last search results. Bug116583 - gdb gets confused with multithreaded app Summary: gdb gets confused with multithreaded app Status: CLOSED ERRATA Aliases: None Product: Red Hat Enterprise Linux 3 Classification: Red Hat Component: gdb (Show other bugs) Sub Component: --- Version: 3.0 Hardware: All Linux Priority medium Severity high TargetMilestone: --- TargetRelease: --- Assigned To: Jeff Johnston QA Contact: Docs Contact: URL: Whiteboard: Keywords: Depends On: 110848 Blocks: Show dependency tree /graph http://stackoverflow.com/questions/2702628/gdb-cannot-find-new-threads-generic-error Reported: 2004-02-23 10:12 EST by Johan Walles Modified: 2007-11-30 17:07 EST (History) CC List: 4 users (show) cagney ihse jjohnstn shillman See Also: Fixed In Version: Doc Type: Bug Fix Doc Text: Story Points: --- Clone Of: Environment: Last Closed: 2004-04-06 17:35:40 EDT Type: --- Regression: --- Mount Type: --- Documentation: --- CRM: Verified Versions: Category: --- oVirt Team: --- RHEL 7.3 requirements from Atomic Host: Cloudforms https://bugzilla.redhat.com/show_bug.cgi?id=116583 Team: --- Attachments (Terms of Use) Reproducer. Build w. "gcc -g -lpthread lphello.c -o lphello", run in gdb (2.90 KB, text/plain) 2004-02-23 10:16 EST, Johan Walles no flags Details Add an attachment (proposed patch, testcase, etc.) Groups: None (edit) Description Johan Walles 2004-02-23 10:12:48 EST From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Description of problem: I'll attach a reproducer for this that confuses gdb every time. It runs fine inside gdb on all non-NPTL platforms I have tried, and it confuses gdb on all NPTL platforms I have tried. Works: RHAS21/ia32, GNU gdb 5.3 Broken: RHEL3/ia32, GNU gdb Red Hat Linux (6.0post-0.20031117.6rh) Broken: RHEL3/ia64, GNU gdb Red Hat Linux (5.3.90-0.20030710.40rh) The exact failure mode is a bit different between different platforms, but it has reproducably and obviously failed on all NPTL platforms I have tried. The program starts 100 threads and waits for them to finish. It does this over and over again. Version-Release number of selected component (if applicable): gdb-6.0post-0.20031117.6 How reproducible: Always Steps to Reproduce: 1. Build the to-be-attached lphello using "gcc -g -Wall -lpthread -o lphello lphello.c". 2. Launch "gdb lphello". 3. "run" 4. Wait for a while (
2 people Affects Status Importance Assigned to Milestone gdb (Ubuntu) Edit Invalid Undecided Unassigned Edit You need to https://bugs.launchpad.net/bugs/563361 log in to change this bug's status. Affecting: gdb (Ubuntu) Filed here by: Andreas Sandberg When: 2010-04-14 Completed: 2014-11-20 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Invalid Undecided generic error Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description Binary package hint: gdb When debugging bug #423252 I noticed that GDB looses control over the target application if it executes getpwnam when using cannot get thread libnss-ldap. GDB displays the following error message: [Thread debugging using libthread_db enabled] Cannot find new threads: generic error It is impossible to continue to work with the application after the above message has been displayed. For example, trying to execute 'next' results in the following error message: Cannot execute this command while the selected thread is running. I suspect this could actually be a kernel bug rather than a GDB bug (I've seen a fair deal of ptrace breakage at work), but I have no way of verifying that at the moment. ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: gdb 7.1-1ubuntu2 ProcVersionSignature: Ubuntu 2.6.32-20.30-generic 2.6.32.11+drm33.2 Uname: Linux 2.6.32-20-generic x86_64 Architecture: amd64 Date: Wed Apr 14 22:35:03 2010 InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318) ProcEnviron: LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: gdb Tags: amd64 apport-bug lucid Edit Tag help Andreas Sandberg (andysan) wrote on 2010-04-14: #1 Dependencies.txt Edit (850 bytes, text/plain; charset="utf-8") Christopher Grayce (cgrayce) wrote