gdb cannot initialize thread debugging library generic error Wellford South Carolina

Address 300 Jones Rd, Spartanburg, SC 29307
Phone (864) 579-3540
Website Link http://www.rrdonnelley.com
Hours

gdb cannot initialize thread debugging library generic error Wellford, South Carolina

Join them; it only takes a minute: Sign up Unable to Debug Multi-Threaded Application with gdb up vote 11 down vote favorite 1 I am debugging a multi-threaded application with gdb, Any help on this please ? Ton Truong 2004-11-05 23:16:03 UTC PermalinkRaw Message The problem is the "run" command. Plausibility of the Japanese Nekomimi How to create a company culture that cares about information security?

I build the gdb with this toolchain. Home | New | Browse | Search | [?] | Reports | Help | NewAccount | Log In Remember [x] | Forgot Password Login: [x] Search: LoginHelp/GuideAbout TracPreferencesRegister WikiTimelineRoadmapBrowse SourceView TicketsSearch Thanks for using Apache. Here's the tutorial I referenced, and the Debian manual to help you figure out the details of each control field.Generating and Installing the PackageOnce you've got the control file generated, building

Exactly the same behaviour. However I don't need those right now, althoughthey would be *useful*.The main concern for me is now threaded debugging. in ../../daemon/daemon.c (gdb) quit The program is running. When i run the test program in teh debugger it throws up following warnings: Cannot initialize thread debugging library: generic error I searched the net for similar messages, i found similar

It could be that you're dynamic linker path is getting a different pthread library than you expect. This GDB wasconfigured as "ppc-405-linux"...Using host libthread_db library"/mnt/core/lib/libthread_db.so.1".(gdb) break mainBreakpoint 1 at 0x10000548: file test.c, line 10.(gdb) runStarting program: /mnt/core/a.outProgram received signal SIGSEGV, Segmentation fault.0x1000056c in main (argc=1, argv=0x7ffffa94) at test.c:1515 In the /lib folder I have: libpthread-0.9.31.so libthread_db-0.9.31.so Any knows any trick for this? Type "show copying" and "show warranty" for details.

I amunfortunately tied to the kernel from my vendor - 2.4.20 - because I have afew binary only modules I do not have source to. This GDB was configured as "powerpc-unknown-linux-gnu"...(no debugging symbols found)... (gdb) run Starting program: /mnt/raid/usr/sbin/apache (no debugging symbols found)...warning: Cannot initialize thread debugging library: generic error (no debugging symbols found)...warning: Cannot initialize Closing this ticket... GDB is compiled against this version of uclibc. > > First issue is that breakpoints dont seem to be working - I can set them, but > the execution never stops.

When i run the > test program in teh debugger it throws up following > warnings: > > Cannot initialize thread debugging library: generic > error Which architecture are you use "cont" instead# gdb ./a.outGNU gdb 6.2.1Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, andyou are welcome to change it and/or distribute copies However I don't need those right now, although > they would be *useful*. > > The main concern for me is now threaded debugging. Obviously the next options are always activated in the configuration files: Menuconfig: - Thread library debbuging - Build gdb debugger for the Target - Build gdb server for the Target -

Thereis absolutely no warranty for GDB. What makes this version interesting? Please reopen the bug if this is not the case and you can provide additional information. I build the gdb with this toolchain.

Starting program: /tmp/hdd/volumes/HDD2/bin/transmission-daemon -f warning: Cannot initialize thread debugging library: generic error warning: Cannot initialize thread debugging library: generic error warning: Cannot initialize thread debugging library: generic error main (argc=0, argv=0x0) I keep getting "Programreceived signal SIG32, Real-time event 32." messages in GDB.I've seen these before, and generally its caused by problems withlibthread_db.so.1 - but that library is definitely resident on the cheers Ramana > ___________________________________________________________ > Yahoo! Remote debugging of threaded apps works on mips.

I haven't built gdb natively with uClibc and haven't used it . they may not be built correctly). Type "show copying" to see the conditions. However I don't need those right now, althoughthey would be *useful*.The main concern for me is now threaded debugging.

GDB is compiled against this version of uclibc.First issue is that breakpoints dont seem to be working - I can set them, butthe execution never stops. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html Follow-Ups: Re: Cannot initialize thread debugging library: generic error From: Ramana Radhakrishnan Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Easy to do for most applications you use wine-pthread for debugging: $ gdb wine-pthread (gdb) break CreateWindowExW Function "CreateWindowExW" not defined. However, gdb/gdbserverare not seeing anything.Adding more tracing...

We have it working on MIPS, not sure about PPC. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html Ramana Radhakrishnan-3 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate NOTICE: gdb is restoring the *wrong*values - The "RX: M10000548,4:7d821008" command is writing the trap instruction back out tomemory, on top of the correct value, 0x380000000. Doing this is straightforward using the prefix flag provided by configure.

How can I block people from my Minecraft world? Remote debugging of threaded appsworks on mips. everywhere :) Andrew de Quincey 2004-11-06 13:01:51 UTC PermalinkRaw Message Post by Andrew de QuinceyPost by Ton TruongOK, my bad. Here's how we write one:% mkdir custom-gdb-7.0-amd64/DEBIAN% cat > custom-gdb-7.0-amd64/DEBIAN/controlPackage: customgdbVersion: 7.0Section: basePriority: optionalArchitecture: amd64Depends: lex, bisonMaintainer: Vincent Liu Description: Custom build of GDBThis version of GDB provides cutting edgecapabilities that

In gdb I have tried setting libthread-db-search-path to /lib (with the symlink once set to libthread_db.so.1, and once to libthread_db-1.0.so, and also set to /lib/.debug. use "cont" instead# gdb ./a.outGNU gdb 6.2.1Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies Type "show copying" to see the conditions. Update: The tutorial is available at http://www.sourceware.org/gdb/wiki/ProcessRecord/Tutorial. (Thanks to Michael!) 2 comments Labels: Gdb Categories Gdb (4) Java (14) JVM (9) Life (43) Linux (31) Postgres (5) Ruby (15) Software Development

We have it working on MIPS, not sure about PPC. Crossing the border from Switzerland to France and back Are non-english speakers better protected from (international) Phishing? This is likely the reason for the version mismatch. The neater way to do this is to create a package and have the package manager deal with installation/uninstallation for you.Building GDBWe need to perform the usual compiling and installing steps

Interrupt it from the command line > to have a look: > > ^C > Program received signal SIGINT, Interrupt. > 0xf7fec430 in ?? () > (gdb) bt > #0 0xf7fec430 Andrew de Quincey 2004-11-07 14:58:41 UTC PermalinkRaw Message Hi - I got an answer from the GDB list - the linux kernel (2.4.20) I am usingdoes not implement PTRACE_SINGLESTEP correctly. 10 http://www.busybox.net/lists/uclibc/2003-March/005800.htmldon't know if this helps you enough. Still i tried setting the solib-absolute-prefix to /. , it doesnt work.

How to draw a horizontal rule with a colour gradient? Requireslatest uClibc snapshot (11/3/04 or later) though.Interesting. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (CreateWindowExW) pending. (gdb) r notepad.exe Starting program: /usr/bin/wine-pthread notepad.exe [Thread debugging using libthread_db enabled] [New Thread 0xf7d106c0 Regards Srinivas Bakki ___________________________________________________________ Yahoo!

Type "show warranty" for details.This GDB was configured as "ppc-405-linux"...Using host libthread_dblibrary "/mnt/core/lib/libthread_db.so.1".(gdb) break mainBreakpoint 1 at 0x10000548: file test.c, line 10.(gdb) contThe program is not being run.(gdb)This is running directly