I have a java application which uses processBuilder to start a new shell script process. Every few days, that shell script process hang and we saw following message in kern log:
general protection fault: 0000 [#1] SMPModules linked in: btrfs xor raid6_pq ufs qnx4 hfsplus hfs minix....CPU: 5 PID: 21704 Comm: Test- Not tainted 4.4.0-223-generic #256-UbuntuHardware name: Default string Default string/SKYBAY, BIOS 5.12 12/21/2017task: ffff8804275e9e80 ti: ffff880179894000 task.ti: ffff880179894000RIP: 0010:[<ffffffff81236ce8>] [<ffffffff81236ce8>] __d_lookup+0x68/0x160RAX: ffffc9000028f730 RBX: f0f07fc34c7e87e1 RCX: 000000000000000bRDX: ffffc9000006a000 RSI: ffff880179897de8 RDI: ffff8802cdb806c0.......
Sounds like kernel crashed or that particular CPU is locked up.
How can we prevent this from happening?