Results 1 to 5 of 5
Hello all
i dont have much knowledge about traplog
under /var/log traplog is getting generated .
what for this traplog ? can anyone suggest any site from where i can ...
- 01-07-2011 #1Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
traplog info
Hello all
i dont have much knowledge about traplog
under /var/log traplog is getting generated .
what for this traplog ? can anyone suggest any site from where i can get info about generation of traplog . I searched in the net but unable to find any relevant thing.
- 01-07-2011 #2
You running any sort of snmp? They can be configured to create a traplog. What is in the file?
- 01-13-2011 #3Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
i am getting traplogs when passing sigbus signal
in my code i have done SIGBUS signal handling.
now inside my main function i have defined a signal handlervoid
sigHandle(int xx)
{
switch(xx)
{
case SIGHUP:
printf("sighup");
//code --
break;
case SIGINT:
printf("sigint");
case SIGQUIT:
printf("sigquit");
case SIGBUS:
printf("sigbus");
case SIGTERM:
printf("sigterm");
//code --
break;
default:
break;
}
struct sigaction sa;
sa.sa_handler = sigHandle;
if(sigaction(SIGBUS, &sa, NULL) != 0)
{
//print message
}
similarly for othersignals
the code is not generating trap for other signals but particularly for sigbus signal it is generatin trap . ?
Is there any specific way by which i have to do signal handling for SIGBUS ??
- 01-13-2011 #4
check the trap file to see what is being written to it. It might be the information from your code.
- 01-14-2011 #5Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
as per the designlogs and trap logs
when i am sending SIGINT signal it it is passing thru all the cases and ends with sigterm(as break is there at teh end of sigterm) , similarly for other signal but the trap is mainly occurring when we pass SIGBUS signal.
SIGBUS is defined as Sig 7date:time: process:EE: fault.c(152): 9486:9486: Generating TRAPINFO for: pid=9486[process name], tid=9486[process], sig=7


Reply With Quote