[Samba] Differences in printer functionality between 2.2.2 and 2.2.3a? PANIC Internal error

Tim Allen timallen at ls82.fsnet.co.uk
Tue Feb 12 09:01:10 GMT 2002


Gerry

> Can you set "panic action = /bin/sleep 90000" and attach to the crashed
> smbd using gdb to get me a backtrace?  This would be very helpful.

This is my first venture into gdb so perhaps you could just confirm I've
done the right steps:

1. Added "panic action = /bin/sleep 90000" to smb.conf
2. Started nmbd -D
3. Started smbd
4. Ran smbstatus to get PID 14140.
5. Opened printer in W2000.
6. Ran gdb /usr/local/samba/bin/smbd 14140
7. Typed bt

If the above is correct, here's the trace - it looks sensible anyway:

Cheers

Tim




[root at golux textdocs]# /usr/local/samba/bin/smbstatus

Samba version 2.2.3a
Service      uid      gid      pid     machine
----------------------------------------------
Admin        tda      user     14140   dell     (192.168.1.7) Tue Feb 12
16:30:2
0 2002
IPC$         tda      user     14140   dell     (192.168.1.7) Tue Feb 12
16:32:0
4 2002

No locked files

[root at golux textdocs]# gdb /usr/local/samba/bin/smbd 14140
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 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-redhat-linux"...
/root/samba-2.2.3a/docs/textdocs/14140: No such file or directory.
Attaching to program: /usr/local/samba/bin/smbd, process 14140
Reading symbols from /lib/libdl.so.2...done.

.....

(gdb) bt
#0  0x401186c9 in __wait4 () from /lib/libc.so.6
#1  0x40189bc0 in __DTOR_END__ () from /lib/libc.so.6
#2  0x400b28ef in __libc_system (line=0x81d8870 "/bin/sleep 90000")
    at ../sysdeps/posix/system.c:136
#3  0x08112f11 in smb_panic () at eval.c:41
#4  0x0810378c in fault_report () at eval.c:41
#5  0x081037da in sig_fault () at eval.c:41
#6  <signal handler called>
#7  0x0808f76e in cli_errstr () at eval.c:41
#8  0x080f2576 in spoolss_connect_to_client () at eval.c:41
#9  0x080b99e1 in srv_spoolss_replyopenprinter () at eval.c:41
#10 0x080b9b5c in _spoolss_rffpcnex () at eval.c:41
#11 0x080b4ffa in api_spoolss_rffpcnex () at eval.c:41
#12 0x080b461f in api_rpcTNP () at eval.c:41
#13 0x080b765c in api_spoolss_rpc () at eval.c:41
#14 0x080b4457 in api_pipe_request () at eval.c:41
#15 0x080a47c0 in process_request_pdu () at eval.c:41
#16 0x080a4985 in process_complete_pdu () at eval.c:41
#17 0x080a4bb2 in process_incoming_data () at eval.c:41
#18 0x080a4d0c in write_to_pipe () at eval.c:41
#19 0x08056023 in api_fd_reply () at eval.c:41
#20 0x080561ef in named_pipe () at eval.c:41
#21 0x0805693b in reply_trans () at eval.c:41
#22 0x08081509 in switch_message () at eval.c:41
---Type <return> to continue, or q <return> to quit---
#23 0x08081595 in construct_reply () at eval.c:41
#24 0x080817f5 in process_smb () at eval.c:41
#25 0x08082092 in smbd_process () at eval.c:41
#26 0x0804c629 in main () at eval.c:41
#27 0x40080e5e in __libc_start_main (main=0x804bea8 <main>, argc=1,
    ubp_av=0xbffffaec, init=0x804a40c <_init>, fini=0x812b0c0 <_fini>,
    rtld_fini=0x4000d3c4 <_dl_fini>, stack_end=0xbffffadc)
    at ../sysdeps/generic/libc-start.c:129
(gdb)







More information about the samba mailing list