Results 1 to 2 of 2
Hi mates, I am working on "Creation of Postmortem data logger on Linux platform.". It is nothing but coredump utility creation manually on the basis of user needs.I got the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-26-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 7
How to replace the default handler with user defined handler in Linux
Hi mates, I am working on "Creation of Postmortem data logger on Linux platform.". It is nothing but coredump utility creation manually on the basis of user needs.I got the call flow mechanism of core dump file creation in RHEL version: 2.6.18.128-el5. It follows as:
File Function called
1.source/ arch/i386/kernel/signal.c -----> do_signal( )
2.source/kernel/signal.c ----------> get_signal_to_deliver( )
3.source/fs/exec.c -------------> do_coredump( )
4.source/fs/binfmt_elf.c -------------> elf_core_dump( )
Now,as per project requirements, i need to modify the default signal handler definitions with my own user defined signal handler that handles various exceptions (SIGSEGV, SIGFPE, SIGABRT etc) causing coredump. Further, i need to build the kernel for keeping the changes in kernel with my handler replacing default handler.
Can anybody please share the proceedings to do those operations ?
Advance thanks to all repliers
Thanks vlc
- 05-05-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,142
School project?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
