I am working on multhithreading application when ever the process dump it always generates core as shown below i am not able to understand where it is actually dumping.
GNU gdb Red Hat Linux (6.5-25.el5rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welco...
I am working on an Android program which calls in to native code. That native code is segfaulting, and since getting debugging working through the android NDK is not really doable, I'm left with a callstack like the following (captured from ddms). My question is whether there is something I can manually run after the fact to translate ...
Hello, My server daemon works fine on most machines however on one I am getting:
malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1)
- 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) ||
((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct
mall...
I am trying to write tests that interact with GDB but am having trouble capturing the output. I would like for a log file to be generated which looks like what would have been seen in a terminal had the test been executed by hand. GDB is proving to be very stubborn when it comes to capturing its output however.
I've been able to write E...
Hi,
I'm having trouble debugging a C++ program in Eclipse (the latest RC of Helios, updated with latest CDT from within itself) on OSX.
The program is very simple (esentially Lesson 2 from NeHe's OpenGL tutorials), consisting of one cpp file and, using OpenGL and Cocoa frameworks, and linking with libSDL.a and libSDLmain.a.
The struct...
I'm currently debugging a project that uses an external library (LibFirm). When i call library functions, I can't really see what's going on there with gdb (i.e. I can't inspect local variables and such).
The library is open source and I compiled it myself, so I think it should be possible to let gdb look into it too. How?
What I am cu...
I put this in my .gdbinit after seeing it on CocoaDev:
fb -[NSException raise]
fb -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:]
fb -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
#define NSZombies
# this will give you help messages. Set to NO to turn them off.
set env Malloc...
When debugging in a thread created with an NSOperationQueue I can set breakpoints just fine, but actual crashes result in the thread silently dying. This is in the simulator, but it also happens on the hardware itself.
Is there a setting in Xcode (gdb, really) that will catch these?
...
I just installed valgrind but now my breakpoints dont work in qtcreator. How can I fix this?
debug:NO GDB PROCESS RUNNING, CMD IGNORED: -stack-list-arguments 2 0 0
...
when I start GDB, I get the following error message in debugger:
input:--- token barrier ---
debug:NO GDB PROCESS RUNNING, CMD IGNORED: -stack-list-arguments 2 0 0
debug:NO GDB PROCESS RUNNING, CMD IGNORED: -stack-list-locals 2
debug:SWITCHING OFF DUMPER DEBUGGING
debug:NO GDB PROCESS RUNNING, CMD IGNORED: set unwindonsignal on
Now if ...
I am working on multithreaded application,When ever process dumps it showing like this.I am not abe to Analyaze the core.I want to know whether there is any problem while linking with the libraries?kindly suggest how to get more information about my core dump
##################################################
GNU gdb Red Hat Linux (6....
I get this error (title of this question), when I am attempting to debug C/C++ programs using gdb with Netbeans IDE.
Does anyone know what this means, and how to get rid of the warning?
I am able to debug despite the warning, but I'd still like to make the warning go away.
Relevant details:
OS: Ubuntu 9.10
gdb: 7.0-ubuntu
Netbeans: ...
Hello
Is there any debugging options built-in in the Xlib (libX11.so)? Can I get list of X11 lib calls?
I want to get full trace of xlib function calls from heavy-multithreaded, closed-source program. It is one not-public embedded platform, so I can't use gdb for multithreaded debugging and there is no ltrace on the platform.
Also, thi...
Hello,
I have built a plain C code on Linux (Fedora) using code-sorcery tool-chain. This is for ARM Cortex-A8 target. This code is running on a Cortex A8 board, running embedded Linux.
When I run this code for some test case, which does dynamic memory allocation (malloc) for some large size (10MB), it crashes after some time giving err...
Hello,
How to learn advanced debugging techniques?
I am a C/Unix programmer, and as such rely on a good C debugger. I know Sun^WOracle mdb on Solaris, GNU gdb on Linux. I feel comfortable setting breakpoints, examining memory structures and such.
Yet, I know that those tools are way more powerful than that. Macros, custom walkers and ...
I am building Python 2.6 4 from source on a Linux server and am experiencing a Segmentation Fault when running the tests (make test) (test_hashlib.py and test_hmac.py). When I opened the core dump file in gdb, I am told that the error is at 0x00002b73379ac446 in ??. I then recompiled python with both my CFLAGS and CPPFLAGS set to -g to...
I have a program and want to debug it in gdb.
Will I see usual program output? How can I enable/disable this output, leaving only gdb messages.
...
Hello
I want to debug some program. I need backtraces from all calls to some function, e.g. puts.
Now I use such gdb script:
set width 0
set height 0
set verbose off
break puts
commands 1
backtrace
continue
end
But starting it with
gdb --batch --command=script --args ./some_program arguments
Gives a error:
Function "puts" not d...
I'm working on a graphic application. It makes significant use of virtual classes. I'm getting some segmentation faults that I'm having trouble debugging.
The primary classes in this application are:
Shape (a virtual class)
Rectangle
Polygon
Circle
Picture (essentially a collection of shapes)
Here is a shortened copy of the applic...
Hello,
Is there a way to list all the loaded modules using gdb, just like Windbg, that automatically shows all the loaded modules. Its okay if there is no one word answer, I'll be happy to work things out myself if someone could please provide me a pointer.
...