Original Message:
Sent: Tue August 06, 2024 07:08 AM
From: Jose Ruiz
Subject: dbaccess starts eating 100% CPU when terminal session closed abruptly on RedHat
Support case opened. Thanks Andreas.
------------------------------
Jose Ruiz
Original Message:
Sent: Tue August 06, 2024 06:27 AM
From: Andreas Legner
Subject: dbaccess starts eating 100% CPU when terminal session closed abruptly on RedHat
Hi Jose,
this is a known problem, bugging us too from time to time (test machines getting really slow), only no one so far got around to really fixing it and perform the required regression testing.
-> if you need this fixed, I'd recommend opening a support case and request the fix
Also: I cannot confirm this is anyhow RedHat specific, we're seeing it on SuSE too, and I just repro'ed it on AIX.
------------------------------
Andreas Legner
Original Message:
Sent: Mon August 05, 2024 03:38 AM
From: Jose Ruiz
Subject: dbaccess starts eating 100% CPU when terminal session closed abruptly on RedHat
Hi everybody,
When running dbaccess (in interactive menu mode) on RedHat, if you just close the putty terminal window abruptly, dbaccess process keeps running and using up 100% CPU.
Top output shows:
The process hierarchy survives pending from process with pid 1,(init) and with no terminal attachment.
----------------------------------------------------------------------------------------------
root 1407447 1 0 09:13 ? 00:00:00 sudo su - informix
root 1407448 1407447 0 09:13 ? 00:00:00 sudo su - informix
root 1407449 1407448 0 09:13 ? 00:00:00 su - informix
informix 1407450 1407449 0 09:13 ? 00:00:00 -bash
informix 1409593 1407450 84 09:16 ? 00:03:28 dbaccess
----------------------------------------------------------------------------------------------
A "kill 1409593" will just end up the whole hierarchy.
Closing the terminal window without dbaccess running will end up the ps hierarchy correctly.
Using strace on the running dbaccess shows it is running an infinite loop doing
----------------------------------------------------
read(0, "", 1) = 0
read(0, "", 1) = 0
read(0, "", 1) = 0
......
----------------------------------------------------
This is happenning on RedHat only. Tested on SuSE and on HP/UX and dbaccess and everything else gets closed correctly on the linux/unix side.
I have checked stty -a and terminal config is exactly the same on RedHat and SuSE.
Any insight here much appreciated,
Best regards,
Josem
------------------------------
Jose Ruiz
------------------------------