Bug#968036: samba: segfault with aio_pthread

2022-04-23 Thread Michael Tokarev

Control: tag -1 + moreinfo

On Fri, 07 Aug 2020 10:33:25 +0200 "Josep M. Perez"  
wrote:

Package: samba
Version: 2:4.12.5+dfsg-3
Severity: normal
Tags: upstream
X-Debbugs-Cc: josep.m.pe...@gmail.com

Dear Maintainer,

   * What led up to the situation?
Enabled aio_pthread.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?
Access by a Mac OS client seems to crash smbd from time to time.


aio_pthread appears to work in samba version in bullseye now. But
I can't test a MacOS client, I don't have any around. Can you verify
it is still failing?

Thanks,

/mjt



Bug#968036: samba: segfault with aio_pthread

2020-08-07 Thread Josep M. Perez
Package: samba
Version: 2:4.12.5+dfsg-3
Severity: normal
Tags: upstream
X-Debbugs-Cc: josep.m.pe...@gmail.com

Dear Maintainer,

   * What led up to the situation?
Enabled aio_pthread.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?
Access by a Mac OS client seems to crash smbd from time to time.

   * What was the outcome of this action?
   * What outcome did you expect instead?

A backtrace of the crash follows:

Core was generated by `/usr/sbin/smbd --foreground --no-process-group'.
Program terminated with signal SIGABRT, Aborted.
#0  0x7fc960969cb1 in __clear_internal_signals (set=) at
../sysdeps/unix/sysv/linux/internal-signals.h:74
74  ../sysdeps/unix/sysv/linux/internal-signals.h: No such file or
directory.
[Current thread is 1 (Thread 0x7fc95f144a40 (LWP 70077))]
(gdb) bt
#0  0x7fc960969cb1 in __clear_internal_signals (set=) at
../sysdeps/unix/sysv/linux/internal-signals.h:74
#1  __libc_signal_block_app (set=0x7ffedd750e20) at
../sysdeps/unix/sysv/linux/internal-signals.h:75
#2  __GI_raise (sig=0, sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:40
#3  0x7fc960953537 in __GI_abort () at abort.c:79
#4  0x7fc9612cd350 in dump_core () at ../../source3/lib/dumpcore.c:338
#5  0x7fc9612f72f6 in smb_panic_s3 (why=0x7fc961704ce6 "internal error") at
../../source3/lib/util.c:853
#6  0x7fc9616f2b9f in smb_panic (why=why@entry=0x7fc961704ce6 "internal
error") at ../../lib/util/fault.c:174
#7  0x7fc9616f2dfd in fault_report (sig=11) at ../../lib/util/fault.c:88
#8  sig_fault (sig=11) at ../../lib/util/fault.c:99
#9  
#10 0x7fc9616ef892 in timeval_add (tv=tv@entry=0xb8, secs=20, usecs=0) at
../../lib/util/time.c:651
#11 0x7fc9616ef8dc in timeval_sum (tv1=tv1@entry=0xb8,
tv2=tv2@entry=0x7ffedd751780) at ../../lib/util/time.c:663
#12 0x7fc96150f5ee in request_timed_out (req=req@entry=0x0, timeout=...) at
../../source3/smbd/open.c:2659
#13 0x7fc961517f4f in schedule_async_open (req=0x0) at
../../source3/smbd/open.c:3008
#14 open_file_ntcreate (fsp=, pinfo=0x7ffedd7518b0,
private_flags=16, lease=, oplock_request=8,
new_dos_attributes=0, create_options=0,
create_disposition=3, share_access=7, access_mask=, req=0x0,
conn=0x55fc377c0a70) at ../../source3/smbd/open.c:3719
#15 create_file_unixpath (conn=conn@entry=0x55fc377c0a70, req=req@entry=0x0,
smb_fname=smb_fname@entry=0x55fc37980d70, access_mask=access_mask@entry=0,
share_access=share_access@entry=7,
create_disposition=create_disposition@entry=3, create_options=0,
file_attributes=0, oplock_request=8, lease=,
allocation_size=0, private_flags=16, sd=0x0, ea_list=0x0,
result=0x7ffedd751d18, pinfo=0x0) at ../../source3/smbd/open.c:5592
#16 0x7fc961515bda in create_file_unixpath (conn=conn@entry=0x55fc377c0a70,
req=req@entry=0x55fc377fcf80, smb_fname=smb_fname@entry=0x55fc3791b3d0,
access_mask=access_mask@entry=386, share_access=share_access@entry=7,
create_disposition=create_disposition@entry=5, create_options=0,
file_attributes=128, oplock_request=0,
lease=, allocation_size=0, private_flags=0, sd=0x0,
ea_list=0x0, result=0x7ffedd7520e8, pinfo=0x7ffedd7520e4) at
../../source3/smbd/open.c:5512
#17 0x7fc961518ff8 in create_file_default (conn=0x55fc377c0a70,
req=0x55fc377fcf80, root_dir_fid=, smb_fname=0x55fc3791b3d0,
access_mask=386, share_access=7,
create_disposition=5, create_options=0, file_attributes=128,
oplock_request=0, lease=0x0, allocation_size=0, private_flags=0, sd=0x0,
ea_list=0x0, result=0x55fc378e23d8,
pinfo=0x55fc378e23ec, in_context_blobs=0x7ffedd752390,
out_context_blobs=0x55fc378e25f0) at ../../source3/smbd/open.c:6010
#18 0x7fc95ea43f47 in fruit_create_file (handle=0x55fc377c09d0,
req=0x55fc377fcf80, root_dir_fid=, smb_fname=0x55fc3791b3d0,
access_mask=386, share_access=7,
create_disposition=5, create_options=0, file_attributes=128,
oplock_request=0, lease=0x0, allocation_size=0, private_flags=0, sd=0x0,
ea_list=0x0, result=0x55fc378e23d8,
pinfo=0x55fc378e23ec, in_context_blobs=0x7ffedd752390,
out_context_blobs=0x55fc378e25f0) at ../../source3/modules/vfs_fruit.c:4035
#19 0x7fc96154de75 in smbd_smb2_create_send (in_context_blobs=...,
in_name=, in_create_options=,
in_create_disposition=,
in_share_access=, in_file_attributes=,
in_desired_access=, in_impersonation_level=,
in_oplock_level=,
smb2req=0x55fc37904230, ev=, mem_ctx=0x55fc37904230) at
../../source3/smbd/smb2_create.c:983
#20 smbd_smb2_request_process_create (smb2req=smb2req@entry=0x55fc37904230) at
../../source3/smbd/smb2_create.c:268
#21 0x7fc96154557e in smbd_smb2_request_dispatch
(req=req@entry=0x55fc37904230) at ../../source3/smbd/smb2_server.c:2709
#22 0x7fc961546290 in smbd_smb2_io_handler (fde_flags=,
xconn=0x55fc377a7be0) at ../../source3/smbd/smb2_server.c:4060
#23 smbd_smb2_connection_handler (ev=, fde=,
flags=, private_data=) at
../../source3/smbd/smb2_server.c:4098
#24 0x7fc960afa70d in tevent_common_invoke_fd_handler