Description of problem: System-config-printer crashes when trying to add a samba printer. Version-Release number of selected component (if applicable): system-config-printer-1.3.7-2.fc16.i686 How reproducible: Try to add a samba printer by browsing the network Steps to Reproduce: 1. Start system-config-printer 2. Press the "add" button and enter password several times 3. In "Network Printer" Select Windows printer through Samba 4. Press the "browse" button, maybe twice Actual results: System-config-printer disappears Expected results: The process continues by asking me what kind of a printer it is Additional info: system-config-p[1764]: segfault at 0 ip 0106818f sp bfbf78f0 error 4 in libsmbclient.so.0[ff3000+5c9000]
Run it from command line as 'system-config-printer --debug' and post the output here as an attachment/comment. Thanks
Created attachment 534161 [details] Debug output of system-config-printer Attached you will find the output of system-config-printer --debug > sysconfprint-dbg.txt 2> sysconfprint-dbg.txt . The program itself ends with a segfault.
Unfortunately some of the output has been missed due to the way you used redirection. Here is the correct way: system-config-printer --debug >dbg.txt 2>&1
Created attachment 534168 [details] Debug output of system-config-printer - 2 Attempt two
All looks normal. Could you please run this command?: su -c 'yum --enablerepo=updates-debuginfo install samba-debuginfo' Then run system-config-printer under the debugger: $ gdb --args /usr/bin/python /usr/share/system-config-printer/system-config-printer.py [...] (gdb) run When it crashes, type these commands into gdb: info locals bt quit Then please paste the output as a comment in this bug report. Thanks.
Created attachment 534185 [details] GDB output of system-config-printer Attached the GDB backtrace (and... well, some noise around it).
Thanks. Can you try it again, but instead of 'info locals' etc, type in these commands?: p debug_num_classes p classname_table p classname_table[0] Seems like a libsmbclient problem.
The output is like following: GNU gdb (GDB) Fedora (7.3.50.20110722-9.fc16) --- cut --- (gdb) p debug_num_classes $1 = 19 (gdb) p classname_table $2 = (char **) 0x0 (gdb) p classname_table[0] Cannot access memory at address 0x0
*** Bug 754763 has been marked as a duplicate of this bug. ***
Created attachment 534385 [details] samba-debug-crash.patch This fixes it for me.
I've reported this upstream to get it fixed for 3.6.2. I will create packages for F16 next week. Thanks for debugging this!
*** Bug 755517 has been marked as a duplicate of this bug. ***
Package: system-config-printer-1.3.7-2.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- Editing the samba printer
Package: system-config-printer-1.3.7-2.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- Fermeture au cours de la validation de l'imprimante réseau.
*** Bug 757461 has been marked as a duplicate of this bug. ***
*** Bug 758722 has been marked as a duplicate of this bug. ***
Package: system-config-printer-1.3.7-2.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- 1. Applications -> Other -> Printing 2. [add] button 3. enter root password 4. network printer 5. entered ip address to search, pressed button to initiate action crash.
Package: system-config-printer-1.3.7-2.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- put a Windows 7 ip to find a printer
*** Bug 766230 has been marked as a duplicate of this bug. ***
*** Bug 767039 has been marked as a duplicate of this bug. ***
Any chance we could get an updated package for this?
samba-3.6.1-77.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/samba-3.6.1-77.fc16
Package samba-3.6.1-77.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing samba-3.6.1-77.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-17083/samba-3.6.1-77.fc16 then log in and leave karma (feedback).
*** Bug 767791 has been marked as a duplicate of this bug. ***
samba-3.6.1-77 applied and still segfaults when attempting to expand domains found in browse printer dialogue box. GDB reports: Program received signal SIGSEGV, Segmentation fault. debug_lookup_classname_int (classname=0x34e3c9e2e0 "all") at ../lib/util/debug.c:243 classname_table is still NULL at this point. $ rpm -qa samba\* samba-client-3.6.1-77.fc16.x86_64 samba4-libs-4.0.0-37.alpha16.fc16.x86_64 samba-debuginfo-3.6.1-75.fc16.x86_64 samba-winbind-clients-3.6.1-75.fc16.x86_64 samba-3.6.1-77.fc16.x86_64 samba-swat-3.6.1-77.fc16.x86_64 samba-common-3.6.1-77.fc16.x86_64
Select "Find Network Printer" in devices tree and enter fully qualified host in the Host textbox. (windows domain). Click Find. Crash rating: 4 Package: system-config-printer-1.3.7-2.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne)
Created attachment 548903 [details] File: backtrace
Raoul: what does 'rpm -q libsmbclient' say?
Hi Tim, `rpm -q libsmbclient` gives me: libsmbclient-3.6.1-75.fc16.x86_64
OK. Please try the test update (see comment #23, above).
Sorry, I only just spotted that after I commented: ABRT submitted the report for me. I'll give that a test and let you know if there are any more issues. Thanks for your help.
samba-3.6.1-77.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.