kernel-level crash when debugging from inside Docker
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I get this crash:
Nov 7 11:12:10 cerise kernel: [455791.145575] show_signal_msg: 3594 callbacks suppressed
Nov 7 11:12:10 cerise kernel: [455791.145581] asterisk[6942]: segfault at 14 ip 000000000058f426 sp 00007fad2e0ecb40 error 4 in asterisk[
Nov 7 11:12:10 cerise kernel: [455791.145925] ------------[ cut here ]------------
Nov 7 11:12:10 cerise kernel: [455791.145948] kernel BUG at /build/
Nov 7 11:12:10 cerise kernel: [455791.145982] invalid opcode: 0000 [#1] SMP
Nov 7 11:12:10 cerise kernel: [455791.146007] Modules linked in: cdc_acm nfnetlink_queue nfnetlink_log nfnetlink btrfs raid6_pq xor ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c hidp hid veth xt_nat xt_tcpudp xt_addrtype xt_conntrack ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack bridge stp llc aufs iptable_filter ip_tables x_tables ctr ccm pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF) vboxdrv(OF) bnep rfcomm binfmt_misc nfsd auth_rpcgss nfs_acl nfs lockd sunrpc fscache btusb bluetooth arc4 iwldvm uvcvideo videobuf2_vmalloc mac80211 videobuf2_memops videobuf2_core videodev snd_hda_codec_hdmi snd_hda_
Nov 7 11:12:10 cerise kernel: [455791.146556] CPU: 3 PID: 6942 Comm: asterisk Tainted: GF W O 3.13.0-32-generic #57-Ubuntu
Nov 7 11:12:10 cerise kernel: [455791.146590] Hardware name: LENOVO 2352CTO/2352CTO, BIOS G7ET31WW (1.13 ) 07/02/2012
Nov 7 11:12:10 cerise kernel: [455791.146619] task: ffff880003422fe0 ti: ffff880079574000 task.ti: ffff880079574000
Nov 7 11:12:10 cerise kernel: [455791.146648] RIP: 0010:[<
Nov 7 11:12:10 cerise kernel: [455791.146686] RSP: 0000:ffff880079
Nov 7 11:12:10 cerise kernel: [455791.146706] RAX: 0000000000000001 RBX: ffff88021e53b240 RCX: 0000000000000001
Nov 7 11:12:10 cerise kernel: [455791.146733] RDX: 0000000000000017 RSI: ffff88021e792200 RDI: ffff88021e53b240
Nov 7 11:12:10 cerise kernel: [455791.146761] RBP: ffff880079575a20 R08: 00000000000171c0 R09: ffff880331803c00
Nov 7 11:12:10 cerise kernel: [455791.146787] R10: ffffffff81308497 R11: ffff880079575aee R12: ffff88004e161540
Nov 7 11:12:10 cerise kernel: [455791.146814] R13: ffff880003422fe0 R14: ffff880079575c24 R15: 00000000ffffff9c
Nov 7 11:12:10 cerise kernel: [455791.146842] FS: 00007fad2e0ed70
Nov 7 11:12:10 cerise kernel: [455791.146872] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 7 11:12:10 cerise kernel: [455791.146894] CR2: 0000000000000014 CR3: 000000009db46000 CR4: 00000000001407e0
Nov 7 11:12:10 cerise kernel: [455791.146921] Stack:
Nov 7 11:12:10 cerise kernel: [455791.146929] ffff8800597f0030 ffff88021e792f00 ffff88021e53b240 ffff880079575a48
Nov 7 11:12:10 cerise kernel: [455791.146960] ffffffff813087be ffff8800597f0030 ffff88000d5dd200 ffff880079575c48
Nov 7 11:12:10 cerise kernel: [455791.146990] ffff880079575a70 ffffffff81311c4a 0000000000000000 ffff88000d5dd200
Nov 7 11:12:10 cerise kernel: [455791.147021] Call Trace:
Nov 7 11:12:10 cerise kernel: [455791.147035] [<ffffffff81308
Nov 7 11:12:10 cerise kernel: [455791.147062] [<ffffffff81311
Nov 7 11:12:10 cerise kernel: [455791.147090] [<ffffffff812d4
Nov 7 11:12:10 cerise kernel: [455791.147116] [<ffffffff811be
Nov 7 11:12:10 cerise kernel: [455791.147140] [<ffffffff8109d
Nov 7 11:12:10 cerise kernel: [455791.147167] [<ffffffff811cc
Nov 7 11:12:10 cerise kernel: [455791.147189] [<ffffffff8136a
Nov 7 11:12:10 cerise kernel: [455791.147215] [<ffffffff8171f
Nov 7 11:12:10 cerise kernel: [455791.147238] [<ffffffff811cd
Nov 7 11:12:10 cerise kernel: [455791.147259] [<ffffffff8136c
Nov 7 11:12:10 cerise kernel: [455791.147283] [<ffffffff81219
Nov 7 11:12:10 cerise kernel: [455791.147305] [<ffffffff811bb
Nov 7 11:12:10 cerise kernel: [455791.147327] [<ffffffff811bb
Nov 7 11:12:10 cerise kernel: [455791.147348] [<ffffffff81219
Nov 7 11:12:10 cerise kernel: [455791.147371] [<ffffffff81078
Nov 7 11:12:10 cerise kernel: [455791.147395] [<ffffffff8107a
Nov 7 11:12:10 cerise kernel: [455791.147422] [<ffffffff81013
Nov 7 11:12:10 cerise kernel: [455791.147445] [<ffffffff81111
Nov 7 11:12:10 cerise kernel: [455791.147469] [<ffffffff8109d
Nov 7 11:12:10 cerise kernel: [455791.147493] [<ffffffff8109d
Nov 7 11:12:10 cerise kernel: [455791.147517] [<ffffffff81013
Nov 7 11:12:10 cerise kernel: [455791.147541] [<ffffffff81724
Nov 7 11:12:10 cerise kernel: [455791.147562] Code: f8 c3 81 0f 84 5e fe ff ff 48 89 d1 48 8b 91 c8 00 00 00 48 39 d6 75 e4 3b 81 d4 00 00 00 0f 84 65 fe ff ff 48 89 f2 eb d3 0f 0b <0f> 0b 49 8b 4c 24 30 48 89 d6 48 c1 ee 20 48 89 c8 f7 d1 48 c1
Nov 7 11:12:10 cerise kernel: [455791.147699] RIP [<ffffffff81090
Nov 7 11:12:10 cerise kernel: [455791.147742] RSP <ffff880079575a08>
Nov 7 11:12:10 cerise kernel: [455791.154718] ---[ end trace f135ba1d997aba87 ]---
while trying to debug Asterisk from within a Docker container.
The image I'm using is built with this revision:
https:/
enabling heavier debug.
I then run:
sudo docker run --cap-add=
with some shared directories and some dialplans.
Before getting that stacktrace, I had run:
aa-complain /etc/apparmor.
because I was trying to gdb and from inside Docker I couldn't because of some "ptrace" permissions.
After I aa-complain'd it.. I got that stacktrace.
My host OS is Ubuntu 14.04, running Docker 1.3.1
tags: | added: aa-kernel |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1390546
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.