Sponsored Content
Top Forums Shell Programming and Scripting Unable to catch the output after core dump and bus error Post 302364804 by jp2542a on Saturday 24th of October 2009 02:55:50 AM
Old 10-24-2009
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....
 

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

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)
Discussion started by: buRst
2 Replies

3. UNIX for Advanced & Expert Users

Bus Error Core Dumped

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)
Discussion started by: j1yant
1 Replies

4. Programming

core dump

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)
Discussion started by: Manabhanjan
2 Replies

5. Shell Programming and Scripting

Segmentation Fault(Core Dump) Error

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)
Discussion started by: mick_000
2 Replies

6. 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

7. Solaris

ipsec error seen in ikeadm dump p1 output

****** (0 Replies)
Discussion started by: meghnasreddy
0 Replies

8. Programming

Core dump error in code

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)
Discussion started by: uday.sena.m
5 Replies

9. UNIX for Dummies Questions & Answers

Get the eeprom dump using PCI bus address

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)
Discussion started by: h0ujun
3 Replies

10. Shell Programming and Scripting

Unable to catch the redirection error when the disk is full

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)
Discussion started by: Pruthviraj_shiv
9 Replies
PRCTL(1)						      General Commands Manual							  PRCTL(1)

NAME
prctl - Process operations SYNOPSIS
prctl [-v] [-h|--help] [--version] <-q|<options....>> [command] where <options> are: --unaligned=[silent|signal|default] --fpemu=[silent|signal|default] DESCRIPTION
prctl allows you to query or control certain process behavior. Supported options are handling of unaligned memory accesses and floating point assistance faults by a process. When a process performs an unaligned memory access, by default the kernel would emulate the unaligned access correctly and log the unaligned access in syslog. This behavior can be changed so the kernel could either emulate the unaligned access correctly without logging an error or send SIGBUS to the process. Similarly when a process encounters a floating point assist fault, kernel would invoke floating point emulator and log the floating point assist fault. This behavior can be changed so the ker- nel could either emulate floating point operation without logging an error or send SIGFPE to the offending process. prctl can optionally be followed by a command. If a command is specified, prctl will exec the command with the processor behavior set to as specified by the options. If a command is not specified, prctl will fork a new shell unless the command only queried the current settings. The shell started by prctl will be as defined by the environment variable SHELL. If environment variable SHELL is not defined, shell in the password entry for the user will be started. If a shell is not found in the password entry, bash will be started. OPTIONS -v Verbose mode. In verbose mode, any new settings are confirmed with a message on stdout. --help Print usage information and exit. --version Print software version and exit. -q Query the current settings for the process options controllable by prctl. --unaligned=[silent|signal|default]] Set unaligned memory access behavior to not log the access (silent), send SIGBUS to the process (signal), or do the default (default). If a value is not specified after "=", current setting is returned. --fpemu=[silent|signal|default]] Set floating point assist fault behavior to not log the faulti (silent), send SIGFPE to the process (signal), or do the default (default). If a value is not specified after "=", current setting is returned. If an option is specified multiple times, the last one takes effect. EXAMPLES
prctl --unaligned=signal starts up a shell (as defined by the environment variable SHELL) and sets up any process running under this shell to be sent SIGBUS upon an unaligned memory access. prctl --unaligned=signal gdb tst starts up a gdb session for the program "tst" with the process set to receive SIGBUS upon unligned memory access. prctl --unaligned= displays the current setting for unaligned memory access handling. prctl --unaligned= gdb tst displays the current setting for unaligned memory access handling and starts up a gdb session for the program "tst". NOTES
prctl works on 2.4.0 and above kernels only. --fpemu= option is specific to IPF (Itanium Processor Family, previously known as IA-64) and is supported on kernels 2.4.11 and above. Other architectures and kernels may return "Invalid argument" error. prctl(2) AUTHOR
Khalid Aziz <khalid_aziz@hp.com> LICENSE
This software is made available under the GNU General Public License (GPL) Version 2. This software comes with NO WARRANTY. Process operations PRCTL(1)
All times are GMT -4. The time now is 10:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy