Unable to catch the output after core dump and bus error
I have a weird situation in which the binary dumps core and gives bus error. But before dumping the core and throwing the buss error, it gives some output.
unfortunately I can't grep the output before core dump
But if I do
It returns nothing.
I also tried to redirect the output using
But still can't grep the output.
There is something wrong with bus error and code dump but there must be a way to catch the output. Please help
Thank You.
---------- Post updated at 09:57 AM ---------- Previous update was at 01:29 AM ----------
when the program ran alone without redirection or pipe line, the output went to screen which was line buffered so you can see it before it died. All the other scenarios you had later involved buffering of larger amount of data. Due to the sudden death of the program the output was lost.
You can run the program under a tty program or modify the source code to make it line buffered or flush the output.
when the program ran alone without redirection or pipe line, the output went to screen which was line buffered so you can see it before it died. All the other scenarios you had later involved buffering of larger amount of data. Due to the sudden death of the program the output was lost.
You can run the program under a tty program or modify the source code to make it line buffered or flush the output.
Would appreciate if you could explain or could lead me to the solution to this problem.
While I can't understand why someone would want to run a program that generates a SIGBUS, you might try running it with strace or truss (depending on what system you are using. You will get more of information on what it was writing before the SIGBUS.
BTW, SIGBUS means the program trying to access something using an address reference that is not compatible with the object. That means something has really screwed up and could cause really bad things to happen to your data....
Hi Experts,
Problem summary :
I am facing the below problem on huge files when the disk is getting full on the half way through the execution.
If the disk was already full , the commands fail & everything is fine.
Sample Code :
head_rec_data_file=`head -1 sample_file.txt`
cat... (9 Replies)
Hi,
I need to get an output that is the same as "ethtool -e eth0"
But I need to use another method that does not use the eth port ID (ethX).
Does anyone know of any method?
Thanks!! (3 Replies)
HI,
I am getting run time error when am trying to compile the following coe can any one please help me
while (fgets(strLine, MAX_LINELEN, vobjFile) != NULL && feof(vobjFile) == 0) {
printf("this is the first loop\n");
while (strcmp(strLine, "BEGINTRANS\n") !=... (5 Replies)
my progrme complaints 'Segmentation fault'.
How to let it print 'Segmentation fault(core dumped)' and generate core dump file?
$ulimit
unlimited (22 Replies)
Hi all,
I have a folder with some 28 files. I have a script file that will iteratively take one file at a time from the folder and provide an output for the input file. Till the 7th file, there was no problem but from the 8th file onwards, i got this Segmentation Fault(Core Dump) error. A file... (2 Replies)
how to view core dumped file using gdb and how to extract information from the coredumped file.can we get similar information from the other utilites like strace or ptrace. (2 Replies)
I faced following problem while restoring root backup
Server : Compaq Proliant 6000
OS SCO : Unixware 7.0
#tar - xvf /dev/rmt/ctape1
After extracting some files following error message occurred and process stopped
# BUS ERROR CORE DUMPED
What may be the problem? How to avoid... (1 Reply)
Hi ,
Working on AIX 4.3. An internal error from my apps engine suddenly causes the engine to die. During this time i do notice a core file being dumped in the directory from where I try to re-start my engine.
Q is how does one read this core file, or I should say 'what is this core file'?
thnx (2 Replies)