Samba crashes when connecting to it with Android app

Bug #2015666 reported by Johan van Dijk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When I connect to Samba with the Android App "Solid Explorer", I can reliably crash Samba.
The same app works without problems when I connect to Samba on Ubuntu 22.10

Samba does not crash when I connect to it from another Ubuntu or Windows machine.

I use a username and password to access Samba.

Also, when I run "ubuntu-bug /var/crash/_usr_sbin_smbd.0.crash" I get an error:
........................................................................................ERROR: hook /usr/share/apport/package-hooks/source_samba.py crashed:
...........Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook
    symb['add_info'](report, ui)
...... File "/usr/share/apport/package-hooks/source_samba.py", line 93, in add_info
    ui.information("As a part of the bug reporting process, you'll be asked as series of questions to help provide a more descriptive bug report. Please answer the following questions to the best of your abilities. Afterwards, a browser will be opened to finish filing this as a bug in the Launchpad bug tracking system.")
.AttributeError: 'NoneType' object has no attribute 'information'
...........................................................................................

Other information:

lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04

apt-cache policy samba
samba:
  Installed: 2:4.15.13+dfsg-0ubuntu1.1
  Candidate: 2:4.15.13+dfsg-0ubuntu1.1
  Version table:
 *** 2:4.15.13+dfsg-0ubuntu1.1 500
        500 http://nl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://nl.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2:4.15.5~dfsg-0ubuntu5 500
        500 http://nl.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: samba 2:4.15.13+dfsg-0ubuntu1.1
ProcVersionSignature: Ubuntu 5.15.0-69.76-generic 5.15.87
Uname: Linux 5.15.0-69-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sun Apr 9 05:16:54 2023
InstallationDate: Installed on 2022-06-20 (292 days ago)
InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220421)
NmbdLog:

OtherFailedConnect: Yes
SambaServerRegression: Yes
SmbConfIncluded: Yes
SmbLog:

SourcePackage: samba
TestparmExitCode: 0
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Johan van Dijk (johanvandijk) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :
Download full text (5.5 KiB)

Regarding the apport hook crash, that should rather be its own bug report since it'll need a distinct fix. I've filed that for you as LP: #2016776.

Regarding the crash, I decoded your crash dump manually to get a stack trace. I wasn't able to get the symbols to load even with debuginfod, but maybe this will give some clue anyway:

#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140407134892032) at ./nptl/pthread_kill.c:44
        tid = <optimized out>
        ret = 0
        pd = 0x7fb315663000
        old_mask = {__val = {140407203554592, 32, 94457834845924, 94457834845824, 94457834845924, 0, 0, 0, 0, 0, 0, 13675241866861084416, 140407134891864, 140722223243408, 140407209314080, 10}}
        ret = <optimized out>
        pd = <optimized out>
        old_mask = <optimized out>
        ret = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
        resultvar = <optimized out>
        resultvar = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
        __futex = <optimized out>
        resultvar = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
        __futex = <optimized out>
        __private = <optimized out>
        __oldval = <optimized out>
        result = <optimized out>
#1 __pthread_kill_internal (signo=6, threadid=140407134892032) at ./nptl/pthread_kill.c:78
No locals.
#2 __GI___pthread_kill (threadid=140407134892032, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
No locals.
#3 0x00007fb3197de476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
        ret = <optimized out>
#4 0x00007fb3197c47f3 in __GI_abort () at ./stdlib/abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {0 <repeats 14 times>, 268435456, 0}}, sa_flags = -70385920, sa_restorer = 0x0}
        sigs = {__val = {32, 0, 0, 0, 0, 13675241866861084416, 140407134891864, 140722223243408, 140407209314080, 10, 4, 94455256317952, 140407203554592, 140722223243712, 0, 32}}
#5 0x00007fb319ce13e4 in dump_core () from /lib/x86_64-linux-gnu/libsmbconf.so.0
No symbol table info available.
#6 0x00007fb319cb5b35 in smb_panic_s3 () from /lib/x86_64-linux-gnu/libsmbconf.so.0
No symbol table info available.
#7 0x00007fb31a0dd47e in smb_panic () from /lib/x86_64-linux-gnu/libsamba-util.so.0
No symbol table info available.
#8 0x00007fb31a0dd505 in ?? () from /lib/x86_64-linux-gnu/libsamba-util.so.0
No symbol table info available.
#9 <signal handler called>
No locals.
#10 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:74
No locals.
#11 0x00007fb319cc7711 in volume_label () from /lib/x86_64-linux-gnu/libsmbconf.so.0
No symbol table info available.
#12 0x00007fb319ecc703 in smbd_do_qfsinfo () from /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0
No symbol table info available.
#13 0x00007fb319f2f385 in smbd_smb2_request_proce...

Read more...

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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