Bug 14571 - Panic: Internal error: In sids_to_unixids (Kerberos ticket expiry?)
Summary: Panic: Internal error: In sids_to_unixids (Kerberos ticket expiry?)
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.12.10
Hardware: All FreeBSD
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-10 21:19 UTC by Peter Eriksson
Modified: 2020-11-10 21:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eriksson 2020-11-10 21:19:25 UTC
I just got a panic-crash from Samba 4.12.10 on one of our FreeBSD 12.2 servers that I haven't seen before (recently upgraded it from 4.12.5). 

It might be related to Kerberos ticket expiring (10 hours) since this smbd process was started at 11:30, and it crashed 21:39 (10 hours later):

> 11:30/ps-auxwww.log:adm_lillu24 23768   0.2  0.1  211716  168264  -  S    11:29       0:00.04 /liu/sbin/smbd --daemon --configfile=/liu/etc/samba/smb.conf
> 11:31/ps-auxwww.log:root             23768   0.0  0.1  214476  169112  -  S    11:29       0:00.05 /liu/sbin/smbd --daemon --configfile=/liu/etc/samba/smb.conf
> ...
> 21:38/ps-auxwww.log:root        23768   0.0  0.1  230392  188800  -  S    11:29       0:12.75 /liu/sbin/smbd --daemon --configfile=/liu/etc/samba/smb.conf
> 21:39/ps-auxwww.log:root        23768   0.0  0.1  230476  188924  -  S    11:29       0:12.76 /liu/sbin/smbd --daemon --configfile=/liu/etc/samba/smb.conf

Crash stack trace. Unfortunately no core dump.

Nov 10 21:39:11 runur01 smbd_audit[23768]: [2020/11/10 21:39:11.810411,  0] ../../lib/util/fault.c:79(fault_report)
Nov 10 21:39:11 runur01 smbd_audit[23768]:   ===============================================================
Nov 10 21:39:11 runur01 smbd_audit[23768]: [2020/11/10 21:39:11.810811,  0] ../../lib/util/fault.c:80(fault_report)
Nov 10 21:39:11 runur01 smbd_audit[23768]:   INTERNAL ERROR: Signal 11 in pid 23768 (4.12.10-LiU)
Nov 10 21:39:11 runur01 smbd_audit[23768]:   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
Nov 10 21:39:11 runur01 smbd_audit[23768]: [2020/11/10 21:39:11.810867,  0] ../../lib/util/fault.c:86(fault_report)
Nov 10 21:39:11 runur01 smbd_audit[23768]:   ===============================================================
Nov 10 21:39:11 runur01 smbd_audit[23768]: [2020/11/10 21:39:11.810896,  0] ../../source3/lib/util.c:830(smb_panic_s3)
Nov 10 21:39:11 runur01 smbd_audit[23768]:   PANIC (pid 23768): internal error
Nov 10 21:39:11 runur01 smbd_audit[23768]: [2020/11/10 21:39:11.811758,  0] ../../lib/util/fault.c:222(log_stack_trace)
Nov 10 21:39:11 runur01 smbd_audit[23768]:   BACKTRACE:
Nov 10 21:39:11 runur01 smbd_audit[23768]:    #0 log_stack_trace + 0x35 [ip=0x80129a305] [sp=0x7fffffffc1c0]
Nov 10 21:39:11 runur01 smbd_audit[23768]:    #1 smb_panic_s3 + 0x24 [ip=0x802d4c9b8] [sp=0x7fffffffca90]
Nov 10 21:39:11 runur01 smbd_audit[23768]:    #2 smb_panic + 0x2d [ip=0x80129a532] [sp=0x7fffffffcab0]
Nov 10 21:39:11 runur01 smbd_audit[23768]:    #3 sig_fault + 0x6c [ip=0x80129a7a9] [sp=0x7fffffffcbb0]
Nov 10 21:39:11 runur01 smbd_audit[23768]:    #4 <unknown symbol> [ip=0x801517b70] [sp=0x7fffffffcbc0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #5 <unknown symbol> [ip=0x80151713f] [sp=0x7fffffffcf80]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #6 <unknown symbol> [ip=0x7ffffffff003] [sp=0x7fffffffcff0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #7 sids_to_unixids + 0x25d [ip=0x803a07e59] [sp=0x7fffffffdd00]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #8 create_local_token + 0x2da [ip=0x8035ca9c7] [sp=0x7fffffffdd90]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #9 make_session_info_krb5 + 0x94 [ip=0x8035c359f] [sp=0x7fffffffdfb0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #10 auth3_generate_session_info_pac + 0x2b6 [ip=0x8035c440a] [sp=0x7fffffffe020]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #11 gensec_generate_session_info_pac + 0x70 [ip=0x8088eac09] [sp=0x7fffffffe130]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #12 gensec_gse_session_info + 0x113 [ip=0x80848cd79] [sp=0x7fffffffe190]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #13 gensec_session_info + 0x25 [ip=0x8088e93e0] [sp=0x7fffffffe220]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #14 gensec_child_session_info + 0x12 [ip=0x8088eaf58] [sp=0x7fffffffe270]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #15 gensec_session_info + 0x25 [ip=0x8088e93e0] [sp=0x7fffffffe280]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #16 smbd_smb2_session_setup_gensec_done + 0xa8 [ip=0x8017e0070] [sp=0x7fffffffe2d0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #17 _tevent_req_notify_callback + 0x1b [ip=0x802170a1c] [sp=0x7fffffffe300]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #18 tevent_req_finish + 0x97 [ip=0x802170ac4] [sp=0x7fffffffe310]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #19 _tevent_req_done + 0x11 [ip=0x802170ae0] [sp=0x7fffffffe340]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #20 gensec_update_done + 0x416 [ip=0x8088e9213] [sp=0x7fffffffe350]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #21 _tevent_req_notify_callback + 0x1b [ip=0x802170a1c] [sp=0x7fffffffe390]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #22 tevent_req_finish + 0x97 [ip=0x802170ac4] [sp=0x7fffffffe3a0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #23 _tevent_req_done + 0x11 [ip=0x802170ae0] [sp=0x7fffffffe3d0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #24 gensec_spnego_update_post + 0x153 [ip=0x8088e789a] [sp=0x7fffffffe3e0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #25 gensec_spnego_update_done + 0x92 [ip=0x8088e8442] [sp=0x7fffffffe410]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #26 _tevent_req_notify_callback + 0x1b [ip=0x802170a1c] [sp=0x7fffffffe440]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #27 tevent_req_finish + 0x97 [ip=0x802170ac4] [sp=0x7fffffffe450]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #28 _tevent_req_done + 0x11 [ip=0x802170ae0] [sp=0x7fffffffe480]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #29 gensec_update_done + 0x416 [ip=0x8088e9213] [sp=0x7fffffffe490]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #30 _tevent_req_notify_callback + 0x1b [ip=0x802170a1c] [sp=0x7fffffffe4d0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #31 tevent_req_finish + 0x97 [ip=0x802170ac4] [sp=0x7fffffffe4e0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #32 tevent_req_trigger + 0x29 [ip=0x802170b6f] [sp=0x7fffffffe510]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #33 tevent_common_invoke_immediate_handler + 0x134 [ip=0x8021702cb] [sp=0x7fffffffe520]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #34 tevent_common_loop_immediate + 0x1f [ip=0x8021702ec] [sp=0x7fffffffe570]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #35 poll_event_loop_once + 0x59 [ip=0x802171f2a] [sp=0x7fffffffe580]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #36 _tevent_loop_once + 0x94 [ip=0x80216f67f] [sp=0x7fffffffe5e0]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #37 tevent_common_loop_wait + 0x21 [ip=0x80216f856] [sp=0x7fffffffe610]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #38 _tevent_loop_wait + 0xa [ip=0x80216f8b2] [sp=0x7fffffffe630]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #39 smbd_process + 0x8e7 [ip=0x8017c9ef9] [sp=0x7fffffffe640]
Nov 10 21:39:12 runur01 smbd_audit[23768]:    #40 smbd_accept_connection + 0x1ce [ip=0x102e1ea] [sp=0x7fffffffe6d0]
Nov 10 21:39:13 runur01 smbd_audit[23768]:    #41 tevent_common_invoke_fd_handler + 0x84 [ip=0x80216fea9] [sp=0x7fffffffe7a0]
Nov 10 21:39:13 runur01 smbd_audit[23768]:    #42 poll_event_loop_once + 0x5b4 [ip=0x802172485] [sp=0x7fffffffe7d0]
Nov 10 21:39:13 runur01 smbd_audit[23768]:    #43 _tevent_loop_once + 0x94 [ip=0x80216f67f] [sp=0x7fffffffe830]
Nov 10 21:39:13 runur01 smbd_audit[23768]:    #44 tevent_common_loop_wait + 0x21 [ip=0x80216f856] [sp=0x7fffffffe860]
Nov 10 21:39:13 runur01 smbd_audit[23768]:    #45 _tevent_loop_wait + 0xa [ip=0x80216f8b2] [sp=0x7fffffffe880]
Nov 10 21:39:13 runur01 smbd_audit[23768]:    #46 main + 0x1d1b [ip=0x1030087] [sp=0x7fffffffe890]
Nov 10 21:39:13 runur01 smbd_audit[23768]:    #47 _start + 0x99 [ip=0x10284a9] [sp=0x7fffffffeca0]
Nov 10 21:39:13 runur01 smbd_audit[23768]:    #48 <unknown symbol> [ip=0x801265000] [sp=0x7fffffffecd0]
Nov 10 21:39:13 runur01 smbd_audit[23768]: [2020/11/10 21:39:13.214746,  0] ../../source3/lib/dumpcore.c:310(dump_core)
Nov 10 21:39:13 runur01 smbd_audit[23768]:   unable to change to %N.core
Nov 10 21:39:13 runur01 smbd_audit[23768]:   refusing to dump core