Segmentfault 0 - s3fs 在 CentOS 9 上崩溃
<!-- -------------------------------------------------------------------------- My application uses PHP 8.2.31 and Apache. I create a folder in the S3 mount point, write a file, and then delete the folder, causing the service to crash. I identified that my application was not calling fclose before rmdir. I fixed the application, but I thought it would still be worth reporting that s3fs crashes in this situation. LOG: May 14 09:29:26 fileserver kernel: s3fs[11890]: segfault at 0 ip 0000558f4cb22b55 sp 00007fe3f9ffa7c0 error 4 in s3fs[558f4cb10000+96000] likely on CPU 22 (core 6, socket 1) May 14 09:29:26 fileserver kernel: Code: 89 84 24 c8 00 00 00 31 c0 0f b6 05 2d 28 0b 00 48 89 5c 24 20 48 c7 44 24 28 00 00 00 00 83 e0 0f c6 44 24 30 00 3c 0f 74 43 <0f> b6 07 83 f8 2f 75 76 44 0f b6 67 01 45 85 e4 75 6c 48 8b 84 24 May 14 09:29:26 fileserver systemd[1]: Created slice Slice /system/systemd-coredump. May 14 09:29:26 fileserver systemd[1]: Started Process Core Dump (PID 11909/UID 0). May 14 09:29:27 fileserver systemd-coredump[11911]: Process 2068 (s3fs) of user 0 dumped core. #012#012Stack trace of thread 11890: #012#0 0x0000558f4cb22b55 _ZL26check_parent_object_accessPKci.lto_priv.0 (s3fs + 0x19b55) #012#1 0x0000558f4cb31f2d _ZL10s3fs_flushPKcP14fuse_file_info.lto_priv.0 (s3fs + 0x28f2d) #012#2 0x00007fe405908594 fuse_flush_common (libfuse3.so.3 + 0xf594) #012#3 0x00007fe40590a384 fuse_lib_flush (libfuse3.so.3 + 0x11384) #012#4 0x00007fe40590b361 do_flush.lto_priv.0 (libfuse3.so.3 + 0x12361) #012#5 0x00007fe405917f5f fuse_session_process_buf_int (libfuse3.so.3 + 0x1ef5f) #012#6 0x00007fe405910497 fuse_do_work (libfuse3.so.3 + 0x17497) #012#7 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#8 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2070: #012#0 0x00007fe4048ff2bc read (libc.so.6 + 0xff2bc) #012#1 0x00007fe405913bd2 fuse_session_receive_buf_int (libfuse3.so.3 + 0x1abd2) #012#2 0x00007fe405910424 fuse_do_work (libfuse3.so.3 + 0x17424) #012#3 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#4 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2072: #012#0 0x00007fe4048883da __futex_abstimed_wait_common (libc.so.6 + 0x883da) #012#1 0x00007fe404893538 __new_sem_wait_slow64.constprop.0 (libc.so.6 + 0x93538) #012#2 0x0000558f4cb93492 _ZN13ThreadPoolMan6WorkerEPS_St7promiseIiE (s3fs + 0x8a492) #012#3 0x0000558f4cb8e51e _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvP13ThreadPoolManSt7promiseIiEES4_S6_EEEEE6_M_runEv (s3fs + 0x8551e) #012#4 0x00007fe404cdbae4 execute_native_thread_routine (libstdc++.so.6 + 0xdbae4) #012#5 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#6 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2069: #012#0 0x00007fe4048ff2bc read (libc.so.6 + 0xff2bc) #012#1 0x00007fe405913bd2 fuse_session_receive_buf_int (libfuse3.so.3 + 0x1abd2) #012#2 0x00007fe405910424 fuse_do_work (libfuse3.so.3 + 0x17424) #012#3 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#4 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2071: #012#0 0x00007fe4048883da __futex_abstimed_wait_common (libc.so.6 + 0x883da) #012#1 0x00007fe404893538 __new_sem_wait_slow64.constprop.0 (libc.so.6 + 0x93538) #012#2 0x0000558f4cb93492 _ZN13ThreadPoolMan6WorkerEPS_St7promiseIiE (s3fs + 0x8a492) #012#3 0x0000558f4cb8e51e _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvP13ThreadPoolManSt7promiseIiEES4_S6_EEEEE6_M_runEv (s3fs + 0x8551e) #012#4 0x00007fe404cdbae4 execute_native_thread_routine (libstdc++.so.6 + 0xdbae4) #012#5 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#6 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2073: #012#0 0x00007fe4048883da __futex_abstimed_wait_common (libc.so.6 + 0x883da) #012#1 0x00007fe404893538 __new_sem_wait_slow64.constprop.0 (libc.so.6 + 0x93538) #012#2 0x0000558f4cb93492 _ZN13ThreadPoolMan6WorkerEPS_St7promiseIiE (s3fs + 0x8a492) #012#3 0x0000558f4cb8e51e _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvP13ThreadPoolManSt7promiseIiEES4_S6_EEEEE6_M_runEv (s3fs + 0x8551e) #012#4 0x00007fe404cdbae4 execute_native_thread_routine (libstdc++.so.6 + 0xdbae4) #012#5 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#6 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2074: #012#0 0x00007fe4048883da __futex_abstimed_wait_common (libc.so.6 + 0x883da) #012#1 0x00007fe404893538 __new_sem_wait_slow64.constprop.0 (libc.so.6 + 0x93538) #012#2 0x0000558f4cb93492 _ZN13ThreadPoolMan6WorkerEPS_St7promiseIiE (s3fs + 0x8a492) #012#3 0x0000558f4cb8e51e _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvP13ThreadPoolManSt7promiseIiEES4_S6_EEEEE6_M_runEv (s3fs + 0x8551e) #012#4 0x00007fe404cdbae4 execute_native_thread_routine (libstdc++.so.6 + 0xdbae4) #012#5 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#6 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2075: #012#0 0x00007fe4048883da __futex_abstimed_wait_common (libc.so.6 + 0x883da) #012#1 0x00007fe404893538 __new_sem_wait_slow64.constprop.0 (libc.so.6 + 0x93538) #012#2 0x0000558f4cb93492 _ZN13ThreadPoolMan6WorkerEPS_St7promiseIiE (s3fs + 0x8a492) #012#3 0x0000558f4cb8e51e _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvP13ThreadPoolManSt7promiseIiEES4_S6_EEEEE6_M_runEv (s3fs + 0x8551e) #012#4 0x00007fe404cdbae4 execute_native_thread_routine (libstdc++.so.6 + 0xdbae4) #012#5 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#6 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2076: #012#0 0x00007fe4048883da __futex_abstimed_wait_common (libc.so.6 + 0x883da) #012#1 0x00007fe404893538 __new_sem_wait_slow64.constprop.0 (libc.so.6 + 0x93538) #012#2 0x0000558f4cb93492 _ZN13ThreadPoolMan6WorkerEPS_St7promiseIiE (s3fs + 0x8a492) #012#3 0x0000558f4cb8e51e _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvP13ThreadPoolManSt7promiseIiEES4_S6_EEEEE6_M_runEv (s3fs + 0x8551e) #012#4 0x00007fe404cdbae4 execute_native_thread_routine (libstdc++.so.6 + 0xdbae4) #012#5 0x00007fe40488b3f9 start_thread (libc.so.6 + 0x8b3f9) #012#6 0x00007fe4049105d0 __clone3 (libc.so.6 + 0x1105d0) #012#012Stack trace of thread 2077: #012#0 0x00007fe4048883da __futex_abstimed_wait_common (libc.so.6 + 0x883da) #012#1 0x00007fe404893538 __new_sem_wait_slow64.constprop.0 (libc.so.6 + 0x93538) #012#2 0x0000558f4cb93492 _ZN13ThreadPoolMan6WorkerEPS_St7promiseIiE (s3fs + 0x8a492) #012#3 0x0000558f4cb8e51e _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFvP13ThreadPoolManSt7promiseIiEES4_S6_EEEEE6_M_runEv (s3fs + 0x8551e) #012#4 0x00007fe404cdbae4 execute_native_thread_routine (libstdc++.so.6 + 0xdbae4) #012#5
内容来源: s3fs-fuse/s3fs-fuse