Rowland, Can you try again but first upgrade libnss to libnss 3.23at least. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Rowland penny > Verzonden: maandag 4 april 2016 15:31 > Aan: Andrew Bartlett; samba at lists.samba.org > Onderwerp: Re: [Samba] samba 4.4rcx WINS nsswitch module > > On 04/04/16 10:35, Andrew Bartlett wrote: > > On Thu, 2016-03-24 at 10:13 +0000, Rowland penny wrote: > >> On 23/03/16 13:05, Rowland penny wrote: > >>> On 23/03/16 12:53, bar???? tombul wrote: > >>>> cd /usr/lib64/security > >>>> rm pam_smbpass.so > >>>> rm pam_winbind.so > >>>> rm /lib64/libnss_wins.so* > >>>> ln -s /usr/local/samba/lib/libnss_wins.so.2 > >>>> /lib64/libnss_wins.so.2 > >>>> ln -s /usr/local/samba/lib/libnss_wins.so.2 /lib64/libnss_wins.so > >>>> reboot > >>>> # ping google.com <http://google.com> > >>>> Segmentation fault > >>>> > >>> Strange, as I showed it works for me. Samba 4.4.0 is now out, do > >>> you > >>> feel up to compiling this and trying ping again ? > >>> > >>> If you do, check that you have all the packages for your OS shown > >>> here: > >>> > >>> https://wiki.samba.org/index.php/Operating_system_requirements/Depe > >>> ndencies_-_Libraries_and_programs > >>> > >>> > >>> Rowland > >>> > >> OK, so I setup a VM and installed Centos 7 on it, installed the > >> packages > >> as per the wiki and compiled 4.4.0. I then found I didn't have > >> pam_winbind.so > >> Compared what the wiki said to install for Centos with what I > >> normally > >> install for Devuan and installed the difference, recompiled again, I > >> now > >> had pam_winbind.so > >> > >> Set up Samba and joined it to the domain and everything works until > >> you > >> add the word 'wins' to the hosts line in /etc/nsswitch.conf. > >> > >> I now get this: > >> > >> ping -c1 google.com > >> Segmentation fault > >> > >> I have disabled selinux, turned off the firewall, it doesn't matter > >> if > >> the Samba Deamons are running or not. > >> > >> All I can find that might be relevant is this: > >> > >> http://permalink.gmane.org/gmane.linux.debian.devel.systemd/8842 > >> > >> I cannot get valgrind or gdb to give any result, they both fail. > >> > >> I am becoming more convinced that this has nothing to do with Samba > >> and > >> as I normally don't use Centos, I am giving up. > > If you follow the same steps on any other OS (Debian is what I'm > > interested in most), can you make it fail? > > > > Is there a Samba version where this does work? Can you git bisect > > between the two versions? > > > > This is one of the few reported crash issues we have with 4.4 so far, > > and I'm keen that we track it down. I really appricicate you > > reproducing this much. > > > > BTW, the same is in bugzilla as > https://bugzilla.samba.org/show_bug.cgi?id=11775 > > > > Thanks, > > > > Andrew Bartlett > > > > Hi Andrew, I have updated a domain member to 4.4.0 running on Devuan > Jessie and I cannot get 'ping' to segfault, it only happens for me on > Centos (and presumably RHEL) 7 > I cannot say whether this will happen on Debian Jessie, as I will not > use systemd. > In fact it could be that systemd is the culprit here and not Samba, but > I have no way of knowing, because *I will not use systemd* > > I could not find any way to get valgrind & gdb to give up any reason why > 'ping' fails on C7, this seems to be down to the way Centos works and I > get the feeling that I would have to re-compile large amounts of Centos > just to get the debug tools to work. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
On 04/04/16 14:53, L.P.H. van Belle wrote:> Rowland, > > Can you try again but first upgrade libnss to libnss 3.23at least. > > > Greetz, > > Louis > > > > > >> -----Oorspronkelijk bericht----- >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Rowland penny >> Verzonden: maandag 4 april 2016 15:31 >> Aan: Andrew Bartlett; samba at lists.samba.org >> Onderwerp: Re: [Samba] samba 4.4rcx WINS nsswitch module >> >> On 04/04/16 10:35, Andrew Bartlett wrote: >>> On Thu, 2016-03-24 at 10:13 +0000, Rowland penny wrote: >>>> On 23/03/16 13:05, Rowland penny wrote: >>>>> On 23/03/16 12:53, bar???? tombul wrote: >>>>>> cd /usr/lib64/security >>>>>> rm pam_smbpass.so >>>>>> rm pam_winbind.so >>>>>> rm /lib64/libnss_wins.so* >>>>>> ln -s /usr/local/samba/lib/libnss_wins.so.2 >>>>>> /lib64/libnss_wins.so.2 >>>>>> ln -s /usr/local/samba/lib/libnss_wins.so.2 /lib64/libnss_wins.so >>>>>> reboot >>>>>> # ping google.com <http://google.com> >>>>>> Segmentation fault >>>>>> >>>>> Strange, as I showed it works for me. Samba 4.4.0 is now out, do >>>>> you >>>>> feel up to compiling this and trying ping again ? >>>>> >>>>> If you do, check that you have all the packages for your OS shown >>>>> here: >>>>> >>>>> https://wiki.samba.org/index.php/Operating_system_requirements/Depe >>>>> ndencies_-_Libraries_and_programs >>>>> >>>>> >>>>> Rowland >>>>> >>>> OK, so I setup a VM and installed Centos 7 on it, installed the >>>> packages >>>> as per the wiki and compiled 4.4.0. I then found I didn't have >>>> pam_winbind.so >>>> Compared what the wiki said to install for Centos with what I >>>> normally >>>> install for Devuan and installed the difference, recompiled again, I >>>> now >>>> had pam_winbind.so >>>> >>>> Set up Samba and joined it to the domain and everything works until >>>> you >>>> add the word 'wins' to the hosts line in /etc/nsswitch.conf. >>>> >>>> I now get this: >>>> >>>> ping -c1 google.com >>>> Segmentation fault >>>> >>>> I have disabled selinux, turned off the firewall, it doesn't matter >>>> if >>>> the Samba Deamons are running or not. >>>> >>>> All I can find that might be relevant is this: >>>> >>>> http://permalink.gmane.org/gmane.linux.debian.devel.systemd/8842 >>>> >>>> I cannot get valgrind or gdb to give any result, they both fail. >>>> >>>> I am becoming more convinced that this has nothing to do with Samba >>>> and >>>> as I normally don't use Centos, I am giving up. >>> If you follow the same steps on any other OS (Debian is what I'm >>> interested in most), can you make it fail? >>> >>> Is there a Samba version where this does work? Can you git bisect >>> between the two versions? >>> >>> This is one of the few reported crash issues we have with 4.4 so far, >>> and I'm keen that we track it down. I really appricicate you >>> reproducing this much. >>> >>> BTW, the same is in bugzilla as >> https://bugzilla.samba.org/show_bug.cgi?id=11775 >>> Thanks, >>> >>> Andrew Bartlett >>> >> Hi Andrew, I have updated a domain member to 4.4.0 running on Devuan >> Jessie and I cannot get 'ping' to segfault, it only happens for me on >> Centos (and presumably RHEL) 7 >> I cannot say whether this will happen on Debian Jessie, as I will not >> use systemd. >> In fact it could be that systemd is the culprit here and not Samba, but >> I have no way of knowing, because *I will not use systemd* >> >> I could not find any way to get valgrind & gdb to give up any reason why >> 'ping' fails on C7, this seems to be down to the way Centos works and I >> get the feeling that I would have to re-compile large amounts of Centos >> just to get the debug tools to work. >> >> Rowland >> >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba > >Hmm, that would need me to get libnss3 from SID, from my experience, this is likely to need other things updating, so, no I wouldn't like to try again :-D Having said that, Devuan Jessies version is 3.17.2-1.1+deb8u2 and from what a quick google, Centos 7 uses 3.19.1 I don't think it is an nss problem anyway, I normally use Devuan and ping doesn't segfault on that, I only got it to segfault on centos 7 and as I never normally use this distro and couldn't easily find a way to debug the issue, I gave up, perhaps somebody, who normally only uses Centos, would care to give it a whirl ? Rowland
On Mon, 2016-04-04 at 16:49 +0100, Rowland penny wrote:> Hmm, that would need me to get libnss3 from SID, from my experience, > this is likely to need other things updating, so, no I wouldn't like > to > try again :-D > > Having said that, Devuan Jessies version is 3.17.2-1.1+deb8u2 and > from > what a quick google, Centos 7 uses 3.19.1 > > I don't think it is an nss problem anyway, I normally use Devuan and > ping doesn't segfault on that, I only got it to segfault on centos 7 > and > as I never normally use this distro and couldn't easily find a way to > debug the issue, I gave up, perhaps somebody, who normally only uses > Centos, would care to give it a whirl ?What we need someone to do is bisect between the 'good' and 'bad' versions: git clone git://git.samba.org/samba.git reproduce the bug git bisect bad git checkout samba-4.3.0rc1 git clean -x -f -d reproduce that the bug doesn't exist git bisect good Then repeat building, installing, testing, until we find out what change broke it. See script/bisect-test.py for an automation of this. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba