Sponsored Content
Full Discussion: Analyzing Core Dump
Homework and Emergencies Emergency UNIX and Linux Support Analyzing Core Dump Post 302433104 by uunniixx on Monday 28th of June 2010 01:08:48 PM
Old 06-28-2010
Analyzing Core Dump

We have a binary that generates coredump. So I ran the gdb command to analyze the issue. Pleae note the binary and code are in two different locations and we cannot build the whole binary using debugging symbols. Hence how and what details can I find from below backtarce:

Code:
gdb binary corefile

(gdb) where
#0  0x101fa37a in f1()
#1  0x10203812 in operator f2< ()
#2  0x085f6244 in f3 ()
#3  0x085f1574 in f4()
#4  0x0805b27b in sigsegv_handler ()
#5  <signal handler called>
#6  0x1018d945 in f5()
#7  0x1018e021 in f6()
..................................
#29 0x08055c5c in main ()
(gdb)

Please provide me gdb commands that I can issue to find what’s data inside each stack frame , what’s the issue probably is, where it is failing, other debugging methods if any?

Thanks in advance

Last edited by Scott; 06-28-2010 at 06:44 PM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help, what is the difference between core dump and panic dump?

help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies

2. UNIX for Dummies Questions & Answers

core dump

I've got a core dump in my weblogic home directory, which i have tried to debug by initiating savecore from /etc/init.d/savecore start but savecore failed to create the two files, that is vmcore.n and vmunix.n. savecore is enable on my server to save vmcore and vmunix in /var/crash/hostname 1)... (4 Replies)
Discussion started by: hassan2
4 Replies

3. UNIX for Advanced & Expert Users

Analyzing System Core Files?

can some tell me how to do this. I mean, i tried finding this out on my own but when I checked the man pages, i got a truckload of commands available pertaining to this task which in turn got me confused. so my question is, if there is a simple straight forward(not necessarily easy) way to... (2 Replies)
Discussion started by: TRUEST
2 Replies

4. Programming

about core dump

MY friends: my program under sco unix have a problem? it create a core dump file on the path when execute program , but i can't find the error of the C program ,i don't know how to see the error about my program use core, please help me or give me some suggest and what tools can use... (1 Reply)
Discussion started by: zhaohaizhou
1 Replies

5. UNIX for Advanced & Expert Users

core dump

Hi All, i am new to this forum.i want detail of reading the core file and trace the problem because of what the program get crashed.please help me.if any body knows any website or tutoril plese let me know. sudhir (6 Replies)
Discussion started by: sudhir patnaik
6 Replies

6. UNIX for Dummies Questions & Answers

Core dump in HP-UX..

Hi All I am new for this forum. I have a core file by using gdb and bt cmd I got the function name but I want to the exact cause of the core dump because of I can not reproduse the binary so if any one know the cmd plz plz plz let me know. (0 Replies)
Discussion started by: gyanusoni
0 Replies

7. UNIX for Advanced & Expert Users

Core Dump

Hello all, Iam new to unix while executing java program which finely working in windows know iam testing with unix ,but in unix while executing iam getting core dump, my application is in client server environment and it is menu drivrn application on clicking options no problem but after some time... (1 Reply)
Discussion started by: vinp
1 Replies

8. AIX

core dump

My application gives core dump. When i am debugging with dbx getting instructions below: pthdb_session.c, 818: 695445 PTHDB_INTERNAL (internal error) pthreaded.c, 1941: PTHDB_INTERNAL (internal error) Illegal instruction (illegal opcode) in . at 0x0 warning: Unable to access address 0x0... (1 Reply)
Discussion started by: bapi
1 Replies

9. UNIX for Dummies Questions & Answers

No core dump

my progrme complaints 'Segmentation fault'. How to let it print 'Segmentation fault(core dumped)' and generate core dump file? $ulimit unlimited (22 Replies)
Discussion started by: vistastar
22 Replies

10. Solaris

core dump

Hi guys, just want to know which core file pattern is best to set for core dumps: 1) per-process file name pattern or 2) global file name pattern. I will really appreciate an explanation why the chosen one is better. Thanks a lot guys. (2 Replies)
Discussion started by: cjashu
2 Replies
DH_BUILDDEB(1)							     Debhelper							    DH_BUILDDEB(1)

NAME
dh_builddeb - build Debian binary packages SYNOPSIS
dh_builddeb [debhelperoptions] [--destdir=directory] [--filename=name] [--params] DESCRIPTION
dh_builddeb simply calls dpkg-deb(1) to build a Debian package or packages. It will also build dbgsym packages when dh_strip(1) and dh_gencontrol(1) have prepared them. It supports building multiple binary packages in parallel, when enabled by DEB_BUILD_OPTIONS. When the Rules-Requires-Root field is not (effectively) binary-targets, dh_builddeb will pass --root-owner-group to dpkg-deb(1). OPTIONS
--destdir=directory Use this if you want the generated .deb files to be put in a directory other than the default of "..". --filename=name Use this if you want to force the generated .deb file to have a particular file name. Does not work well if more than one .deb is generated! -- params Pass params to dpkg-deb(1) when it is used to build the package. -uparams This is another way to pass params to dpkg-deb(1). It is deprecated; use -- instead. SEE ALSO
debhelper(7) This program is a part of debhelper. AUTHOR
Joey Hess <joeyh@debian.org> 11.1.6ubuntu2 2018-05-10 DH_BUILDDEB(1)
All times are GMT -4. The time now is 09:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy