Skip to content

Commit 9164255

Browse files
committed
linux: show mountinfo if unable to write core file
Find out what kind of weird situation prevents this
1 parent 577a067 commit 9164255

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ci_core_dumper/linux.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,14 @@ def dump2(pid, gdb, extra_cmds):
340340
try:
341341
OF = open(corefile, 'wb')
342342
break
343-
except:
344-
print('Unable to write core file to %s'%corefile)
343+
except Exception as e:
344+
print('Unable to write core file to %s : %r'%(corefile, e))
345345
continue
346346
else:
347347
print('Unable to store core file in target FS')
348+
with open('/proc/{}/mountinfo'.format(pid), 'r') as F:
349+
for L in F.readlines():
350+
print(' ', L.rstrip())
348351
sys.exit(1)
349352

350353
print('Wrote core file to %s'%corefile)

0 commit comments

Comments
 (0)