473,320 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

debugging core dumps on other computer

(first of all, sorry if this is not the correct place to ask, but i
couldn't find a better one...)

I'm new to debugging using core dumps. I've managed to get core dumps
+ symbols using g++ and gdb under linux.
I compile using g++ -g -dH, and i debug using gdb executableFile -c
coredumpFile.
This is a test program backtrace in the original computer (a gentoo
box), where the program was compiled, run, and coredumped:
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x4017a101 in raise () from /lib/libc.so.6
#2 0x4017b8e8 in abort () from /lib/libc.so.6
#3 0x400ed794 in __gnu_cxx::__verbose_terminate_handler () from /usr/
lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
#4 0x400eb1b5 in ?? () from /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/
libstdc++.so.6
#5 0x400eb1f2 in std::terminate () from /usr/lib/gcc/i686-pc-linux-
gnu/4.1.2/libstdc++.so.6
#6 0x400eb2aa in __cxa_rethrow () from /usr/lib/gcc/i686-pc-linux-gnu/
4.1.2/libstdc++.so.6
#7 0x08049047 in main () at main.cpp:46

And this is what i get after i scp the exe and dump to a different
computer (a kubuntu box):
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x4017a101 in modff () from /lib/libc.so.6
#2 0x4017b8e8 in sigorset () from /lib/libc.so.6
#3 0x400ed794 in ?? ()
#4 0x0804c038 in ?? ()
#5 0x00000001 in ?? ()
#6 0x00000002 in ?? ()
#7 0x4027d560 in ?? () from /lib/libc.so.6
#8 0x40035000 in ?? ()
#9 0x00000001 in ?? ()
#10 0x0804c060 in ?? ()
#11 0x4000d6e9 in ?? () from /lib/ld-linux.so.2
#12 0x400351b8 in ?? ()
#13 0x40035c10 in ?? ()
#14 0x00000000 in ?? ()

As you can see, the backtraces differ, and i lose almost all symbols.
What am i doing wrong? Thanks in advance!
Feb 8 '08 #1
2 2625
Bruno Gonzalez (STenyaK) wrote:
(first of all, sorry if this is not the correct place to ask, but i
couldn't find a better one...)
I'm afraid it isn't the correct place, one of the Linux or GNU groups
would be better.

--
Ian Collins.
Feb 8 '08 #2
Bruno Gonzalez (STenyaK) wrote:
(first of all, sorry if this is not the correct place to ask, but i
couldn't find a better one...)

I'm new to debugging using core dumps. I've managed to get core dumps
+ symbols using g++ and gdb under linux.
I compile using g++ -g -dH, and i debug using gdb executableFile -c
coredumpFile.
This is a test program backtrace in the original computer (a gentoo
box), where the program was compiled, run, and coredumped:
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x4017a101 in raise () from /lib/libc.so.6
#2 0x4017b8e8 in abort () from /lib/libc.so.6
#3 0x400ed794 in __gnu_cxx::__verbose_terminate_handler () from /usr/
lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
#4 0x400eb1b5 in ?? () from /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/
libstdc++.so.6
#5 0x400eb1f2 in std::terminate () from /usr/lib/gcc/i686-pc-linux-
gnu/4.1.2/libstdc++.so.6
#6 0x400eb2aa in __cxa_rethrow () from /usr/lib/gcc/i686-pc-linux-gnu/
4.1.2/libstdc++.so.6
#7 0x08049047 in main () at main.cpp:46

And this is what i get after i scp the exe and dump to a different
computer (a kubuntu box):
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x4017a101 in modff () from /lib/libc.so.6
#2 0x4017b8e8 in sigorset () from /lib/libc.so.6
#3 0x400ed794 in ?? ()
#4 0x0804c038 in ?? ()
#5 0x00000001 in ?? ()
#6 0x00000002 in ?? ()
#7 0x4027d560 in ?? () from /lib/libc.so.6
#8 0x40035000 in ?? ()
#9 0x00000001 in ?? ()
#10 0x0804c060 in ?? ()
#11 0x4000d6e9 in ?? () from /lib/ld-linux.so.2
#12 0x400351b8 in ?? ()
#13 0x40035c10 in ?? ()
#14 0x00000000 in ?? ()

As you can see, the backtraces differ, and i lose almost all symbols.
What am i doing wrong? Thanks in advance!
Wrong group. Try gnu.g++.help

F/U set.
Feb 8 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ganesh Gella | last post by:
Hi All, I am using g++ on Linux, and my code has lot of vectors each stores a particualr type of structure. (Structure internally had some vectors). When I am trying to push_back an element to...
9
by: Lil | last post by:
Hi Everyone! I've been trying to figure out this weird bug in my program. I have a python program that calls a C function that reads in a binary file into a buffer. In the C program, buffer is...
2
by: hpoliset | last post by:
I have a debugging question w.r.t core dumps with signal 4 Illegal instruction messages. I analyzed the core file through gdb. In simple english following is the pattern observed: I have an...
8
by: J. D. Leach | last post by:
I am not sure whether this would be considered off topic or not, but here goes.....don't flame me too bad. Running GNU GCC 4.0.1 and GDB 6.3. Was checking my compiler and debugger output prior...
4
by: George Sakkis | last post by:
I have a pure python program (no C extensions) that occasionally core dumps in a non-reproducible way. The program is started by a (non- python) cgi script when a form is submitted. It involves...
4
by: yossi.kreinin | last post by:
Hi! Is there a way to save the state of a Python process for later inspection with a debugger? One way to do this is to dump core, but is the result usable for debugging with pdb (it can be...
4
by: dbee | last post by:
Right. I've got a really, really annoying/difficult/time consuming problem with my development environment. I'm using django to build a web app with paypal integration. My server is hosted...
8
by: Victor Kryukov | last post by:
Hello list, I've found the following strange behavior of cPickle. Do you think it's a bug, or is it by design? Best regards, Victor. from pickle import dumps from cPickle import dumps as...
0
by: stimpy_cm | last post by:
Hi everyone, I’m not a programmer but have a little notion about how things work. I recently downloaded an emulator for my calculator (Texas Instruments Voyage 200), the program uses a library...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.