File descriptor 4: AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:... is already closed
at 0x........: close (in /...libc...)
by 0x........: client (fdleak_ipv4.c:70)
- by 0x........: main (fdleak_ipv4.c:90)
+ by 0x........: main
Previously closed
at 0x........: close (in /...libc...)
by 0x........: client (fdleak_ipv4.c:69)
- by 0x........: main (fdleak_ipv4.c:90)
+ by 0x........: main
Originally opened
at 0x........: dup (in /...libc...)
by 0x........: client (fdleak_ipv4.c:68)
- by 0x........: main (fdleak_ipv4.c:90)
+ by 0x........: main
FILE DESCRIPTORS: 5 open (3 std) at exit.
Open AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:...
File descriptor 3: file_dclose.tmp is already closed
at 0x........: close (in /...libc...)
by 0x........: closefile (file_dclose.c:17)
- by 0x........: main (file_dclose.c:35)
+ by 0x........: main
Previously closed
at 0x........: close (in /...libc...)
- by 0x........: main (file_dclose.c:31)
+ by 0x........: main
Originally opened
at 0x........: creat (in /...libc...)
by 0x........: openfile (file_dclose.c:11)
- by 0x........: main (file_dclose.c:28)
+ by 0x........: main
# painfully minor variations between them.
perl -p -0 -e 's/(Open[^\n]*\n)( (at|by)[^\n]*\n)+/$1 ...\n/gs' |
+sed "s/by 0x........: (below main)/by 0x........: main/" |
+sed "s/by 0x........: main (.*)/by 0x........: main/" |
+
# With glibc debuginfo installed we might see syscall-template.S, close.c or creat64.c
perl -p -e "s/\(syscall-template.S:[0-9]*\)/(in \/...libc...)/" |
perl -p -e "s/\(close.c:[0-9]*\)/(in \/...libc...)/" |
and close the socket again 3
File descriptor 3: AF_UNIX socket 3: /tmp/vgtest-foofrob is already closed
at 0x........: close (in /...libc...)
- by 0x........: main (socket_close.c:40)
+ by 0x........: main
Previously closed
at 0x........: close (in /...libc...)
- by 0x........: main (socket_close.c:36)
+ by 0x........: main
Originally opened
at 0x........: socket (in /...libc...)
by 0x........: open_socket (socket_close.c:17)
- by 0x........: main (socket_close.c:31)
+ by 0x........: main