Bug 1184266 - missing debug info
Summary: missing debug info
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: docker-io
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-20 22:09 UTC by Jan Kratochvil
Modified: 2015-02-03 20:22 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-03 20:22:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
docker-io.spec patch (522 bytes, patch)
2015-01-20 22:09 UTC, Jan Kratochvil
no flags Details | Diff

Description Jan Kratochvil 2015-01-20 22:09:36 UTC
Created attachment 982069 [details]
docker-io.spec patch

Description of problem:
Current docker-io.rpm is not debuggable at all.
With the patch below the debugging gets significantly improved.
Further fixes will be needed.

Version-Release number of selected component (if applicable):
docker-io-1.4.1-7.fc22

How reproducible:
Always.

Steps to Reproduce:
gdb -ex 'catch fork' -ex r -ex 'thread apply all bt' --args docker -d 

Actual results:
------------------------------------------------------------------------------
Catchpoint 1 (forked process 8419), 0x00000000005eb5c5 in syscall.RawSyscall6 ()

Thread 4 (Thread 0x7fffeffff700 (LWP 8418)):
#0  0x0000000000448b23 in runtime.futex ()
#1  0x0000000000438f67 in runtime.futexsleep ()
#2  0x000000c208020b58 in ?? ()
#3  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ffff4f32700 (LWP 8417)):
#0  0x0000000000448b23 in runtime.futex ()
#1  0x0000000000438f67 in runtime.futexsleep ()
#2  0x0000000001100900 in ?? ()
#3  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ffff5733700 (LWP 8416)):
#0  0x000000000044885d in runtime.usleep ()
#1  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fbb800 (LWP 8412)):
#0  0x00000000005eb5c5 in syscall.RawSyscall6 ()
#1  0x00000000005dd7ee in syscall.forkAndExecInChild ()
#2  0x0000000000000038 in ?? ()
#3  0x0000000000000011 in ?? ()
#4  0x0000000000000000 in ?? ()
------------------------------------------------------------------------------

Expected results:
------------------------------------------------------------------------------
Catchpoint 1 (forked process 8389), syscall.RawSyscall6 () at /usr/lib/golang/src/syscall/asm_linux_amd64.s:101
101             CMPQ    AX, $0xfffffffffffff001

Thread 5 (Thread 0x7fffef7fe700 (LWP 8388)):
#0  runtime.futex () at /usr/lib/golang/src/runtime/sys_linux_amd64.s:278
#1  0x0000000000438f67 in runtime.futexsleep () at /usr/lib/golang/src/runtime/os_linux.c:49
#2  0x0000000000415ede in runtime.notesleep (n=0xc208020ed8) at /usr/lib/golang/src/runtime/lock_futex.go:145
#3  0x000000000043c439 in stopm () at /usr/lib/golang/src/runtime/proc.c:1178
#4  0x000000000043cb38 in startlockedm () at /usr/lib/golang/src/runtime/proc.c:1329
#5  0x000000000043d67a in schedule () at /usr/lib/golang/src/runtime/proc.c:1582
#6  0x000000000043db3e in goexit0 () at /usr/lib/golang/src/runtime/proc.c:1717
#7  0x0000000000445d2a in runtime.mcall () at /usr/lib/golang/src/runtime/asm_amd64.s:186
#8  0x000000c208012000 in ?? ()
#9  0x000000000043bbd4 in runtime.mstart () at /usr/lib/golang/src/runtime/proc.c:836
#10 0x0000000000404533 in crosscall_amd64 () at /builddir/build/BUILD/go/src/runtime/cgo/gcc_amd64.S:35
#11 0x0000000000000010 in ?? ()
#12 0x00007fffef7fe9c0 in ?? ()
#13 0x00007fffffffdc3f in ?? ()
#14 0x0000000000000001 in ?? ()
#15 0x000000c2080a27e0 in ?? ()
#16 0x000000000043bb30 in runtime.starttheworld () at /usr/lib/golang/src/runtime/proc.c:761
#17 0x00007fffef7fe700 in ?? ()
#18 0xe1840af9c5b45b6d in ?? ()
#19 0x0000000000000001 in ?? ()
#20 0x00007fffffffdc3f in ?? ()
#21 0x00007fffef7fe9c0 in ?? ()
#22 0x0000000000000010 in ?? ()
#23 0x1e7bd40679745b6d in ?? ()
#24 0x1e7be5e649ee5b6d in ?? ()
#25 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fffeffff700 (LWP 8387)):
#0  runtime.futex () at /usr/lib/golang/src/runtime/sys_linux_amd64.s:278
#1  0x0000000000438f67 in runtime.futexsleep () at /usr/lib/golang/src/runtime/os_linux.c:49
#2  0x0000000000415ede in runtime.notesleep (n=0xc208020b58) at /usr/lib/golang/src/runtime/lock_futex.go:145
#3  0x000000000043c439 in stopm () at /usr/lib/golang/src/runtime/proc.c:1178
#4  0x000000000043cb38 in startlockedm () at /usr/lib/golang/src/runtime/proc.c:1329
#5  0x000000000043d67a in schedule () at /usr/lib/golang/src/runtime/proc.c:1582
#6  0x000000000043d8d3 in runtime.park_m () at /usr/lib/golang/src/runtime/proc.c:1654
#7  0x0000000000445d2a in runtime.mcall () at /usr/lib/golang/src/runtime/asm_amd64.s:186
#8  0x000000c208012000 in ?? ()
#9  0x000000000043bbd4 in runtime.mstart () at /usr/lib/golang/src/runtime/proc.c:836
#10 0x0000000000404533 in crosscall_amd64 () at /builddir/build/BUILD/go/src/runtime/cgo/gcc_amd64.S:35
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ffff4f32700 (LWP 8386)):
#0  runtime.futex () at /usr/lib/golang/src/runtime/sys_linux_amd64.s:278
#1  0x0000000000438f67 in runtime.futexsleep () at /usr/lib/golang/src/runtime/os_linux.c:49
#2  0x0000000000415f8d in runtime.notetsleep_internal (n=0x1102900 <runtime.sig>, ns=-1, ~r2=false) at /usr/lib/golang/src/runtime/lock_futex.go:157
#3  0x00000000004161da in runtime.notetsleepg (n=0x1102900 <runtime.sig>, ns=-1, ~r2=true) at /usr/lib/golang/src/runtime/lock_futex.go:202
#4  0x0000000000422f25 in runtime.signal_recv (~r0=0) at /usr/lib/golang/src/runtime/sigqueue.go:109
#5  0x00000000007a363f in os/signal.loop () at /usr/lib/golang/src/os/signal/signal_unix.go:21
#6  0x0000000000448231 in runtime.goexit () at /usr/lib/golang/src/runtime/asm_amd64.s:2232
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ffff5733700 (LWP 8385)):
#0  runtime.usleep () at /usr/lib/golang/src/runtime/sys_linux_amd64.s:82
#1  0x000000000044056b in sysmon () at /usr/lib/golang/src/runtime/proc.c:2892
#2  0x000000000043bcc1 in mstart () at /usr/lib/golang/src/runtime/proc.c:859
#3  0x000000000043bbd4 in runtime.mstart () at /usr/lib/golang/src/runtime/proc.c:836
#4  0x0000000000404533 in crosscall_amd64 () at /builddir/build/BUILD/go/src/runtime/cgo/gcc_amd64.S:35
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fbb800 (LWP 8381)):
#0  syscall.RawSyscall6 () at /usr/lib/golang/src/syscall/asm_linux_amd64.s:101
#1  0x00000000005dd7ee in syscall.forkAndExecInChild (argv0=0xc20810e500 "/usr/sbin/iptables", argv=..., envv=..., chroot=0x0, dir=0x0, attr=0xc2080e7b40, sys=0x10f81c0 <syscall.zeroSysProcAttr>, pipe=7, pid=216172782113783818, err=...) at /usr/lib/golang/src/syscall/exec_linux.go:85
#2  0x00000000005df474 in syscall.forkExec (argv0=..., argv=..., attr=0xc2080e7b40, pid=10011360, err=...) at /usr/lib/golang/src/syscall/exec_unix.go:191
#3  0x00000000005df842 in syscall.StartProcess (argv0=..., argv=..., attr=0xc2080e7b40, pid=2, handle=4, err=...) at /usr/lib/golang/src/syscall/exec_unix.go:238
#4  0x0000000000542ddb in os.startProcess (name=..., argv=..., attr=0xc20802fc70, p=0xace2c0, err=...) at /usr/lib/golang/src/os/exec_posix.go:45
#5  0x00000000005415f2 in os.StartProcess (name=..., argv=..., attr=0xc20802fc70, ~r3=0x2, ~r4=...) at /usr/lib/golang/src/os/doc.go:24
#6  0x000000000066db0e in os/exec.(*Cmd).Start (~r0=...) at /usr/lib/golang/src/os/exec/exec.go:316
#7  0x000000000066d18a in os/exec.(*Cmd).Run (c=0xc208081680, ~r0=...) at /usr/lib/golang/src/os/exec/exec.go:243
#8  0x0000000000892da2 in github.com/docker/docker/pkg/iptables.init·1 () at /home/jkratoch/redhat/fedora/docker-io/master/docker-1.4.1/_build/src/github.com/docker/docker/pkg/iptables/iptables.go:43
#9  0x0000000000895b35 in github.com/docker/docker/pkg/iptables.init () at /home/jkratoch/redhat/fedora/docker-io/master/docker-1.4.1/_build/src/github.com/docker/docker/pkg/iptables/iptables.go:201
#10 0x00000000006b81d9 in github.com/docker/docker/daemon/networkdriver/bridge.init () at /home/jkratoch/redhat/fedora/docker-io/master/docker-1.4.1/_build/src/github.com/docker/docker/daemon/networkdriver/bridge/driver.go:536
#11 0x00000000004a2bd2 in github.com/docker/docker/daemon.init () at /home/jkratoch/redhat/fedora/docker-io/master/docker-1.4.1/_build/src/github.com/docker/docker/daemon/wait.go:20
#12 0x000000000040935e in main.init () at /home/jkratoch/redhat/fedora/docker-io/master/docker-1.4.1/docker/log.go:12
#13 0x000000000041ec94 in runtime.main () at /usr/lib/golang/src/runtime/proc.go:58
#14 0x0000000000448231 in runtime.goexit () at /usr/lib/golang/src/runtime/asm_amd64.s:2232
#15 0x0000000000000000 in ?? ()
------------------------------------------------------------------------------

Additional info:
There was Bug 1017186 Comment 3 but I do not see it would not be working:
# This also adds -w, to disable building with debugging in the executable which isn't working with debuginfo anyway.

Comment 1 Jan Kratochvil 2015-01-21 16:57:21 UTC
docker-io.x86_64.rpm size 4.7MB->5.9MB

Comment 2 Lokesh Mandvekar 2015-02-03 20:22:50 UTC
Added this to rawhide: http://koji.fedoraproject.org/koji/taskinfo?taskID=8812908


Note You need to log in before you can comment on or make changes to this bug.