Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1010801: Package: samba-common-bin

23 views
Skip to first unread message

David

unread,
May 10, 2022, 5:50:04 AM5/10/22
to

Package: samba-common-bin

Release: Debian 10

Problem: /usr/bin/net ads testjoin --> Segment violation


Hi!


The "net ads testjoin" command is giving me a "segment violation" error. Please can you help me?



root@Qintranet01:~# uname -a
Linux Qintranet01 4.19.0-20-686-pae #1 SMP Debian 4.19.235-1 (2022-03-17) i686 GNU/Linux
root@Qintranet01:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
root@Qintranet01:~# cat /etc/debian_version
10.12
root@Qintranet01:~#



root@Qintranet01:~# /usr/bin/net ads testjoin

Violación de segmento
root@Qintranet01:~#

root@Qintranet01:~# apt-file search /usr/bin/net

samba-common-bin: /usr/bin/net

root@Qintranet01:~# dpkg -l | grep samba-common-bin
ii  samba-common-bin       2:4.9.5+dfsg-5+deb10u3        i386         Samba common files used by both the server and the client
root@Qintranet01:~#

root@Qintranet01:~# apt-get update
Obj:1 http://deb.debian.org/debian buster InRelease
Obj:2 http://deb.debian.org/debian-security buster/updates InRelease
Des:3 http://deb.debian.org/debian buster-updates InRelease [51,9 kB]
Descargados 51,9 kB en 1s (72,3 kB/s)
Leyendo lista de paquetes... Hecho
root@Qintranet01:~# apt-get upgrade
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Calculando la actualización... Hecho
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
root@Qintranet01:~#



root@Qintranet01:~# gdb --args /usr/bin/net ads testjoin

GNU gdb (Debian 8.2.1-2+b3) 8.2.1

Copyright (C) 2018 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

Type "show copying" and "show warranty" for details.

This GDB was configured as "i686-linux-gnu".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

http://www.gnu.org/software/gdb/bugs/.

Find the GDB manual and other documentation resources online at:

    http://www.gnu.org/software/gdb/documentation/.

 

For help, type "help".

Type "apropos word" to search for commands related to "word"...

Reading symbols from /usr/bin/net...(no debugging symbols found)...done.

(gdb) run

Starting program: /usr/bin/net ads testjoin

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".

[Detaching after fork from child process 31535]

 

Program received signal SIGSEGV, Segmentation fault.

0xb7ec6149 in lmmstfree () from /opt/OraHome/lib/libclntsh.so.8.0

(gdb) bt

#0  0xb7ec6149 in lmmstfree () from /opt/OraHome/lib/libclntsh.so.8.0

#1  0xb7ec46c7 in lmmfree () from /opt/OraHome/lib/libclntsh.so.8.0

#2  0xb7beabd1 in gslumfFree () from /opt/OraHome/lib/libclntsh.so.8.0

#3  0xb7be4a26 in gslcurf_LdapFreeUrldesc () from /opt/OraHome/lib/libclntsh.so.8.0

#4  0xb7be02da in ldap_free_urldesc () from /opt/OraHome/lib/libclntsh.so.8.0

#5  0xb66c9f6b in ldap_free_urllist () from /lib/i386-linux-gnu/libldap_r-2.4.so.2

#6  0xb66bbbb5 in ldap_ld_free () from /lib/i386-linux-gnu/libldap_r-2.4.so.2

#7  0xb66b0d81 in ldap_initialize () from /lib/i386-linux-gnu/libldap_r-2.4.so.2

#8  0xb777c646 in ldap_open_with_timeout () from /usr/lib/i386-linux-gnu/samba/libads.so.0

#9  0xb77813ac in ads_connect () from /usr/lib/i386-linux-gnu/samba/libads.so.0

#10 0x00430039 in ?? ()

#11 0x0043161a in ads_startup ()

#12 0x00432c76 in ?? ()

#13 0x00432d4c in net_ads_testjoin ()

#14 0x004369ad in net_ads ()

#15 0x0041858c in main ()

(gdb) quit

A debugging session is active.

 

        Inferior 1 [process 31528] will be killed.

 

Quit anyway? (y or n) y

root@Qintranet01:~#

 

 



root@Qintranet01:~# systemctl status smbd nmbd winbind sssd

● smbd.service - Samba SMB Daemon

   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)

   Active: active (running) since Tue 2022-05-10 11:06:50 CEST; 3s ago

     Docs: man:smbd(8)

           man:samba(7)

           man:smb.conf(5)

  Process: 2143 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)

 Main PID: 2148 (smbd)

   Status: "smbd: ready to serve connections..."

    Tasks: 4 (limit: 2341)

   Memory: 6.5M

   CGroup: /system.slice/smbd.service

           ├─2148 /usr/sbin/smbd --foreground --no-process-group

           ├─2153 /usr/sbin/smbd --foreground --no-process-group

           ├─2154 /usr/sbin/smbd --foreground --no-process-group

           └─2157 /usr/sbin/smbd --foreground --no-process-group

 

may 10 11:06:49 Qintranet01 systemd[1]: Starting Samba SMB Daemon...

may 10 11:06:50 Qintranet01 systemd[1]: Started Samba SMB Daemon.

may 10 11:06:50 Qintranet01 smbd[2148]: [2022/05/10 11:06:50.081462,  0] ../lib/util/become_daemon.c:138(daemon_ready)

may 10 11:06:50 Qintranet01 smbd[2148]:   daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections

 

● nmbd.service - Samba NMB Daemon

   Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)

   Active: active (running) since Tue 2022-05-10 11:06:49 CEST; 3s ago

     Docs: man:nmbd(8)

           man:samba(7)

           man:smb.conf(5)

 Main PID: 2136 (nmbd)

   Status: "nmbd: ready to serve connections..."

    Tasks: 1 (limit: 2341)

   Memory: 1.8M

   CGroup: /system.slice/nmbd.service

           └─2136 /usr/sbin/nmbd --foreground --no-process-group

 

may 10 11:06:49 Qintranet01 systemd[1]: Starting Samba NMB Daemon...

may 10 11:06:49 Qintranet01 systemd[1]: Started Samba NMB Daemon.

may 10 11:06:49 Qintranet01 nmbd[2136]: [2022/05/10 11:06:49.722404,  0] ../lib/util/become_daemon.c:138(daemon_ready)

may 10 11:06:49 Qintranet01 nmbd[2136]:   daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections

 

● winbind.service - Samba Winbind Daemon

   Loaded: loaded (/lib/systemd/system/winbind.service; enabled; vendor preset: enabled)

   Active: active (running) since Tue 2022-05-10 11:06:49 CEST; 3s ago

     Docs: man:winbindd(8)

           man:samba(7)

           man:smb.conf(5)

 Main PID: 2139 (winbindd)

   Status: "winbindd: ready to serve connections..."

    Tasks: 4 (limit: 2341)

   Memory: 6.0M

   CGroup: /system.slice/winbind.service

           ├─2139 /usr/sbin/winbindd --foreground --no-process-group

           ├─2142 winbindd: domain child [CYII]

           ├─2155 winbindd: domain child [QINTRANET01]

           └─2156 winbindd: idmap child

 

may 10 11:06:49 Qintranet01 systemd[1]: Starting Samba Winbind Daemon...

may 10 11:06:49 Qintranet01 winbindd[2139]: [2022/05/10 11:06:49.803760,  0] ../lib/util/become_daemon.c:138(daemon_ready)

may 10 11:06:49 Qintranet01 systemd[1]: Started Samba Winbind Daemon.

may 10 11:06:49 Qintranet01 winbindd[2139]:   daemon_ready: STATUS=daemon 'winbindd' finished starting up and ready to serve connection

 

● sssd.service - System Security Services Daemon

   Loaded: loaded (/lib/systemd/system/sssd.service; enabled; vendor preset: enabled)

   Active: active (running) since Tue 2022-05-10 11:06:50 CEST; 3s ago

 Main PID: 2138 (sssd)

    Tasks: 4 (limit: 2341)

   Memory: 37.5M

   CGroup: /system.slice/sssd.service

           ├─2138 /usr/sbin/sssd -i --logger=files

           ├─2144 /usr/lib/i386-linux-gnu/sssd/sssd_be --domain CYII.CORP --uid 0 --gid 0 --logger=files

           ├─2150 /usr/lib/i386-linux-gnu/sssd/sssd_nss --uid 0 --gid 0 --logger=files

           └─2151 /usr/lib/i386-linux-gnu/sssd/sssd_pam --uid 0 --gid 0 --logger=files

 

may 10 11:06:49 Qintranet01 systemd[1]: Starting System Security Services Daemon...

may 10 11:06:49 Qintranet01 sssd[2138]: Starting up

may 10 11:06:49 Qintranet01 sssd[be[2144]: Starting up

may 10 11:06:50 Qintranet01 sssd[2150]: Starting up

may 10 11:06:50 Qintranet01 sssd[2151]: Starting up

may 10 11:06:50 Qintranet01 systemd[1]: Started System Security Services Daemon.

root@Qintranet01:~#

 


Thanks.

David.

Michael Tokarev

unread,
May 10, 2022, 6:00:04 AM5/10/22
to
Control: tag -1 + moreinfo

10.05.2022 12:40, David wrote:
> Package: samba-common-bin
> Release: Debian 10
> *ii samba-common-bin 2:4.9.5+dfsg-5+deb10u3 i386 Samba common files used by both the server and the client*
> Problem: /usr/bin/net ads testjoin --> Segment violation

Please verify if this problem is still present on the current debian stable
release (debian 10 is oldstable, and samba 4.9 reached end-of-life quite
some time ago). Or better yet, if it is present with the current version
of samba (4.16) which is now made available in bullseye-backports.

Maybe someone else will help you with this old version of samba, but
unfortunately that will not be me. There were just too many differences
since that version.

Thanks,

/mjt

L.P.H. van Belle

unread,
May 10, 2022, 6:40:05 AM5/10/22
to
>> systemctl status smbd nmbd winbind sssd

It should not segment but.. your running a not supported setup.

you have to choose or winbind or sssd
you cant run both.

try the join again but stop sssd first.
if that doesn’t work, then post you /etc/hosts and /etc/resolv.conf and full smb.conf

And, as quick fix you can upgrade to a higher samba also on buster through the repo i provide.

In order what im suggesting..

1) If you can upgrade to bullseye, that’s highly preffered, and give you the option to move to 4.16.1 in backports.
Which is what I recommend..
2) if you cant upgrade
- make sure everything is setup as it should, I already seen one thing that’s whould not be running as I stated above.
- then choose which samba version you want and can run.
for buster I have 4.13 4.14 and 4.15 available only a big sidenote... these packages DON’T support SSSD.
so if SSSD is a must, you must stay within debian official packages.



Greetz,

Louis
?œ smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2022-05-10 11:06:50 CEST; 3s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 2143 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
 Main PID: 2148 (smbd)
   Status: "smbd: ready to serve connections..."
    Tasks: 4 (limit: 2341)
   Memory: 6.5M
   CGroup: /system.slice/smbd.service
           „¥„Ÿ2148 /usr/sbin/smbd --foreground --no-process-group
           „¥„Ÿ2153 /usr/sbin/smbd --foreground --no-process-group
           „¥„Ÿ2154 /usr/sbin/smbd --foreground --no-process-group
           „¤„Ÿ2157 /usr/sbin/smbd --foreground --no-process-group
 
may 10 11:06:49 Qintranet01 systemd[1]: Starting Samba SMB Daemon...
may 10 11:06:50 Qintranet01 systemd[1]: Started Samba SMB Daemon.
may 10 11:06:50 Qintranet01 smbd[2148]: [2022/05/10 11:06:50.081462,  0] ../lib/util/become_daemon.c:138(daemon_ready)
may 10 11:06:50 Qintranet01 smbd[2148]:   daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
 
?œ nmbd.service - Samba NMB Daemon
   Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2022-05-10 11:06:49 CEST; 3s ago
     Docs: man:nmbd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 2136 (nmbd)
   Status: "nmbd: ready to serve connections..."
    Tasks: 1 (limit: 2341)
   Memory: 1.8M
   CGroup: /system.slice/nmbd.service
           „¤„Ÿ2136 /usr/sbin/nmbd --foreground --no-process-group
 
may 10 11:06:49 Qintranet01 systemd[1]: Starting Samba NMB Daemon...
may 10 11:06:49 Qintranet01 systemd[1]: Started Samba NMB Daemon.
may 10 11:06:49 Qintranet01 nmbd[2136]: [2022/05/10 11:06:49.722404,  0] ../lib/util/become_daemon.c:138(daemon_ready)
may 10 11:06:49 Qintranet01 nmbd[2136]:   daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
 
?œ winbind.service - Samba Winbind Daemon
   Loaded: loaded (/lib/systemd/system/winbind.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2022-05-10 11:06:49 CEST; 3s ago
     Docs: man:winbindd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 2139 (winbindd)
   Status: "winbindd: ready to serve connections..."
    Tasks: 4 (limit: 2341)
   Memory: 6.0M
   CGroup: /system.slice/winbind.service
           „¥„Ÿ2139 /usr/sbin/winbindd --foreground --no-process-group
           „¥„Ÿ2142 winbindd: domain child [CYII]
           „¥„Ÿ2155 winbindd: domain child [QINTRANET01]
           „¤„Ÿ2156 winbindd: idmap child
 
may 10 11:06:49 Qintranet01 systemd[1]: Starting Samba Winbind Daemon...
may 10 11:06:49 Qintranet01 winbindd[2139]: [2022/05/10 11:06:49.803760,  0] ../lib/util/become_daemon.c:138(daemon_ready)
may 10 11:06:49 Qintranet01 systemd[1]: Started Samba Winbind Daemon.
may 10 11:06:49 Qintranet01 winbindd[2139]:   daemon_ready: STATUS=daemon 'winbindd' finished starting up and ready to serve connection
 
?œ sssd.service - System Security Services Daemon
   Loaded: loaded (/lib/systemd/system/sssd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2022-05-10 11:06:50 CEST; 3s ago
 Main PID: 2138 (sssd)
    Tasks: 4 (limit: 2341)
   Memory: 37.5M
   CGroup: /system.slice/sssd.service
           „¥„Ÿ2138 /usr/sbin/sssd -i --logger=files
           „¥„Ÿ2144 /usr/lib/i386-linux-gnu/sssd/sssd_be --domain CYII.CORP --uid 0 --gid 0 --logger=files
           „¥„Ÿ2150 /usr/lib/i386-linux-gnu/sssd/sssd_nss --uid 0 --gid 0 --logger=files
           „¤„Ÿ2151 /usr/lib/i386-linux-gnu/sssd/sssd_pam --uid 0 --gid 0 --logger=files

Michael Tokarev

unread,
May 10, 2022, 7:00:04 AM5/10/22
to
10.05.2022 13:30, L.P.H. van Belle wrote:
...
> 1) If you can upgrade to bullseye, that’s highly preffered, and give you the option to move to 4.16.1 in backports.
> Which is what I recommend..
> 2) if you cant upgrade
> - make sure everything is setup as it should, I already seen one thing that’s whould not be running as I stated above.
> - then choose which samba version you want and can run.
> for buster I have 4.13 4.14 and 4.15 available only a big sidenote... these packages DON’T support SSSD.
> so if SSSD is a must, you must stay within debian official packages.

Heck. This reminds me that.. I didn't provide sssd backport for bullseye,
but sssd from bullseye will NOT work with samba from bullseye-backports.

This is because samba changed the path for ldb modules, and sssd-provided
module can't be found after samba upgrade.

This can be fixed in samba though.
Providing a symlink from /usr/lib/x86_64-linux-gnu/samba/ldb/ pointing to
/usr/lib/x86_64-linux-gnu/ldb/plugins/.. - I don't remember off-hand where
sssd puts its plugin at.

But the new libldb2 Breaks sssd in bullseye, so it can't be fixed after
install: you can't install it to begin with.

I completely forgot about this.

It looks like a new samba bpo release is in order.

/mjt
0 new messages