SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only

Bug #329974 reported by wulf solter
98
This bug affects 11 people
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Jaunty by Andy
system-config-printer (Ubuntu)
Invalid
Medium
Unassigned
Nominated for Jaunty by Andy

Bug Description

Binary package hint: system-config-printer

Description: Ubuntu jaunty (development branch)
Release: 9.04

  Installed: 1.1.2+git20090125-0ubuntu4
  Candidate: 1.1.2+git20090125-0ubuntu4
  Version table:
 *** 1.1.2+git20090125-0ubuntu4 0
        500 http://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

Browsing via Samba for shared printer, expanded workgroups, expanded host and crashed. Happens on every host/workgroup

ProblemType: Crash
Architecture: i386
CrashCounter: 1
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: system-config-printer-gnome 1.1.2+git20090125-0ubuntu4
PackageArchitecture: all
ProcCmdline: python /usr/share/system-config-printer/system-config-printer.py
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_NZ.UTF-8
Signal: 11
SourcePackage: system-config-printer
StacktraceTop:
 _nss_dns_gethostbyname2_r ()
 gethostbyname2_r () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /lib/tls/i686/cmov/libc.so.6
 getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /usr/lib/libsmbclient.so.0
Title: system-config-printer.py crashed with SIGSEGV in _nss_dns_gethostbyname2_r()
Uname: Linux 2.6.28-7-generic i686
UserGroups: adm admin cdrom dialout fuse lpadmin netdev plugdev sambashare video www-data

Revision history for this message
wulf solter (wulfsolter) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:_nss_dns_gethostbyname2_r ()
gethostbyname2_r@@GLIBC_2.1.2 ()
gaih_inet () from /lib/tls/i686/cmov/libc.so.6
getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
internal_resolve_name () from /usr/lib/libsmbclient.so.0

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in system-config-printer:
importance: Undecided → Medium
Revision history for this message
Alessio Treglia (quadrispro) wrote : Re: system-config-printer.py crashed with SIGSEGV in _nss_dns_gethostbyname2_r()

Can you confirm this bug for latest version published in Jaunty?

Changed in system-config-printer:
status: New → Incomplete
Revision history for this message
ahowell (alan-howell) wrote :

system-config-printer-gnome 1.1.3+git20090218-0ubuntu6

Bug confirmed after upgrading this morning.

Revision history for this message
Brian Murray (brian-murray) wrote :

I was unable to recreate this bug using system-config-printer version 1.1.3+git20090218-0ubuntu18 on Jaunty Jackalope.

Changed in system-config-printer (Ubuntu):
status: Incomplete → New
Revision history for this message
Alessio Treglia (quadrispro) wrote :

Fixed in Jaunty

Changed in system-config-printer (Ubuntu):
status: New → Fix Released
Revision history for this message
Gergely Imreh (imrehg) wrote :

I have Jaunty with all updates, but still have this bug....

Revision history for this message
Thierry Carrez (ttx) wrote :

Reopening as this is not fixed in Jaunty, multiple reports show.

According to duplicate bug 368273 this seems to be hitting i386 but not amd64, which might be the reason why Brian failed to reproduce it.

A workaround to be able to create printers (using IP address) is described in https://bugs.launchpad.net/ubuntu/+source/samba/+bug/368273/comments/10

Adding samba task since the crash is probably related to libsmbclient.

A nearly identical crash in _nss_mdns4_minimal_gethostbyname2_r is tracked in bug 359088. I suspect it's coming from the same bug.

Changed in system-config-printer (Ubuntu):
status: Fix Released → Confirmed
summary: - system-config-printer.py crashed with SIGSEGV in
- _nss_dns_gethostbyname2_r()
+ system-config-printer.py SIGSEGV in _nss_dns_gethostbyname2_r(), adding
+ a printer, i386 only
Thierry Carrez (ttx)
summary: - system-config-printer.py SIGSEGV in _nss_dns_gethostbyname2_r(), adding
- a printer, i386 only
+ SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386
+ only
Revision history for this message
Thierry Carrez (ttx) wrote :

Hm, I am struggling with the root cause of this. It is a Jaunty-specific issue, but the libsmbclient code shown in the trace didn't really change since Intrepid... However the glibc code (where the SIGSEGV ultimately occurs) did change. In particular sysdeps/posix/getaddrinfo.c. So maybe it's a side-effect of glibc bug 374674. The stack clearly passes through code from that now-useless Ubuntu-specific patch. I'll try to narrow it some more.

Revision history for this message
Thierry Carrez (ttx) wrote :

Unfortunately I couldn't reproduce the issue. I can set up Samba-shared printers on 9.04 / i386 without a crash. Maybe it's linked to Windows XP shared printers...

@Ed Comer or other reproducers:
If the issue is linked to the glibc bug, then it should be fixed in Karmic (the glibc patch was dropped there, no change in samba). Could you take Alpha1/i386 for a test run on your environment and let us know if the crash is gone ? If it does, I'll push the issue into glibc lands...

Revision history for this message
Thierry Carrez (ttx) wrote :

Hm, that wouldn't work, Karmic glibc still has patches/any/local-ipv6-lookup.diff so the test wouldn't prove anything. Please ignore what I just said.

Revision history for this message
Ed Comer (celem) wrote : Re: [Bug 329974] Re: SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only

I switched to the amd64 version of 9.04 and can no longer reproduce the bug since it isn't resident in the 64-bit version.

--- On Fri, 5/15/09, Thierry Carrez <email address hidden> wrote:

From: Thierry Carrez <email address hidden>
Subject: [Bug 329974] Re: SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
To: <email address hidden>
Date: Friday, May 15, 2009, 11:59 AM

Unfortunately I couldn't reproduce the issue. I can set up Samba-shared
printers on 9.04 / i386 without a crash. Maybe it's linked to Windows XP
shared printers...

@Ed Comer or other reproducers:
If the issue is linked to the glibc bug, then it should be fixed in Karmic (the glibc patch was dropped there, no change in samba). Could you take Alpha1/i386 for a test run on your environment and let us know if the crash is gone ? If it does, I'll push the issue into glibc lands...

--
SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
https://bugs.launchpad.net/bugs/329974
You received this bug notification because you are a direct subscriber
of a duplicate bug.

Revision history for this message
the motorman (rdoctors) wrote :

9.04 seems to have a problem and cannot print to winxp although I could with 8.4 . I can see all shared folders on winxp box but cannot see or find the printer attached to winxp box. Also the GUI for selecting a printer d0es not show "Samba connected printers" and I think it was there for 8.4 . I have had no useful ideas , seems to affect others.

Revision history for this message
Ed Comer (celem) wrote :

Read:
http://ubuntuforums.org/showthread.php?t=1140448

The workaround does work.

Also, remember that SAMBA does not enable you to see Windows shares, that is what smbclient does. SAMBA is what lets Windows see Linux shares. Nonetheless, if you can see your Windows system's shares, then this workaround will fix the printer issue.

--- On Fri, 5/29/09, the motorman <email address hidden> wrote:

> From: the motorman <email address hidden>
> Subject: [Bug 329974] Re: SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
> To: <email address hidden>
> Date: Friday, May 29, 2009, 11:00 PM
> 9.04 seems to have a problem and
> cannot print to winxp although I could
> with 8.4 . I can see all shared folders on winxp box but
> cannot see or
> find the printer attached to winxp box. Also the GUI for
> selecting a
> printer d0es not show "Samba connected printers" and I
> think it was
> there for 8.4 . I have had no useful ideas , seems to
> affect others.
>
> --
> SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba
> printers, i386 only
> https://bugs.launchpad.net/bugs/329974
> You received this bug notification because you are a direct
> subscriber
> of a duplicate bug.
>

Revision history for this message
Ed Comer (celem) wrote :

Motorman:
Are you positive that the printer on Windows is set to SHARE? If so, the printer shown in Windows' "Printers and Faxes" dialog should have a little hand on it (see attachment).

Revision history for this message
the motorman (rdoctors) wrote : Re: [Bug 329974] Re: SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only

Yes the printer does have the "hand" and it was working fine under 8.04.. I
also do not have ability to do the workaround as my GUI does not show
"windows printer via Samba"under networked printers in the
system>admin>printing GUI menu.. ( why not??)
The person who did the workaround used the 64 bit 9.04 version and I am on
the 32 bit. Apparently the 64 bit does NOT have this bug as stated in the
forums.
Thanks for your kind thoughts and ideas but I am almost at the point of
buying a wireless accessible printer.. as I spent too much time already on
this.
I have one idea that I will try and to make the windows connected printer
not shared and then reboot and make it shared.. this could well be a windows
problem.. it would not suprise me!!
Thanks again
ron Themotorman..

On Fri, May 29, 2009 at 8:36 PM, Ed Comer <email address hidden> wrote:

> Motorman:
> Are you positive that the printer on Windows is set to SHARE? If so, the
> printer shown in Windows' "Printers and Faxes" dialog should have a little
> hand on it (see attachment).
>
> ** Attachment added: "Windows Printer Dialog"
> http://launchpadlibrarian.net/27287417/printer.JPG
>
> --
> SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
> https://bugs.launchpad.net/bugs/329974
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” source package in Ubuntu: New
> Status in “system-config-printer” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: system-config-printer
>
> Description: Ubuntu jaunty (development branch)
> Release: 9.04
>
> Installed: 1.1.2+git20090125-0ubuntu4
> Candidate: 1.1.2+git20090125-0ubuntu4
> Version table:
> *** 1.1.2+git20090125-0ubuntu4 0
> 500 http://archive.ubuntu.com jaunty/main Packages
> 100 /var/lib/dpkg/status
>
>
> Browsing via Samba for shared printer, expanded workgroups, expanded host
> and crashed. Happens on every host/workgroup
>
> ProblemType: Crash
> Architecture: i386
> CrashCounter: 1
> DistroRelease: Ubuntu 9.04
> ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelModules: nvidia
> Package: system-config-printer-gnome 1.1.2+git20090125-0ubuntu4
> PackageArchitecture: all
> ProcCmdline: python
> /usr/share/system-config-printer/system-config-printer.py
> ProcEnviron:
> SHELL=/bin/bash
> PATH=(custom, user)
> LANG=en_NZ.UTF-8
> Signal: 11
> SourcePackage: system-config-printer
> StacktraceTop:
> _nss_dns_gethostbyname2_r ()
> gethostbyname2_r () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /lib/tls/i686/cmov/libc.so.6
> getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /usr/lib/libsmbclient.so.0
> Title: system-config-printer.py crashed with SIGSEGV in
> _nss_dns_gethostbyname2_r()
> Uname: Linux 2.6.28-7-generic i686
> UserGroups: adm admin cdrom dialout fuse lpadmin netdev plugdev sambashare
> video www-data
>

--
Far better one rose to the living than sumptuous wreaths to the
dead...Rachael Doctors

Revision history for this message
Ed Comer (celem) wrote :

motorman: I was the creator of the workaround on a 32-bit system. I have since loaded a 64-bit system and, yes, it doesn't have this bug.

While it could be a Windows problem, possibly something isn't right with your SAMBA setup. Even is SAMBA isn't installed, smbclient utilizes the samba.conf file. I recommend that you read the excellent posting at:
http://tinyurl.com/nvsnoj

Revision history for this message
the motorman (rdoctors) wrote :

Ed, Thanks , I did some checking and I have two other winxp systems each
with printers attached, both can print on the other machine.
I tried to follow someone who wrote about modifying smb.conf and messed it
up so badly that I downloaded a default version from ubuntu 8.4 as can't
find a default version for 9.04. ( Iknow i should have made a copy first
before messing with it... sometimes I get too impatient )
Thanks for lead to the Samba set up I'll try and follow it carefully. I'll
report results,
Can I put on a 64 bit version if my system is 32 bit and a fw years old?
Thanks again.
ron

On Sat, May 30, 2009 at 12:42 PM, Ed Comer <email address hidden>wrote:

> motorman: I was the creator of the workaround on a 32-bit system. I have
> since loaded a 64-bit system and, yes, it doesn't have this bug.
>
> While it could be a Windows problem, possibly something isn't right with
> your SAMBA setup. Even is SAMBA isn't installed, smbclient utilizes the
> samba.conf file. I recommend that you read the excellent posting at:
> http://tinyurl.com/nvsnoj
>
> --
> SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
> https://bugs.launchpad.net/bugs/329974
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” source package in Ubuntu: New
> Status in “system-config-printer” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: system-config-printer
>
> Description: Ubuntu jaunty (development branch)
> Release: 9.04
>
> Installed: 1.1.2+git20090125-0ubuntu4
> Candidate: 1.1.2+git20090125-0ubuntu4
> Version table:
> *** 1.1.2+git20090125-0ubuntu4 0
> 500 http://archive.ubuntu.com jaunty/main Packages
> 100 /var/lib/dpkg/status
>
>
> Browsing via Samba for shared printer, expanded workgroups, expanded host
> and crashed. Happens on every host/workgroup
>
> ProblemType: Crash
> Architecture: i386
> CrashCounter: 1
> DistroRelease: Ubuntu 9.04
> ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelModules: nvidia
> Package: system-config-printer-gnome 1.1.2+git20090125-0ubuntu4
> PackageArchitecture: all
> ProcCmdline: python
> /usr/share/system-config-printer/system-config-printer.py
> ProcEnviron:
> SHELL=/bin/bash
> PATH=(custom, user)
> LANG=en_NZ.UTF-8
> Signal: 11
> SourcePackage: system-config-printer
> StacktraceTop:
> _nss_dns_gethostbyname2_r ()
> gethostbyname2_r () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /lib/tls/i686/cmov/libc.so.6
> getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /usr/lib/libsmbclient.so.0
> Title: system-config-printer.py crashed with SIGSEGV in
> _nss_dns_gethostbyname2_r()
> Uname: Linux 2.6.28-7-generic i686
> UserGroups: adm admin cdrom dialout fuse lpadmin netdev plugdev sambashare
> video www-data
>

--
Far better one rose to the living than sumptuous wreaths to the
dead...Rachael Doctors

Revision history for this message
Thierry Carrez (ttx) wrote :

To anyone that can reproduce this precise bug on a Jaunty test system:
Could you test and install glibc 2.9-4ubuntu6.1~ppa1 from my PPA at https://launchpad.net/~ttx/+archive/ppa and let me know if it fixes the problem or not. You should upgrade the libc6 binary package (which should pull the libc6-i686 or libc6-amd64 and libc6-dev packages). Please reboot before testing to make sure you fully test the right glibc.

Revision history for this message
the motorman (rdoctors) wrote :

I do not know how to do a test without reloading 9.04 . I do not have a
problem now and can print fine with 9.04 and a 32 bit O/S. If you can give
me a safe way to check out your idea I will try but I am very concerned that
I will be back in the mess again. It took me nearly 35 hours to have a
system that does everything it should and did on U 8.1.
Whatever I did it seems that all I needed to do was to load smbclient as
this was missing when I did the update form 8.1 to 9.04.
Could it be that simple!!

On Thu, Jun 11, 2009 at 12:23 AM, Thierry Carrez
<email address hidden>wrote:

> To anyone that can reproduce this precise bug on a Jaunty test system:
> Could you test and install glibc 2.9-4ubuntu6.1~ppa1 from my PPA at
> https://launchpad.net/~ttx/+archive/ppa<https://launchpad.net/%7Ettx/+archive/ppa>and let me know if it fixes the problem or not. You should upgrade the libc6
> binary package (which should pull the libc6-i686 or libc6-amd64 and
> libc6-dev packages). Please reboot before testing to make sure you fully
> test the right glibc.
>
> --
> SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
> https://bugs.launchpad.net/bugs/329974
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” source package in Ubuntu: New
> Status in “system-config-printer” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: system-config-printer
>
> Description: Ubuntu jaunty (development branch)
> Release: 9.04
>
> Installed: 1.1.2+git20090125-0ubuntu4
> Candidate: 1.1.2+git20090125-0ubuntu4
> Version table:
> *** 1.1.2+git20090125-0ubuntu4 0
> 500 http://archive.ubuntu.com jaunty/main Packages
> 100 /var/lib/dpkg/status
>
>
> Browsing via Samba for shared printer, expanded workgroups, expanded host
> and crashed. Happens on every host/workgroup
>
> ProblemType: Crash
> Architecture: i386
> CrashCounter: 1
> DistroRelease: Ubuntu 9.04
> ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelModules: nvidia
> Package: system-config-printer-gnome 1.1.2+git20090125-0ubuntu4
> PackageArchitecture: all
> ProcCmdline: python
> /usr/share/system-config-printer/system-config-printer.py
> ProcEnviron:
> SHELL=/bin/bash
> PATH=(custom, user)
> LANG=en_NZ.UTF-8
> Signal: 11
> SourcePackage: system-config-printer
> StacktraceTop:
> _nss_dns_gethostbyname2_r ()
> gethostbyname2_r () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /lib/tls/i686/cmov/libc.so.6
> getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /usr/lib/libsmbclient.so.0
> Title: system-config-printer.py crashed with SIGSEGV in
> _nss_dns_gethostbyname2_r()
> Uname: Linux 2.6.28-7-generic i686
> UserGroups: adm admin cdrom dialout fuse lpadmin netdev plugdev sambashare
> video www-data
>

--
Far better one rose to the living than sumptuous wreaths to the
dead...Rachael Doctors

Revision history for this message
Stefan Radovanovici (stefan-nektulos) wrote :

I am running Ubuntu 9.04 AMD64 with the latest patches and in Administration-Printing-New Printer-Network Printer I do not have any "Windows printer via SAMBA" option. The printer I am trying to print is valid and working (several other windows boxes print to it). smbclient -L <server> also shows correctly the shared printer.

Any ideas ?

Revision history for this message
Ed Comer (celem) wrote :

I also run Ubuntu 9.04 AMD64 and have no problem at all, although it was present on the same machine when I ran the i386 version. This problem does not seem to exist in 64-bit Ubuntu. I suspect that you have a setup problem. I recommend that you read the post at the following link:

http://tinyurl.com/lpg2uk

Revision history for this message
the motorman (rdoctors) wrote :

just install smbclient .. you can do this in the command window, not
abslotuley sure but I think it is something like:
sudo apt-get install smbclient
Make sure that samba is not loaded when you do this. you need to do a stop
on samba if it is running.
This worked great fro me under Ubuntu 9.04 and solved my inability to print
on a win box printer in my LAN.
ron

On Sat, Jun 13, 2009 at 12:25 PM, Stefan Radovanovici <email address hidden>wrote:

> I am running Ubuntu 9.04 AMD64 with the latest patches and in
> Administration-Printing-New Printer-Network Printer I do not have any
> "Windows printer via SAMBA" option. The printer I am trying to print is
> valid and working (several other windows boxes print to it). smbclient
> -L <server> also shows correctly the shared printer.
>
> Any ideas ?
>
> --
> SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
> https://bugs.launchpad.net/bugs/329974
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” source package in Ubuntu: New
> Status in “system-config-printer” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: system-config-printer
>
> Description: Ubuntu jaunty (development branch)
> Release: 9.04
>
> Installed: 1.1.2+git20090125-0ubuntu4
> Candidate: 1.1.2+git20090125-0ubuntu4
> Version table:
> *** 1.1.2+git20090125-0ubuntu4 0
> 500 http://archive.ubuntu.com jaunty/main Packages
> 100 /var/lib/dpkg/status
>
>
> Browsing via Samba for shared printer, expanded workgroups, expanded host
> and crashed. Happens on every host/workgroup
>
> ProblemType: Crash
> Architecture: i386
> CrashCounter: 1
> DistroRelease: Ubuntu 9.04
> ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelModules: nvidia
> Package: system-config-printer-gnome 1.1.2+git20090125-0ubuntu4
> PackageArchitecture: all
> ProcCmdline: python
> /usr/share/system-config-printer/system-config-printer.py
> ProcEnviron:
> SHELL=/bin/bash
> PATH=(custom, user)
> LANG=en_NZ.UTF-8
> Signal: 11
> SourcePackage: system-config-printer
> StacktraceTop:
> _nss_dns_gethostbyname2_r ()
> gethostbyname2_r () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /lib/tls/i686/cmov/libc.so.6
> getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /usr/lib/libsmbclient.so.0
> Title: system-config-printer.py crashed with SIGSEGV in
> _nss_dns_gethostbyname2_r()
> Uname: Linux 2.6.28-7-generic i686
> UserGroups: adm admin cdrom dialout fuse lpadmin netdev plugdev sambashare
> video www-data
>

--
Far better one rose to the living than sumptuous wreaths to the
dead...Rachael Doctors

Revision history for this message
Stefan Radovanovici (stefan-nektulos) wrote :

The smbclient binary was already present, as I mentioned in my previous message (smbclient -L <server> shows the correct info). However, after some more digging it seems I had samba4 installed that that appeared to be the problem.

I have downgraded to samba 3 and now everything works ok, I can add a SAMBA printer and printing works.

Revision history for this message
the motorman (rdoctors) wrote :

I forgot to mention but I had the same problem, I put Samba4 on thinking
that would help but it did not, and I then did a complete removal of all the
samba4 and any other samba I could and then did a reinstall of samba via
synaptic. However this did NOT install the smbclient. I am puzzled by this
as it is part of the samba install..It could have been that samba was
running when I tried to do the synaptic reinstall. If this makes no sense to
anyone then perhaps someone can tell me why I had the " use samba
printers...." showing in the printing GUI with 8.01 then it dissapeared
when I upgraded to 9.04.
ron

On Sun, Jun 14, 2009 at 1:52 AM, Stefan Radovanovici <email address hidden>wrote:

> The smbclient binary was already present, as I mentioned in my previous
> message (smbclient -L <server> shows the correct info). However, after
> some more digging it seems I had samba4 installed that that appeared to
> be the problem.
>
> I have downgraded to samba 3 and now everything works ok, I can add a
> SAMBA printer and printing works.
>
> --
> SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
> https://bugs.launchpad.net/bugs/329974
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” source package in Ubuntu: New
> Status in “system-config-printer” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: system-config-printer
>
> Description: Ubuntu jaunty (development branch)
> Release: 9.04
>
> Installed: 1.1.2+git20090125-0ubuntu4
> Candidate: 1.1.2+git20090125-0ubuntu4
> Version table:
> *** 1.1.2+git20090125-0ubuntu4 0
> 500 http://archive.ubuntu.com jaunty/main Packages
> 100 /var/lib/dpkg/status
>
>
> Browsing via Samba for shared printer, expanded workgroups, expanded host
> and crashed. Happens on every host/workgroup
>
> ProblemType: Crash
> Architecture: i386
> CrashCounter: 1
> DistroRelease: Ubuntu 9.04
> ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelModules: nvidia
> Package: system-config-printer-gnome 1.1.2+git20090125-0ubuntu4
> PackageArchitecture: all
> ProcCmdline: python
> /usr/share/system-config-printer/system-config-printer.py
> ProcEnviron:
> SHELL=/bin/bash
> PATH=(custom, user)
> LANG=en_NZ.UTF-8
> Signal: 11
> SourcePackage: system-config-printer
> StacktraceTop:
> _nss_dns_gethostbyname2_r ()
> gethostbyname2_r () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /lib/tls/i686/cmov/libc.so.6
> getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /usr/lib/libsmbclient.so.0
> Title: system-config-printer.py crashed with SIGSEGV in
> _nss_dns_gethostbyname2_r()
> Uname: Linux 2.6.28-7-generic i686
> UserGroups: adm admin cdrom dialout fuse lpadmin netdev plugdev sambashare
> video www-data
>

--
Far better one rose to the living than sumptuous wreaths to the
dead...Rachael Doctors

Revision history for this message
Ed Comer (celem) wrote :

Smbclient is part of the standard Ubuntu or Xubuntu installation. If it wasn't present you must have done something to cause its removal. While SAMBA is not preinstalled as part of the standard Ubuntu or Xubuntu installation, it is not necessary to browse Windows shares. Samba enables Linux shares to be seen by Windows.

Revision history for this message
the motorman (rdoctors) wrote :

Thanks but samba was installed when did my 8.01 install from the original
Ubuntu download...I am Ok now and I cannot seem to help anyone else, thanks
for all your help.. all of you. Also smbclient maked it possible to print on
my win box attached printer.
I am sure you are right, and I know next to nothing about Ubuntu , in my
next life I will try harder to learn more software but until then .. thank
you Ubuntu!!
ron

On Sun, Jun 14, 2009 at 10:18 AM, Ed Comer <email address hidden>wrote:

> Smbclient is part of the standard Ubuntu or Xubuntu installation. If it
> wasn't present you must have done something to cause its removal. While
> SAMBA is not preinstalled as part of the standard Ubuntu or Xubuntu
> installation, it is not necessary to browse Windows shares. Samba
> enables Linux shares to be seen by Windows.
>
> --
> SIGSEGV in _nss_dns_gethostbyname2_r() browsing Samba printers, i386 only
> https://bugs.launchpad.net/bugs/329974
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” source package in Ubuntu: New
> Status in “system-config-printer” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: system-config-printer
>
> Description: Ubuntu jaunty (development branch)
> Release: 9.04
>
> Installed: 1.1.2+git20090125-0ubuntu4
> Candidate: 1.1.2+git20090125-0ubuntu4
> Version table:
> *** 1.1.2+git20090125-0ubuntu4 0
> 500 http://archive.ubuntu.com jaunty/main Packages
> 100 /var/lib/dpkg/status
>
>
> Browsing via Samba for shared printer, expanded workgroups, expanded host
> and crashed. Happens on every host/workgroup
>
> ProblemType: Crash
> Architecture: i386
> CrashCounter: 1
> DistroRelease: Ubuntu 9.04
> ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelModules: nvidia
> Package: system-config-printer-gnome 1.1.2+git20090125-0ubuntu4
> PackageArchitecture: all
> ProcCmdline: python
> /usr/share/system-config-printer/system-config-printer.py
> ProcEnviron:
> SHELL=/bin/bash
> PATH=(custom, user)
> LANG=en_NZ.UTF-8
> Signal: 11
> SourcePackage: system-config-printer
> StacktraceTop:
> _nss_dns_gethostbyname2_r ()
> gethostbyname2_r () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /lib/tls/i686/cmov/libc.so.6
> getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
> ?? () from /usr/lib/libsmbclient.so.0
> Title: system-config-printer.py crashed with SIGSEGV in
> _nss_dns_gethostbyname2_r()
> Uname: Linux 2.6.28-7-generic i686
> UserGroups: adm admin cdrom dialout fuse lpadmin netdev plugdev sambashare
> video www-data
>

--
Far better one rose to the living than sumptuous wreaths to the
dead...Rachael Doctors

Revision history for this message
filozofio (antonio-gonzalez-praxeologia) wrote :

I was not able to see the printers. I updated the system with third party canonical repositories on, and the bug disappeared.

Revision history for this message
Thierry Carrez (ttx) wrote :

@filozofio:
What do you mean by "third-party canonical repositories" ? Did you enable my PPA as suggested in comment 20 ? In doubt please post the output of "dpkg- l libc6". Thanks !

Revision history for this message
Thierry Carrez (ttx) wrote :

glibc was updated in karmic removing the problematic patch. Would be good to confirm that the problem is gone on karmic now.

Revision history for this message
Thierry Carrez (ttx) wrote :

This is believed to be fixed in karmic by the bug 374674 fix. Please reopen if you can still reproduce it on current karmic.

affects: samba (Ubuntu) → glibc (Ubuntu)
Changed in glibc (Ubuntu):
status: New → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote :

Not a system-config-printer bug

Changed in system-config-printer (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.