Environment
Situation
gdb - The Gnu Project Debugger
This usually requires that the process be running or in a hung state at the time of the manual core generation.
The other part of the procedure includes the novell-getcore script.
To prepare to receive a core from a process that is dying, please reference TID 3447847 - How to prepare for and obtain a GroupWise Agent or Gateway core file on Linux.
Resolution
Setting Up for the Core File
Change the 'ulimit' parameter to be unlimited which will allow a core file of any size to be written.
Most cores are relatively small in comparison to the amount of free space on disk.
Gathering the Core File
EX: GNU gdb 6.6
• Grep for the GroupWise pid:
pgrep
EX: pgrep gwia
[The process will be associated with a number and may look similar to:
• Attach to the running process with gdb:
gdb -p
[This launches the gdb app debugger console.]
• In the debugger console type:
gcore
[This will create a core.
In the example, the core file is called 'core.5425'.]
Then type:
quit ... and then choose 'Yes' to fully exit the debugger.
Bundling the Core File
Use novell-getcore
• The novell-getcore script can be downloaded from the Novell site.
./novell-getcore -b ./core.
It then creates a tarball with all the information hopefully needed to diagnose an application's behavior.]
EX: core_20080410_152826_linux_gwia_servername.tar.gz
• Upload this file to ftp.novell.com/incoming and notify Novell Technical Support of the file name once the file is fully uploaded.