<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 18 juil. 2024 à 17:03, Сергей Сёмин <<a href="mailto:syominsergey@gmail.com">syominsergey@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I built source package nodejs_18.19.0+dfsg-6~deb12u2 in Debian<br>
Bookworm i386 and installed result deb packages into system.<br>
Packages with dbgsym were also installed.<br>
Then I tried to reproduce segfault with simple way explained earlier<br>
and now I see better more informative backtrace with mentioned source<br>
files because of available debug symbols:<br>
<br>
root@debian-bookworm-i386:~/browserify_helloworld# coredumpctl -1 debug<br>
           PID: 22462 (node)<br>
           UID: 0 (root)<br>
           GID: 0 (root)<br>
        Signal: 11 (SEGV)<br>
     Timestamp: Thu 2024-07-18 17:42:19 MSK (43s ago)<br>
  Command Line: node /usr/bin/browserify main.js -o bundle.js<br>
    Executable: /usr/bin/node<br>
 Control Group: /user.slice/user-0.slice/session-1.scope<br>
          Unit: session-1.scope<br>
         Slice: user-0.slice<br>
       Session: 1<br>
     Owner UID: 0 (root)<br>
       Boot ID: aabb14f30d9d467d9389c47f962245e5<br>
    Machine ID: bb88a0eb919c40a690e344da5d477cfb<br>
      Hostname: debian-bookworm-i386<br>
       Storage:<br>
/var/lib/systemd/coredump/core.node.0.aabb14f30d9d467d9389c47f962245e5.22462.1721313739000000.zst<br>
(present)<br>
  Size on Disk: 4.0M<br>
       Message: Process 22462 (node) of user 0 dumped core.<br>
<br>
                Stack trace of thread 22462:<br>
                #0  0x00000000b5858507<br>
_ZNKSt14default_deleteIN4node2fs18FSContinuationDataEEclEPS2_<br>
(libnode.so.108 + 0x858507)<br>
                #1  0x00000000b5871a4d _ZN4node2fs13FSReqCallbackD4Ev<br>
(libnode.so.108 + 0x871a4d)<br>
                #2  0x00000000b584bc52<br>
_ZN4node17BaseObjectPtrImplINS_7ReqWrapI7uv_fs_sEELb0EED4Ev<br>
(libnode.so.108 + 0x84bc52)<br>
                #3  0x00000000b7c67620 n/a (libuv.so.1 + 0x9620)<br>
                #4  0x00000000b7c6b24a n/a (libuv.so.1 + 0xd24a)<br>
                #5  0x00000000b7c8099b n/a (libuv.so.1 + 0x2299b)<br>
                #6  0x00000000b7c6bc83 uv_run (libuv.so.1 + 0xdc83)<br>
                #7  0x00000000b577424a<br>
_ZN4node13SpinEventLoopEPNS_11EnvironmentE (libnode.so.108 + 0x77424a)<br>
                #8  0x00000000b58a185c<br>
_ZN4node16NodeMainInstance3RunEPiPNS_11EnvironmentE (libnode.so.108 +<br>
0x8a185c)<br>
                #9  0x00000000b58a1cb9<br>
_ZN4node16NodeMainInstance3RunEv (libnode.so.108 + 0x8a1cb9)<br>
                #10 0x00000000b5807951<br>
_ZN4node22LoadSnapshotDataAndRunEPPKNS_12SnapshotDataEPKNS_20InitializationResultE<br>
(libnode.so.108 + 0x807951)<br>
                #11 0x00000000b580b70e _ZN4node5StartEiPPc<br>
(libnode.so.108 + 0x80b70e)<br>
                #12 0x0000000000439087 main (node + 0x1087)<br>
                #13 0x00000000b7cd42d5 __libc_start_call_main<br>
(libc.so.6 + 0x232d5)<br>
                #14 0x00000000b7cd4398 __libc_start_main_impl<br>
(libc.so.6 + 0x23398)<br>
                #15 0x00000000004390c7 _start (node + 0x10c7)<br>
<br>
                Stack trace of thread 22465:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d3880e __pthread_cond_wait_common<br>
(libc.so.6 + 0x8780e)<br>
                #4  0x00000000b7c7a69c uv_cond_wait (libuv.so.1 + 0x1c69c)<br>
                #5  0x00000000b58ce222<br>
_ZN4node16LibuvMutexTraits9cond_waitEP14pthread_cond_tP15pthread_mutex_t<br>
(libnode.so.108 + 0x8ce222)<br>
                #6  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #7  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22464:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d3880e __pthread_cond_wait_common<br>
(libc.so.6 + 0x8780e)<br>
                #4  0x00000000b7c7a69c uv_cond_wait (libuv.so.1 + 0x1c69c)<br>
                #5  0x00000000b58ce222<br>
_ZN4node16LibuvMutexTraits9cond_waitEP14pthread_cond_tP15pthread_mutex_t<br>
(libnode.so.108 + 0x8ce222)<br>
                #6  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #7  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22463:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dd2bc3 epoll_wait (libc.so.6 + 0x121bc3)<br>
                #2  0x00000000b7c80c8e n/a (libuv.so.1 + 0x22c8e)<br>
                #3  0x00000000b7c6bc83 uv_run (libuv.so.1 + 0xdc83)<br>
                #4  0x00000000b58d3378<br>
_ZN4node23WorkerThreadsTaskRunner20DelayedTaskScheduler3RunEv<br>
(libnode.so.108 + 0x8d3378)<br>
                #5  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #6  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22470:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d3880e __pthread_cond_wait_common<br>
(libc.so.6 + 0x8780e)<br>
                #4  0x00000000b7c7a69c uv_cond_wait (libuv.so.1 + 0x1c69c)<br>
                #5  0x00000000b7c66f5d n/a (libuv.so.1 + 0x8f5d)<br>
                #6  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #7  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22466:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d3880e __pthread_cond_wait_common<br>
(libc.so.6 + 0x8780e)<br>
                #4  0x00000000b7c7a69c uv_cond_wait (libuv.so.1 + 0x1c69c)<br>
                #5  0x00000000b58ce222<br>
_ZN4node16LibuvMutexTraits9cond_waitEP14pthread_cond_tP15pthread_mutex_t<br>
(libnode.so.108 + 0x8ce222)<br>
                #6  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #7  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22468:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d41912 do_futex_wait (libc.so.6 + 0x90912)<br>
                #4  0x00000000b7d419bb __new_sem_wait_slow64<br>
(libc.so.6 + 0x909bb)<br>
                #5  0x00000000b7c7a72b uv_sem_wait (libuv.so.1 + 0x1c72b)<br>
                #6  0x00000000b597f6e3 StartIoThreadMain<br>
(libnode.so.108 + 0x97f6e3)<br>
                #7  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #8  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22469:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d3880e __pthread_cond_wait_common<br>
(libc.so.6 + 0x8780e)<br>
                #4  0x00000000b7c7a69c uv_cond_wait (libuv.so.1 + 0x1c69c)<br>
                #5  0x00000000b7c66f5d n/a (libuv.so.1 + 0x8f5d)<br>
                #6  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #7  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22467:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d3880e __pthread_cond_wait_common<br>
(libc.so.6 + 0x8780e)<br>
                #4  0x00000000b7c7a69c uv_cond_wait (libuv.so.1 + 0x1c69c)<br>
                #5  0x00000000b58ce222<br>
_ZN4node16LibuvMutexTraits9cond_waitEP14pthread_cond_tP15pthread_mutex_t<br>
(libnode.so.108 + 0x8ce222)<br>
                #6  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #7  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22472:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d3880e __pthread_cond_wait_common<br>
(libc.so.6 + 0x8780e)<br>
                #4  0x00000000b7c7a69c uv_cond_wait (libuv.so.1 + 0x1c69c)<br>
                #5  0x00000000b7c66f5d n/a (libuv.so.1 + 0x8f5d)<br>
                #6  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #7  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
<br>
                Stack trace of thread 22471:<br>
                #0  0x00000000b7ee3559 __kernel_vsyscall<br>
(linux-gate.so.1 + 0x559)<br>
                #1  0x00000000b7dc6bd2 __libc_do_syscall (libc.so.6 + 0x115bd2)<br>
                #2  0x00000000b7d355b5 __futex_abstimed_wait_common32<br>
(libc.so.6 + 0x845b5)<br>
                #3  0x00000000b7d3880e __pthread_cond_wait_common<br>
(libc.so.6 + 0x8780e)<br>
                #4  0x00000000b7c7a69c uv_cond_wait (libuv.so.1 + 0x1c69c)<br>
                #5  0x00000000b7c66f5d n/a (libuv.so.1 + 0x8f5d)<br>
                #6  0x00000000b7d3935d start_thread (libc.so.6 + 0x8835d)<br>
                #7  0x00000000b7dd4688 __clone3 (libc.so.6 + 0x123688)<br>
                ELF object binary architecture: Intel 80386<br>
<br>
GNU gdb (Debian 13.1-3) 13.1<br>
Copyright (C) 2023 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" rel="noreferrer" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.<br>
Type "show copying" and "show warranty" for details.<br>
This GDB was configured as "i686-linux-gnu".<br>
Type "show configuration" for configuration details.<br>
For bug reporting instructions, please see:<br>
<<a href="https://www.gnu.org/software/gdb/bugs/" rel="noreferrer" target="_blank">https://www.gnu.org/software/gdb/bugs/</a>>.<br>
Find the GDB manual and other documentation resources online at:<br>
    <<a href="http://www.gnu.org/software/gdb/documentation/" rel="noreferrer" target="_blank">http://www.gnu.org/software/gdb/documentation/</a>>.<br>
<br>
For help, type "help".<br>
Type "apropos word" to search for commands related to "word"...<br>
Reading symbols from /usr/bin/node...<br>
Reading symbols from<br>
/usr/lib/debug/.build-id/85/5948c7d2e9357505bc0caccfa1291cdc32930a.debug...<br>
[New LWP 22462]<br>
[New LWP 22465]<br>
[New LWP 22464]<br>
[New LWP 22463]<br>
[New LWP 22470]<br>
[New LWP 22466]<br>
[New LWP 22468]<br>
[New LWP 22469]<br>
[New LWP 22467]<br>
[New LWP 22472]<br>
[New LWP 22471]<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".<br>
Core was generated by `node /usr/bin/browserify main.js -o bundle.js'.<br>
Program terminated with signal SIGSEGV, Segmentation fault.<br>
#0  0xb5858507 in<br>
std::default_delete<node::fs::FSContinuationData>::operator() () at<br>
/usr/include/c++/12/bits/unique_ptr.h:95<br>
95              delete __ptr;<br>
[Current thread is 1 (Thread 0xb4cef780 (LWP 22462))]<br>
(gdb) bt<br>
#0  0xb5858507 in<br>
std::default_delete<node::fs::FSContinuationData>::operator() () at<br>
/usr/include/c++/12/bits/unique_ptr.h:95<br>
#1  std::unique_ptr<node::fs::FSContinuationData,<br>
std::default_delete<node::fs::FSContinuationData> >::~unique_ptr () at<br>
/usr/include/c++/12/bits/unique_ptr.h:396<br>
#2  node::fs::FSReqBase::~FSReqBase () at ../src/node_file.cc:224<br>
#3  0xb5871a4d in node::fs::FSReqCallback::~FSReqCallback () at<br>
../src/node_file.h:175<br>
#4  node::fs::FSReqCallback::~FSReqCallback () at ../src/node_file.h:175<br></blockquote><div><br></div><div><br></div><div>This is something somewhat similar to <a href="https://bugs.debian.org/922075#20">https://bugs.debian.org/922075#20</a> </div></div></div>