Bug 14930 - core dump vfs_fruit - assert failed: fsp->base_fsp != NULL in fruit_open_meta_netatalk
Summary: core dump vfs_fruit - assert failed: fsp->base_fsp != NULL in fruit_open_meta...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: 4.15.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-13 14:29 UTC by Peter Eriksson
Modified: 2022-01-11 18:49 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 2021-12-13 14:29:36 UTC
(gdb) bt
#0  0x0000000804cb6c2a in thr_kill () from /lib/libc.so.7
#1  0x0000000804cb5084 in raise () from /lib/libc.so.7
#2  0x0000000804c2b279 in abort () from /lib/libc.so.7
#3  0x0000000802e7ed18 in dump_core () at ../../source3/lib/dumpcore.c:338
#4  0x0000000802e8d4f7 in smb_panic_s3 (why=<optimized out>) at ../../source3/lib/util.c:704
#5  0x0000000801d69590 in smb_panic (why=why@entry=0x8126863b0 "assert failed: fsp->base_fsp != NULL")
    at ../../lib/util/fault.c:197
#6  0x000000081267ce68 in fruit_open_meta_netatalk (mode=0, flags=256, fsp=0x810081c60, smb_fname=0x8100fb280, 
    dirfsp=0x8101d8460, handle=0x81011b7c0) at ../../source3/modules/vfs_fruit.c:1476
#7  fruit_open_meta (mode=0, flags=256, fsp=0x810081c60, smb_fname=0x8100fb280, dirfsp=0x8101d8460, handle=0x81011b7c0)
    at ../../source3/modules/vfs_fruit.c:1531
#8  fruit_openat (handle=0x81011b7c0, dirfsp=0x8101d8460, smb_fname=0x8100fb280, fsp=0x810081c60, flags=256, 
    mode=<optimized out>) at ../../source3/modules/vfs_fruit.c:1751
#9  0x0000000801724d2b in smb_vfs_call_openat (handle=<optimized out>, dirfsp=dirfsp@entry=0x8101d8460, 
    smb_fname=smb_fname@entry=0x8100fb280, fsp=fsp@entry=0x810081c60, flags=flags@entry=256, mode=mode@entry=0)
    at ../../source3/smbd/vfs.c:1845
#10 0x0000000812aa3558 in shadow_copy2_openat (handle=0x81011bc20, dirfsp=0x8101d8460, smb_fname_in=0x8100fb280, 
    fsp=0x810081c60, flags=256, mode=<optimized out>) at ../../source3/modules/vfs_shadow_copy2.c:1460
#11 0x0000000801724d2b in smb_vfs_call_openat (handle=<optimized out>, dirfsp=dirfsp@entry=0x8101d8460, 
    smb_fname=<optimized out>, fsp=fsp@entry=0x810081c60, flags=flags@entry=256, mode=mode@entry=0)
    at ../../source3/smbd/vfs.c:1845
#12 0x0000000801711e90 in non_widelink_open (dirfsp=dirfsp@entry=0x8101d8460, fsp=fsp@entry=0x810081c60, 
    smb_fname=smb_fname@entry=0x8100f8880, flags=256, flags@entry=0, mode=mode@entry=0, link_depth=link_depth@entry=0)
    at ../../source3/smbd/open.c:770
#13 0x0000000801714e01 in fd_openat (dirfsp=dirfsp@entry=0x8101d8460, smb_fname=smb_fname@entry=0x8100f8880, 
    fsp=0x810081c60, flags=flags@entry=0, mode=mode@entry=0) at ../../source3/smbd/open.c:914
#14 0x00000008016bc337 in openat_pathref_fsp (dirfsp=0x8101d8460, smb_fname=smb_fname@entry=0x8100f8880)
    at ../../source3/smbd/files.c:510
#15 0x0000000812675789 in ad_convert_finderinfo (smb_fname=0x812d53180, ad=0x8101f0260, handle=0x81011b7c0)
    at ../../source3/lib/adouble.c:1258
#16 ad_convert (handle=handle@entry=0x81011b7c0, smb_fname=0x812d53180, catia_mappings=<optimized out>, 
    flags=<optimized out>) at ../../source3/lib/adouble.c:1475
#17 0x0000000812675f8c in fruit_freaddir_attr (handle=0x81011b7c0, fsp=0x810081860, mem_ctx=0x810083e40, 
    pattr_data=0x7fffffffe138) at ../../source3/modules/vfs_fruit.c:4277
#18 0x00000008017286c1 in smb_vfs_call_freaddir_attr (handle=<optimized out>, fsp=<optimized out>, 
    mem_ctx=mem_ctx@entry=0x810083e40, attr_data=attr_data@entry=0x7fffffffe138) at ../../source3/smbd/vfs.c:2954
#19 0x00000008016f9353 in smbd_marshall_dir_entry (last_entry_off=<synthetic pointer>, end_data=0x814a58b97 "", 
    ppdata=0x810083ea0, base_data=0x814957ba0 "p", do_pad=false, align=8 '\b', space_remaining=1048348, 
    smb_fname=0x8100ab780, fname=0x812cd7cc0 ".DS_Store", mode=34, requires_resume_key=false, check_mangled_names=false, 
    name_list=0x0, info_level=262, flags2=49217, conn=0x8100bfe60, ctx=0x810083e40) at ../../source3/smbd/trans2.c:1789
#20 smbd_dirptr_lanman2_entry (ctx=ctx@entry=0x810083e40, conn=0x8100bfe60, dirptr=0x8124e3360, flags2=<optimized out>,  
   path_mask=<optimized out>, dirtype=<optimized out>, info_level=262, requires_resume_key=0, dont_descend=false, ask_sharemode=true, get_dosmode=true, align=8 '\b', do_pad=false, ppdata=0x810083ea0, base_data=0x814957ba0 "p", end_data=0x814a58b97 "", space_remaining=1048348, _smb_fname=0x7fffffffe2c0, got_exact_match=0x7fffffffe2be, _last_entry_off=0x810083ec4, name_list=0x0, file_id=0x7fffffffe2d0) at ../../source3/smbd/trans2.c:2521
#21 0x00000008017627e1 in smb2_query_directory_next_entry (req=req@entry=0x810083c80) at ../../source3/smbd/smb2_query_directory.c:555
#22 0x0000000801763e5a in smbd_smb2_query_directory_send (in_file_name=<optimized out>, in_output_buffer_length=<optimized out>, in_file_index=<optimized out>, in_flags=<optimized out>, in_file_info_class=<optimized out>, fsp=0x810081660, smb2req=0x812d0ca60, ev=0x8100be060, mem_ctx=0x812d0ca60) at ../../source3/smbd/smb2_query_directory.c:523
#23 smbd_smb2_request_process_query_directory (req=req@entry=0x812d0ca60) at ../../source3/smbd/smb2_query_directory.c:129
#24 0x000000080174da9a in smbd_smb2_request_dispatch (req=req@entry=0x812d0ca60) at ../../source3/smbd/smb2_server.c:3462
#25 0x000000080174dc27 in smbd_smb2_request_dispatch_immediate (ctx=ctx@entry=0x8100be060, im=<optimized out>, im@entry=0x8100bddc0, private_data=private_data@entry=0x812d0ca60) at ../../source3/smbd/smb2_server.c:3812
#26 0x0000000802826d7c in tevent_common_invoke_immediate_handler (im=0x8100bddc0, removed=removed@entry=0x0) at ../../lib/tevent/tevent_immediate.c:190
#27 0x0000000802826da5 in tevent_common_loop_immediate (ev=ev@entry=0x8100be060) at ../../lib/tevent/tevent_immediate.c:236
#28 0x0000000802828ab1 in poll_event_loop_once (ev=0x8100be060, location=<optimized out>) at ../../lib/tevent/tevent_poll.c:617
#29 0x0000000802825de4 in _tevent_loop_once (ev=ev@entry=0x8100be060, location=location@entry=0x801885c18 "../../source3/smbd/process.c:4247") at ../../lib/tevent/tevent.c:790
#30 0x0000000802825fd7 in tevent_common_loop_wait (ev=0x8100be060, location=0x801885c18 "../../source3/smbd/process.c:4247") at ../../lib/tevent/tevent.c:913
#31 0x0000000802826039 in _tevent_loop_wait (ev=ev@entry=0x8100be060, location=location@entry=0x801885c18 "../../source3/smbd/process.c:4247") at ../../lib/tevent/tevent.c:932
#32 0x000000080173b401 in smbd_process (ev_ctx=ev_ctx@entry=0x8100be060, msg_ctx=msg_ctx@entry=0x8100b7140, dce_ctx=dce_ctx@entry=0x8100a7e40, sock_fd=sock_fd@entry=50, interactive=interactive@entry=false) at ../../source3/smbd/process.c:4247
#33 0x000000000102ea77 in smbd_accept_connection (ev=0x8100be060, fde=<optimized out>, flags=<optimized out>, private_data=<optimized out>) at ../../source3/smbd/server.c:1022
#34 0x000000080282682d in tevent_common_invoke_fd_handler (fde=fde@entry=0x8100bb4a0, flags=<optimized out>, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:142
#35 0x000000080282900f in poll_event_loop_poll (tvalp=0x7fffffffe820, ev=0x8100be060) at ../../lib/tevent/tevent_poll.c:569
#36 poll_event_loop_once (ev=0x8100be060, location=<optimized out>) at ../../lib/tevent/tevent_poll.c:626
#37 0x0000000802825de4 in _tevent_loop_once (ev=ev@entry=0x8100be060, location=location@entry=0x1037228 "../../source3/smbd/server.c:1366") at ../../lib/tevent/tevent.c:790
#38 0x0000000802825fd7 in tevent_common_loop_wait (ev=0x8100be060, location=0x1037228 "../../source3/smbd/server.c:1366") at ../../lib/tevent/tevent.c:913
#39 0x0000000802826039 in _tevent_loop_wait (ev=ev@entry=0x8100be060, location=location@entry=0x1037228 "../../source3/smbd/server.c:1366") at ../../lib/tevent/tevent.c:932
#40 0x0000000001030d0b in smbd_parent_loop (parent=0x8100b7680, ev_ctx=0x8100be060) at ../../source3/smbd/server.c:1366
#41 main (argc=<optimized out>, argv=<optimized out>) at ../../source3/smbd/server.c:2191
Comment 1 Jeremy Allison 2022-01-11 18:49:49 UTC
Can you get more information as to what object on the filesystem caused this ? It would be good to know if you can reproduce it.