I have a shell script that is over 6034 lines long and it is coring. Is there any way to read the core so I can narrow down where the error is occuring? Can I rebould the ksh in debug?
Example form gdb of core file....
Core was generated by `/bin/ksh /usr/local/tools/scripts/UnixBuildScript'.
Program terminated with signal 11, Segmentation fault.
#0 0x08049f8d in ?? ()
(gdb) where
#0 0x08049f8d in ?? ()
#1 0x0814106a in ?? ()
#2 0x0823a498 in ?? ()
#3 0xbffeafa8 in ?? ()
#4 0x08067aa4 in ?? ()
Example form gdb of core file....
Core was generated by `/bin/ksh /usr/local/tools/scripts/UnixBuildScript'.
Program terminated with signal 11, Segmentation fault.
#0 0x08049f8d in ?? ()
(gdb) where
#0 0x08049f8d in ?? ()
#1 0x0814106a in ?? ()
#2 0x0823a498 in ?? ()
#3 0xbffeafa8 in ?? ()
#4 0x08067aa4 in ?? ()