to find which process dumped core at the promt we give
$ file core.28424
core.28424: ELF 32-bit LSB core file of 'soffice.bin' (signal 11),
Intel 80386, version 1 (SYSV), from 'soffice.bin'
from this command we know 'soffice.bin' process dumped core. Now can i
do the same using python i.e. finding which process dumped core? if so
how can i do it? 5 4064
su wrote: from this command we know 'soffice.bin' process dumped core. Now can i do the same using python i.e. finding which process dumped core? if so how can i do it?
You're best bet would be to run the 'file' program using the subprocess
module and parse the output that it generates.
Regards
Sreeram
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEhDmlrgn 0plK5qqURArtFAK CUUzN7dV7TUGNkK LYS7YZt9GUTTACg wHnJ
TwAuGNBjKWiXTZs PbjpOPFI=
=7CU7
-----END PGP SIGNATURE-----
su wrote: to find which process dumped core at the promt we give
$ file core.28424
core.28424: ELF 32-bit LSB core file of 'soffice.bin' (signal 11), Intel 80386, version 1 (SYSV), from 'soffice.bin'
from this command we know 'soffice.bin' process dumped core. Now can i do the same using python i.e. finding which process dumped core? if so how can i do it?
Unfortunately, without some debugging, all you are likely to find is
that /usr/bin/python (or some other interpreter executable) dumped core.
You'd have to poke around inside the core image to find out which file
was being executed when the interpreter failed.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Love me, love my blog http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
su wrote: to find which process dumped core at the promt we give
$ file core.28424
core.28424: ELF 32-bit LSB core file of 'soffice.bin' (signal 11), Intel 80386, version 1 (SYSV), from 'soffice.bin'
from this command we know 'soffice.bin' process dumped core. Now can i do the same using python i.e. finding which process dumped core? if so how can i do it?
Parse a core file like the file command does?
Steve Holden wrote: su wrote: to find which process dumped core at the promt we give
$ file core.28424
core.28424: ELF 32-bit LSB core file of 'soffice.bin' (signal 11), Intel 80386, version 1 (SYSV), from 'soffice.bin'
from this command we know 'soffice.bin' process dumped core. Now can i do the same using python i.e. finding which process dumped core? if so how can i do it? Unfortunately, without some debugging, all you are likely to find is that /usr/bin/python (or some other interpreter executable) dumped core.
You'd have to poke around inside the core image to find out which file was being executed when the interpreter failed.
I think he didn't want to analyze a Python core dump.
su: look into /usr/share/file/magic or whatever it's called on your box
to see where "file" looks for the executable name.
Georg
if your core is from a python program you can check what file/function
was running
use this gdb macro:
define pbt
set $i = 0
set $j = 0
while $i < 1000
select $i
if $eip >= &PyEval_EvalFra me
if $eip < &PyEval_EvalCod eEx
echo c frame #
p $i
echo py frame #
p $j
set $j = $j+1
x/s ((PyStringObjec t*)f->f_code->co_filename)->ob_sval
x/s ((PyStringObjec t*)f->f_code->co_name)->ob_sval
echo line #
p f->f_lineno
end
end
set $i = $i+1
end
end
document pbt
show python backtrace
macro by yairchu based on pyframe macro by jeremy hylton
end
works on python2.4 here but not 100% sure it will always work. it has
some nasty hack.
you can also see where each of the threads was by choosing the wanted
thread in gdb
I'll post my useful gdb macros to the web sometime soon This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: N.S. du Toit |
last post by:
Just having a bit of trouble programming with C under FreeBSD 5.1 using the
gcc compiler. I'm a bit new to C so my apologies if the answer to my
question appear obvious :)
Basically I've written a function that will check whether a string is an ip
address (see the function isIP below). During my attempt at debugging this
problem I inserted a printf statement before the return command from the
statement, and also a printf statement...
|
by: dboileau |
last post by:
Can anyone help me out with this error, I am trying to compile mysql
with gcc 3.4.6 (Compiled from source) using
CC=gcc CFLAGS="-O3 -mcpu=v8 -Wa,-xarch=v8plusa" \
CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti
-mcpu=v8 -Wa,-xarch=v8plusa" \
../configure --prefix=/opt/build/mysql --with-low-memory \
--enable-assembler
make
|
by: yogesh_anand |
last post by:
Application Process core dumped which has following core stack.Any body knows meaning of t_splay () and _malloc_unlocked (). and under what condition they r trigger?
--- called from signal handler with signal 10 (SIGBUS)
t_splay ()
_malloc_unlocked ()
malloc ()
__1c2n6FI_pv_ ()
__1cMRTMemoryUtilGmemdup6FpkvI_pv_ ()
__1cLRTByteBlock2t5B6Mipkv_v_ ()
|
by: DanielJohnson |
last post by:
I wrote this small program to reverse each word in the string. For
example: "I love You" should print as "I evoL uoY". I get Segmentation
Fault (core dumped) error upon running the program. It compiles fine.
// Program to reverse each word in the string
#include<stdio.h>
int main()
{
void reverse_string(char *, int, int);
|
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 debugged by gdb,
which can inspect PyObjects in a CPython core, for example, but it's
not much fun)?
If there is no way to do this today, are there essential difficulties
in implementing this on top of an OS support for "raw" core dumps?
| |
by: madhuskk |
last post by:
Hi,
When I am trying to run Cognos setup in IBM AIX 5.3, the following error is displaying:
IOT - Abort trap (Core Dumped)
Please inform me the reason for this error.
|
by: henrymania |
last post by:
Am writing a code for database backup....by backupservlet is as given below
i get the following exception
|
by: xiao |
last post by:
It always dumped when I tried to run it... But it compiles OK. What I
want to do is to do a test:
Read information from a .dat file and then write it to another file.
The original DAT file is like this : (very simple..........)
010001010110001101010101010101010101010101
#include<stdio.h>
|
by: randysimes |
last post by:
I am writing a Stack template. The stack is declared as an array.
;
...
}
I have several functions in this class template, Pop() //removes last item of stack, Push() //pushes an item to the stack, Size() //returns the size of the stack, Capacity()// returns N
I have a cpp program that tests the functionality of my template using a menu interface. When I choose Pop() without pushing anything to the stack, I get a Bus Error(core dumped). ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |