Skip to content

Commit c832d9f

Browse files
committed
rds: fix crash on NULL task
It seems that sometimes the task could be NULL, and in this case we should allow the module to continue executing. Orabug: 38225228 Signed-off-by: Stephen Brennan <[email protected]>
1 parent 78dcbaf commit c832d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drgn_tools/rds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,12 +1234,12 @@ def rds_sock_info(
12341234
pid: Any = int(sock.rs_pid.value_())
12351235
task = find_task(prog, pid)
12361236
comm: Any = "".join(re.findall('"([^"]*)"', str(task.comm)))
1237-
except AttributeError:
1237+
except (AttributeError, FaultError):
12381238
pid = "N/A"
12391239
comm = "N/A"
12401240
try:
12411241
cong: Any = int(sock.rs_congested)
1242-
except AttributeError:
1242+
except (AttributeError, FaultError):
12431243
cong = "N/A"
12441244
send_buf = rds_sk_sndbuf(sock)
12451245
recv_buf = rds_sk_rcvbuf(sock)

0 commit comments

Comments
 (0)