GDB core dump analysis inside a docker container

Viewed 593

I'm trying to do a post mortem analysis using gdb on a C++ application inside a docker container. I have increased ulimit, added SYS_PTRACE capability, and used seccomp=unconfined. But when I use gdb and the main application with debug symbols I see this error:

warning: Unexpected size of section `.reg-xstate/10734' in core file.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program terminated with signal SIGSEGV, Segmentation fault.

warning: Unexpected size of section `.reg-xstate/10734' in core file.
#0  0x00007f05ce755350 in ?? ()
[Current thread is 1 (Thread 0x7f04d3ffe700 (LWP 10734))]
(gdb) 
(gdb) bt
#0  0x00007f05ce755350 in ?? ()
#1  0x00007f05cea2382f in ?? ()
#2  0x00007f0000000008 in ?? ()
#3  0x00007f05ced76c40 in ?? ()
#4  0x00007f04d3ffdd50 in ?? ()
#5  0x00007f05ce897d69 in ?? ()
#6  0x00007f05ced76c40 in ?? ()
#7  0x00007f04d3ffdd70 in ?? ()
#8  0x00007f04d3ffdd90 in ?? ()
#9  0x00007f05ce89796c in ?? ()
#10 0x00007f04d3ffdd90 in ?? ()
#11 0x0000000000000000 in ?? ()

Why is this happening when the ulimit is unlimited?

root@57a1bc01c676:/workspace/builddir# ulimit 
unlimited
0 Answers
Related