Bug 14500 - Crash with Spotlight search
Summary: Crash with Spotlight search
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.12.6
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-18 12:49 UTC by Perttu Aaltonen
Modified: 2020-09-18 16:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Perttu Aaltonen 2020-09-18 12:49:10 UTC
This happened while testing Spotlight searches, I think while searching by "name contains" or "name ends with". Unfortunately the repo I use doesn't provide debuginfo packages so I have to build from source and reproduce if those are needed.

Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal

# Global parameters
[global]
	load printers = No
	log file = /var/log/samba/%m.log
	map to guest = Bad User
	netbios name = FILESERVER
	unix extensions = No
	elasticsearch:port = 9200
	elasticsearch:address = 10.0.0.103
	streams_xattr:store_stream_type = no
	streams_xattr:prefix = user.
	fruit:nfs_aces = no
	fruit:model = Xserve
	fruit:encoding = native
	fruit:locking = none
	fruit:metadata = netatalk
	fruit:resource = file
	rpc_server:mdssvc = embedded
	idmap config * : backend = tdb
	access based share enum = Yes
	acl allow execute always = Yes
	create mask = 0775
	directory mask = 02775
	force create mode = 0775
	force directory mode = 02775
	spotlight backend = elasticsearch
	vfs objects = catia fruit streams_xattr


[share]
	force group = share
	path = /tank/share
	read only = No
	spotlight = Yes
	valid users = +share

[2020/09/16 13:29:58.363451,  1] ../../source3/rpc_server/mdssvc/mdssvc.c:1385(slrpc_close_query)
  bad context: [0xb1df,0x6b0001c0]
[2020/09/16 13:29:58.372924,  1] ../../source3/rpc_server/mdssvc/mdssvc.c:1385(slrpc_close_query)
  bad context: [0xb0a5,0x6b0001c0]
[2020/09/16 13:29:58.651114,  0] ../../source3/rpc_server/mdssvc/mdssvc_es.c:796(mds_es_search_http_read_done)
  mds_es_search_http_read_done: error adding result for path: /tank/share/.DS_Store
[2020/09/16 13:29:58.653257,  1] ../../source3/rpc_server/mdssvc/mdssvc_es.c:334(mds_es_reconnect_on_error)
  mds_es_reconnect_on_error: Reconnecting HTTP...
[2020/09/16 13:29:58.672426,  1] ../../source3/rpc_server/mdssvc/mdssvc.c:1034(slrpc_fetch_query_results)
  query in error state
[2020/09/16 13:30:58.661334,  0] ../../lib/util/fault.c:79(fault_report)
  ===============================================================
[2020/09/16 13:30:58.663602,  0] ../../lib/util/fault.c:80(fault_report)
  INTERNAL ERROR: Signal 11 in pid 18203 (4.12.6-Debian)
  If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting
[2020/09/16 13:30:58.664773,  0] ../../lib/util/fault.c:86(fault_report)
  ===============================================================
[2020/09/16 13:30:58.665100,  0] ../../source3/lib/util.c:829(smb_panic_s3)
  PANIC (pid 18203): internal error
[2020/09/16 13:30:58.671013,  0] ../../lib/util/fault.c:264(log_stack_trace)
  BACKTRACE: 24 stack frames:
   #0 /lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0x34) [0x7f1b2a499624]
   #1 /lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x27) [0x7f1b2a240d87]
   #2 /lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x33) [0x7f1b2a499723]
   #3 /lib/x86_64-linux-gnu/libsamba-util.so.0(+0x15981) [0x7f1b2a499981]
   #4 /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0) [0x7f1b29c3b3c0]
   #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x18285f) [0x7f1b2a68785f]
   #6 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_timer_handler+0xfd) [0x7f1b29c5783d]
   #7 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_timer_delay+0x90) [0x7f1b29c579e0]
   #8 /lib/x86_64-linux-gnu/libtevent.so.0(+0xdda9) [0x7f1b29c58da9]
   #9 /lib/x86_64-linux-gnu/libtevent.so.0(+0xbe3b) [0x7f1b29c56e3b]
   #10 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x98) [0x7f1b29c51ec8]
   #11 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f1b29c5216b]
   #12 /lib/x86_64-linux-gnu/libtevent.so.0(+0xbdcb) [0x7f1b29c56dcb]
   #13 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_process+0x7a7) [0x7f1b2a620af7]
   #14 /usr/sbin/smbd(+0xc0b1) [0x55bf56e590b1]
   #15 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x81) [0x7f1b29c52801]
   #16 /lib/x86_64-linux-gnu/libtevent.so.0(+0xdcd7) [0x7f1b29c58cd7]
   #17 /lib/x86_64-linux-gnu/libtevent.so.0(+0xbe3b) [0x7f1b29c56e3b]
   #18 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x98) [0x7f1b29c51ec8]
   #19 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f1b29c5216b]
   #20 /lib/x86_64-linux-gnu/libtevent.so.0(+0xbdcb) [0x7f1b29c56dcb]
   #21 /usr/sbin/smbd(main+0x1b2f) [0x55bf56e56a8f]
   #22 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f1b29a5b0b3]
   #23 /usr/sbin/smbd(_start+0x2e) [0x55bf56e56e6e]
[2020/09/16 13:30:58.675825,  0] ../../source3/lib/dumpcore.c:317(dump_core)
  coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern
Comment 1 Perttu Aaltonen 2020-09-18 13:10:25 UTC
Client was macOS High Sierra 10.13