Unfortunately, I still get a stuck smbd process that gobbles the CPU.
I updated samba (using all the experimental packages), reconfigured my
printers with KDE printer GUI for cupsys and in Windows, restarted
samba, then submitted a print job from a machine on the samba network.
I supply another backtrace below.


>> On Tue Jan 25 13:49:13 2005 -0500, Matt Swift <[EMAIL PROTECTED]> wrote:

    M> Thanks.  Will try to try this today.

    M> FYI meantime, I found that I could work around the problem by
    M> attaching my (non-PostScript) printer to a Windows machine and
    M> changing the cupsys backend to the printer shared from that machine.
    M> I submit print jobs to the Linux machine running Samba; if the job is
    M> PostScript, it is converted with ghostscript; then it is sent to the
    M> Windows printer.  For whatever reasons, this setup does not make 
    M> smbd go bonkers.

>> On Mon Jan 24 06:02:07 2005 -0500, Steve Langasek <[EMAIL PROTECTED]> wrote:

    S> I've uploaded new binary packages to
    S> http://people.debian.org/~vorlon/274969/ using the patch provided by
    S> Christian Perrier in bug #286818, which we suspect to be the same 
problem.
    S> Can you try installing whichever of those packages you need (at least 
samba
    S> and samba-common) and let us know if it fixes the problem for you?




    [beth] sambanew# gdb /usr/sbin/smbd 15520
    GNU gdb 6.3-debian
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain 
conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

    Attaching to program: /usr/sbin/smbd, process 15520
    `system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
    Reading symbols from /usr/lib/libldap.so.2...done.
    Loaded symbols for /usr/lib/libldap.so.2
    Reading symbols from /usr/lib/liblber.so.2...done.
    Loaded symbols for /usr/lib/liblber.so.2
    Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
    Loaded symbols for /usr/lib/libgssapi_krb5.so.2
    Reading symbols from /usr/lib/libkrb5.so.3...done.
    Loaded symbols for /usr/lib/libkrb5.so.3
    Reading symbols from /usr/lib/libk5crypto.so.3...done.
    Loaded symbols for /usr/lib/libk5crypto.so.3
    Reading symbols from /lib/libcom_err.so.2...done.
    Loaded symbols for /lib/libcom_err.so.2
    Reading symbols from /lib/tls/libresolv.so.2...done.
    Loaded symbols for /lib/tls/libresolv.so.2
    Reading symbols from /usr/lib/libcups.so.2...done.
    Loaded symbols for /usr/lib/libcups.so.2
    Reading symbols from /lib/tls/libnsl.so.1...done.
    Loaded symbols for /lib/tls/libnsl.so.1
    Reading symbols from /lib/tls/libcrypt.so.1...done.
    Loaded symbols for /lib/tls/libcrypt.so.1
    Reading symbols from /lib/libpam.so.0...done.
    Loaded symbols for /lib/libpam.so.0
    Reading symbols from /lib/libacl.so.1...done.
    Loaded symbols for /lib/libacl.so.1
    Reading symbols from /lib/tls/libdl.so.2...done.
    Loaded symbols for /lib/tls/libdl.so.2
    Reading symbols from /lib/libpopt.so.0...done.
    Loaded symbols for /lib/libpopt.so.0
    Reading symbols from /lib/tls/libc.so.6...done.
    Loaded symbols for /lib/tls/libc.so.6
    Reading symbols from /usr/lib/libsasl2.so.2...done.
    Loaded symbols for /usr/lib/libsasl2.so.2
    Reading symbols from /usr/lib/libgnutls.so.11...done.
    Loaded symbols for /usr/lib/libgnutls.so.11
    Reading symbols from /lib/libattr.so.1...done.
    Loaded symbols for /lib/libattr.so.1
    Reading symbols from /lib/ld-linux.so.2...done.
    Loaded symbols for /lib/ld-linux.so.2
    Reading symbols from /usr/lib/libtasn1.so.2...done.
    Loaded symbols for /usr/lib/libtasn1.so.2
    Reading symbols from /usr/lib/libgcrypt.so.11...done.
    Loaded symbols for /usr/lib/libgcrypt.so.11
    Reading symbols from /usr/lib/libgpg-error.so.0...done.
    Loaded symbols for /usr/lib/libgpg-error.so.0
    Reading symbols from /usr/lib/libz.so.1...done.
    Loaded symbols for /usr/lib/libz.so.1
    Reading symbols from /usr/lib/gconv/IBM850.so...done.
    Loaded symbols for /usr/lib/gconv/IBM850.so
    Reading symbols from /usr/lib/gconv/UTF-16.so...done.
    Loaded symbols for /usr/lib/gconv/UTF-16.so
    Reading symbols from /lib/tls/libnss_files.so.2...done.
    Loaded symbols for /lib/tls/libnss_files.so.2
    0x40218cef in memcpy () from /lib/tls/libc.so.6
    (gdb) backtrace
    #0  0x40218cef in memcpy () from /lib/tls/libc.so.6
    #1  0x081f3002 in tdb_read (tdb=0x8385a90, off=22680, buf=0xbfffed10, 
len=24, cv=0) at tdb/tdb.c:427
    #2  0x081f324e in rec_read (tdb=0x8385a90, offset=22680, rec=0xbfffed10) at 
tdb/tdb.c:478
    #3  0x081f4960 in tdb_next_lock (tdb=0x8385a90, tlock=0xbfffed00, 
rec=0xbfffed10) at tdb/tdb.c:1267
    #4  0x081f4ad9 in tdb_traverse (tdb=0x8385a90, fn=0x81fc1d0 
<traverse_fn_delete>, private=0xbfffefa0) at tdb/tdb.c:1316
    #5  0x081fd057 in print_queue_update_internal (sharename=0xbffff620 "Nib", 
current_printif=0x82e0800, lpq_command=0xbffff220 "") at 
printing/printing.c:1157
    #6  0x081fd71f in print_queue_receive (msg_type=2103, src=15522, 
buf=0x83833b4, msglen=9) at printing/printing.c:1315
    #7  0x081e9411 in message_dispatch () at lib/messages.c:447
    #8  0x081fd84a in start_background_queue () at printing/printing.c:1370
    #9  0x0825804c in main (argc=2, argv=0xbffff9a4) at smbd/server.c:859
    (gdb) quit
    The program is running.  Quit anyway (and detach it)? (y or n) y
    Detaching from program: /usr/sbin/smbd, process 15520


Gtop says even more CPU, but 39% from ps still shows a problem:

    [beth] sambanew# psgrep 15520
    root     15520 38.7  0.4  9200 2716 ?        R    14:29   1:30 
/usr/sbin/smbd -D
    [beth] sambanew# psgrep 15520
    root     15520 39.5  0.4  9200 2716 ?        R    14:29   1:33 
/usr/sbin/smbd -D


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to