> This is something somewhat similar to https://bugs.debian.org/922075#20
Jérémy, thank you for the link! I'll try to read that thread later. It will take some time. And now just for info I want to share detailed backtrace with pointers to sources at all frames of backtrace (not only in nodejs but also in libuv1). To do this I built from source in Debian Bookworm i386 these packages: - nodejs_18.19.0+dfsg-6~deb12u2 - libuv1_1.44.2-1+deb12u1 I built them with command: DEB_BUILD_OPTIONS='nostrip noopt debug' dpkg-buildpackage -b -uc -us And then installed all resulting deb packages. Here is listing of backtrace: Program terminated with signal SIGSEGV, Segmentation fault. #0 0xb5858507 in std::default_delete<node::fs::FSContinuationData>::operator() () at /usr/include/c++/12/bits/unique_ptr.h:95 95 delete __ptr; [Current thread is 1 (Thread 0xb4d21780 (LWP 26841))] (gdb) bt #0 0xb5858507 in std::default_delete<node::fs::FSContinuationData>::operator() () at /usr/include/c++/12/bits/unique_ptr.h:95 #1 std::unique_ptr<node::fs::FSContinuationData, std::default_delete<node::fs::FSContinuationData> >::~unique_ptr () at /usr/include/c++/12/bits/unique_ptr.h:396 #2 node::fs::FSReqBase::~FSReqBase () at ../src/node_file.cc:224 #3 0xb5871a4d in node::fs::FSReqCallback::~FSReqCallback () at ../src/node_file.h:175 #4 node::fs::FSReqCallback::~FSReqCallback () at ../src/node_file.h:175 #5 0xb584bc52 in node::BaseObjectPtrImpl<node::ReqWrap<uv_fs_s>, false>::~BaseObjectPtrImpl () at ../src/base_object-inl.h:178 #6 node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper () at ../src/req_wrap-inl.h:127 #7 0xb7ca66ea in uv__fs_done (w=0x1bd2ed8, status=0) at ./src/unix/fs.c:1791 #8 0xb7c9bcab in uv__work_done (handle=0xb7cc9200 <default_loop_struct+96>) at ./src/threadpool.c:318 #9 0xb7ca0a3a in uv__async_io (loop=0xb7cc91a0 <default_loop_struct>, w=0xb7cc9290 <default_loop_struct+240>, events=1) at ./src/unix/async.c:163 #10 0xb7cbc570 in uv__io_poll (loop=0xb7cc91a0 <default_loop_struct>, timeout=8033) at ./src/unix/epoll.c:374 #11 0xb7ca156c in uv_run (loop=0xb7cc91a0 <default_loop_struct>, mode=UV_RUN_DEFAULT) at ./src/unix/core.c:406 #12 0xb577424a in node::SpinEventLoop () at ../src/api/embed_helpers.cc:38 #13 0xb58a185c in node::NodeMainInstance::Run () at ../src/node_main_instance.cc:130 #14 node::NodeMainInstance::Run () at ../src/node_main_instance.cc:126 #15 0xb58a1cb9 in node::NodeMainInstance::Run () at ../src/node_main_instance.cc:122 #16 0xb5807951 in node::LoadSnapshotDataAndRun () at ../src/node.cc:1220 #17 0xb580b70e in node::Start () at ../src/node.cc:1269 #18 0x004ea087 in main () at ../src/node_main.cc:93 Full listing of command "coredumpctl -1 debug" is available in the attached file.
user@debian-bookworm-i386:~/browserify_helloworld$ coredumpctl -1 debug Hint: You are currently not seeing messages from other users and the system. Users in groups 'adm', 'systemd-journal' can see all messages. Pass -q to turn off this notice. PID: 26841 (node) UID: 1000 (user) GID: 1000 (user) Signal: 11 (SEGV) Timestamp: Fri 2024-07-19 10:56:40 MSK (34s ago) Command Line: node /usr/bin/browserify main.js -o bundle.js Executable: /usr/bin/node Control Group: /user.slice/user-1000.slice/session-3.scope Unit: session-3.scope Slice: user-1000.slice Session: 3 Owner UID: 1000 (user) Boot ID: 2f98e4ba179e45529c8da569ac7a2b90 Machine ID: bb88a0eb919c40a690e344da5d477cfb Hostname: debian-bookworm-i386 Storage: /var/lib/systemd/coredump/core.node.1000.2f98e4ba179e45529c8da569ac7a2b90.26841.1721375800000000.zst (present) Size on Disk: 4.1M Message: Process 26841 (node) of user 1000 dumped core. Stack trace of thread 26841: #0 0x00000000b5858507 _ZNKSt14default_deleteIN4node2fs18FSContinuationDataEEclEPS2_ (libnode.so.108 + 0x858507) #1 0x00000000b5871a4d _ZN4node2fs13FSReqCallbackD4Ev (libnode.so.108 + 0x871a4d) #2 0x00000000b584bc52 _ZN4node17BaseObjectPtrImplINS_7ReqWrapI7uv_fs_sEELb0EED4Ev (libnode.so.108 + 0x84bc52) #3 0x00000000b7ca66ea uv__fs_done (libuv.so.1 + 0x146ea) #4 0x00000000b7c9bcab uv__work_done (libuv.so.1 + 0x9cab) #5 0x00000000b7ca0a3a uv__async_io (libuv.so.1 + 0xea3a) #6 0x00000000b7cbc570 uv__io_poll (libuv.so.1 + 0x2a570) #7 0x00000000b7ca156c uv_run (libuv.so.1 + 0xf56c) #8 0x00000000b577424a _ZN4node13SpinEventLoopEPNS_11EnvironmentE (libnode.so.108 + 0x77424a) #9 0x00000000b58a185c _ZN4node16NodeMainInstance3RunEPiPNS_11EnvironmentE (libnode.so.108 + 0x8a185c) #10 0x00000000b58a1cb9 _ZN4node16NodeMainInstance3RunEv (libnode.so.108 + 0x8a1cb9) #11 0x00000000b5807951 _ZN4node22LoadSnapshotDataAndRunEPPKNS_12SnapshotDataEPKNS_20InitializationResultE (libnode.so.108 + 0x807951) #12 0x00000000b580b70e _ZN4node5StartEiPPc (libnode.so.108 + 0x80b70e) #13 0x00000000004ea087 main (node + 0x1087) #14 0x00000000b7d0a2d5 __libc_start_call_main (libc.so.6 + 0x232d5) #15 0x00000000b7d0a398 __libc_start_main_impl (libc.so.6 + 0x23398) #16 0x00000000004ea0c7 _start (node + 0x10c7) Stack trace of thread 26844: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d6e80e __pthread_cond_wait_common (libc.so.6 + 0x8780e) #4 0x00000000b7cb433d uv_cond_wait (libuv.so.1 + 0x2233d) #5 0x00000000b58ce222 _ZN4node16LibuvMutexTraits9cond_waitEP14pthread_cond_tP15pthread_mutex_t (libnode.so.108 + 0x8ce222) #6 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #7 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26846: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d6e80e __pthread_cond_wait_common (libc.so.6 + 0x8780e) #4 0x00000000b7cb433d uv_cond_wait (libuv.so.1 + 0x2233d) #5 0x00000000b58ce222 _ZN4node16LibuvMutexTraits9cond_waitEP14pthread_cond_tP15pthread_mutex_t (libnode.so.108 + 0x8ce222) #6 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #7 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26850: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d6e80e __pthread_cond_wait_common (libc.so.6 + 0x8780e) #4 0x00000000b7cb433d uv_cond_wait (libuv.so.1 + 0x2233d) #5 0x00000000b7c9b298 worker (libuv.so.1 + 0x9298) #6 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #7 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26842: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7e08bc3 epoll_wait (libc.so.6 + 0x121bc3) #2 0x00000000b7cbc1a9 uv__io_poll (libuv.so.1 + 0x2a1a9) #3 0x00000000b7ca156c uv_run (libuv.so.1 + 0xf56c) #4 0x00000000b58d3378 _ZN4node23WorkerThreadsTaskRunner20DelayedTaskScheduler3RunEv (libnode.so.108 + 0x8d3378) #5 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #6 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26851: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d6e80e __pthread_cond_wait_common (libc.so.6 + 0x8780e) #4 0x00000000b7cb433d uv_cond_wait (libuv.so.1 + 0x2233d) #5 0x00000000b7c9b298 worker (libuv.so.1 + 0x9298) #6 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #7 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26848: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d6e80e __pthread_cond_wait_common (libc.so.6 + 0x8780e) #4 0x00000000b7cb433d uv_cond_wait (libuv.so.1 + 0x2233d) #5 0x00000000b7c9b298 worker (libuv.so.1 + 0x9298) #6 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #7 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26845: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d6e80e __pthread_cond_wait_common (libc.so.6 + 0x8780e) #4 0x00000000b7cb433d uv_cond_wait (libuv.so.1 + 0x2233d) #5 0x00000000b58ce222 _ZN4node16LibuvMutexTraits9cond_waitEP14pthread_cond_tP15pthread_mutex_t (libnode.so.108 + 0x8ce222) #6 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #7 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26843: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d6e80e __pthread_cond_wait_common (libc.so.6 + 0x8780e) #4 0x00000000b7cb433d uv_cond_wait (libuv.so.1 + 0x2233d) #5 0x00000000b58ce222 _ZN4node16LibuvMutexTraits9cond_waitEP14pthread_cond_tP15pthread_mutex_t (libnode.so.108 + 0x8ce222) #6 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #7 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26847: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d77912 do_futex_wait (libc.so.6 + 0x90912) #4 0x00000000b7d779bb __new_sem_wait_slow64 (libc.so.6 + 0x909bb) #5 0x00000000b7cb3fec uv__sem_wait (libuv.so.1 + 0x21fec) #6 0x00000000b7cb417b uv_sem_wait (libuv.so.1 + 0x2217b) #7 0x00000000b597f6e3 StartIoThreadMain (libnode.so.108 + 0x97f6e3) #8 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #9 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) Stack trace of thread 26849: #0 0x00000000b7f19559 __kernel_vsyscall (linux-gate.so.1 + 0x559) #1 0x00000000b7dfcbd2 __libc_do_syscall (libc.so.6 + 0x115bd2) #2 0x00000000b7d6b5b5 __futex_abstimed_wait_common32 (libc.so.6 + 0x845b5) #3 0x00000000b7d6e80e __pthread_cond_wait_common (libc.so.6 + 0x8780e) #4 0x00000000b7cb433d uv_cond_wait (libuv.so.1 + 0x2233d) #5 0x00000000b7c9b298 worker (libuv.so.1 + 0x9298) #6 0x00000000b7d6f35d start_thread (libc.so.6 + 0x8835d) #7 0x00000000b7e0a688 __clone3 (libc.so.6 + 0x123688) ELF object binary architecture: Intel 80386 GNU gdb (Debian 13.1-3) 13.1 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/node... [New LWP 26841] [New LWP 26844] [New LWP 26846] [New LWP 26850] [New LWP 26842] [New LWP 26851] [New LWP 26848] [New LWP 26845] [New LWP 26843] [New LWP 26847] [New LWP 26849] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". Core was generated by `node /usr/bin/browserify main.js -o bundle.js'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0xb5858507 in std::default_delete<node::fs::FSContinuationData>::operator() () at /usr/include/c++/12/bits/unique_ptr.h:95 95 delete __ptr; [Current thread is 1 (Thread 0xb4d21780 (LWP 26841))] (gdb) bt #0 0xb5858507 in std::default_delete<node::fs::FSContinuationData>::operator() () at /usr/include/c++/12/bits/unique_ptr.h:95 #1 std::unique_ptr<node::fs::FSContinuationData, std::default_delete<node::fs::FSContinuationData> >::~unique_ptr () at /usr/include/c++/12/bits/unique_ptr.h:396 #2 node::fs::FSReqBase::~FSReqBase () at ../src/node_file.cc:224 #3 0xb5871a4d in node::fs::FSReqCallback::~FSReqCallback () at ../src/node_file.h:175 #4 node::fs::FSReqCallback::~FSReqCallback () at ../src/node_file.h:175 #5 0xb584bc52 in node::BaseObjectPtrImpl<node::ReqWrap<uv_fs_s>, false>::~BaseObjectPtrImpl () at ../src/base_object-inl.h:178 #6 node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper () at ../src/req_wrap-inl.h:127 #7 0xb7ca66ea in uv__fs_done (w=0x1bd2ed8, status=0) at ./src/unix/fs.c:1791 #8 0xb7c9bcab in uv__work_done (handle=0xb7cc9200 <default_loop_struct+96>) at ./src/threadpool.c:318 #9 0xb7ca0a3a in uv__async_io (loop=0xb7cc91a0 <default_loop_struct>, w=0xb7cc9290 <default_loop_struct+240>, events=1) at ./src/unix/async.c:163 #10 0xb7cbc570 in uv__io_poll (loop=0xb7cc91a0 <default_loop_struct>, timeout=8033) at ./src/unix/epoll.c:374 #11 0xb7ca156c in uv_run (loop=0xb7cc91a0 <default_loop_struct>, mode=UV_RUN_DEFAULT) at ./src/unix/core.c:406 #12 0xb577424a in node::SpinEventLoop () at ../src/api/embed_helpers.cc:38 #13 0xb58a185c in node::NodeMainInstance::Run () at ../src/node_main_instance.cc:130 #14 node::NodeMainInstance::Run () at ../src/node_main_instance.cc:126 #15 0xb58a1cb9 in node::NodeMainInstance::Run () at ../src/node_main_instance.cc:122 #16 0xb5807951 in node::LoadSnapshotDataAndRun () at ../src/node.cc:1220 #17 0xb580b70e in node::Start () at ../src/node.cc:1269 #18 0x004ea087 in main () at ../src/node_main.cc:93 (gdb) quit