Re: thread leakage

From: Daniel Black <daniel.subs_at_internode.on.net>
Date: Tue, 15 Mar 2011 00:16:15 +1100

On Monday 14 March 2011 23:35:45 Daniel Black wrote:

> opendkim -V
> opendkim: OpenDKIM Filter v2.2.2
> Compiled with OpenSSL 0.9.8o 01 Jun 2010
> SMFI_VERSION 0x1000001
> libmilter version 1.0.1
> Supported signing algorithms:
> rsa-sha1
> rsa-sha256
> Supported canonicalization algorithms:
> relaxed
> simple
> Active code options:
> USE_DB
> USE_LUA
> USE_UNBOUND
> _FFR_REPORT_INTERVALS
> _FFR_STATS
> _FFR_STATS_I
> _FFR_STATSEXT
> libopendkim 2.2.2:
gdb -p `pidof opendkim`
(cut copyright notice)
Attaching to process 21328
Reading symbols from /usr/sbin/opendkim...done.
Reading symbols from /usr/lib/libopendkim.so.3...done.
Loaded symbols for /usr/lib/libopendkim.so.3
Reading symbols from /usr/lib/libmilter.so.1.0.1...Reading symbols from
/usr/lib/debug/usr/lib/libmilter.so.1.0.1...done.
done.
Loaded symbols for /usr/lib/libmilter.so.1.0.1
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libdb-5.0.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libdb-5.0.so
Reading symbols from /usr/lib/liblua5.1.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/liblua5.1.so.0
Reading symbols from /lib/i686/cmov/libm.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libm.so.6
Reading symbols from /usr/lib/libunbound.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libunbound.so.2
Reading symbols from /lib/i686/cmov/libpthread.so.0...(no debugging symbols
found)...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb2efbb70 (LWP 23694)]
[New Thread 0xb3efdb70 (LWP 23440)]
[New Thread 0xb36fcb70 (LWP 23134)]
[New Thread 0xb58fdb70 (LWP 22567)]
[New Thread 0xb46feb70 (LWP 21847)]
[New Thread 0xb4effb70 (LWP 21454)]
[New Thread 0xb68ffb70 (LWP 21331)]
[New Thread 0xb7100b70 (LWP 21330)]
[New Thread 0xb7901b70 (LWP 21329)]
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /lib/i686/cmov/libc.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/i686/cmov/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libresolv.so.2
Reading symbols from /lib/i686/cmov/libdl.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libldns.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libldns.so.1
Reading symbols from /usr/lib/libev.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libev.so.3
Reading symbols from /lib/i686/cmov/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/librt.so.1
Reading symbols from /lib/i686/cmov/libnss_compat.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/i686/cmov/libnsl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libnsl.so.1
Reading symbols from /lib/i686/cmov/libnss_nis.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/i686/cmov/libnss_files.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/i686/cmov/libnss_files.so.2
0xb7f5d424 in __kernel_vsyscall ()
(gdb) bt full
#0 0xb7f5d424 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7abb696 in poll () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#2 0xb7f324cd in mi_listener (conn=0x9f7e9e8 "inet:8891", dbg=0,
smfi=0x9f81708, timeout=7210, backlog=128) at listener.c:766
        connfd = 0
        sockopt = 1
        r = <value optimized out>
        mistop = 0
        ret = <value optimized out>
        mcnt = 0
        tcnt = 0
        acnt = 0
        scnt = 0
        save_errno = <value optimized out>
        cliaddr = {sa = {sa_family = 2, sa_data =
"\177\000\000\001\000\000\000\000\000\000\000"}, sunix = {sun_family = 2,
            sun_path = "\177\000\000\001", '\000' <repeats 101 times>}, sin
= {sin_family = 2, sin_port = 53674, sin_addr = {
              s_addr = 16777343}, sin_zero = "\000\000\000\000\000\000\000"},
sin6 = {sin6_family = 2, sin6_port = 53674,
            sin6_flowinfo = 16777343, sin6_addr = {__in6_u = {__u6_addr8 =
'\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0,
                  0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}
        clilen = 16
        ctx = <value optimized out>
        rds = {fd = 3, events = 3, revents = 0}
#3 0xb7f32d57 in smfi_main () at main.c:242
        r = <value optimized out>
#4 0x0805d617 in main (argc=7, argv=0xbfe79e93) at opendkim.c:14485
        autorestart = false
        gotp = <value optimized out>
        dofork = true
---Type <return> to continue, or q <return> to quit---
        stricttest = false
        configonly = false
        querytest = false
        c = <value optimized out>
        status = <value optimized out>
        n = 65463
        verbose = -1075346476
        maxrestarts = 0
        maxrestartrate_n = 0
        filemask = -1
        mdebug = 0
        mvmajor = <value optimized out>
        mvminor = <value optimized out>
        mvrelease = <value optimized out>
        sigset = {__val = {16899, 0 <repeats 31 times>}}
        fixedtime = -1
        maxrestartrate_t = 0
        rt = 3079674736
        tmpl = <value optimized out>
        f = <value optimized out>
        become = 0xbfe79e87 "opendkim"
        p = 0xbfe66a06 ""
        pidfile = 0xbfe79e93 "/var/run/opendkim/opendkim.pid"
        ridbfile = 0x0
        testfile = 0x0
        testpubkeys = 0x0
        cfg = <value optimized out>
        argstr = "args: -x /etc/opendkim.conf -u opendkim -P
/var/run/opendkim/opendkim.pid", '\000' <repeats 65462 times>
        err =
"\004\000\000\000}\225)\b\000\000\000B\236\020\000\000\000\034\202nB\236B\236\020\000\000\000\202T0;\---
Type <return> to continue, or q <return> to quit---
000_at_\236p5\000\000\000\000}\tGNU\000\000\000\000\000\237\201\000\000\000\000D~̭
q(", '\000' <repeats 16 times>,
"\001w\001\000\000\000\000\237~\005\000\000\000`~\225)\b\000\000\000\220B\236\024\000\000\000\034\202nB\236\220B\236\024\000\000\000\237\200
\024F \020ii\r~vif"...
(gdb)
(gdb)
(gdb)

9 LWP and only 6 backtraces. hmm may need a different approach. Suggestions?
Received on Mon Mar 14 2011 - 13:15:15 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:33:09 PST