[Pkg-javascript-devel] Bug#1076350: nodejs: segfault in node when running browserify script on i386 when building node-chai

Jérémy Lal kapouer at melix.org
Wed Apr 16 19:41:27 BST 2025


Package: nodejs
Version: 20.19.0+dfsg-2
Followup-For: Bug #1076350

This is easy to reproduce with node-webfont:

(sid_i386-dchroot)kapouer at barriere:~/node-webfont-11.4.0+dfsg2+~cs35.7.26/svgicons2svgfont$ gdb node
GNU gdb (Debian 16.2-8) 16.2
Copyright (C) 2024 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 node...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.debian.net>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Reading symbols from /home/kapouer/.cache/debuginfod_client/861866aa8241a0208555a0621bd632c5f7eeefb6/debuginfo...
(gdb) run /usr/bin/mocha tests/index.mocha.js
Starting program: /usr/bin/node /usr/bin/mocha tests/index.mocha.js
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xf19b9b40 (LWP 3494785)]
[New Thread 0xf0fffb40 (LWP 3494786)]
[New Thread 0xf07feb40 (LWP 3494787)]
[New Thread 0xefffdb40 (LWP 3494788)]
[New Thread 0xef7fcb40 (LWP 3494789)]
[New Thread 0xeeffbb40 (LWP 3494793)]
[New Thread 0xee7ffb40 (LWP 3494805)]
[New Thread 0xedffeb40 (LWP 3494806)]
[New Thread 0xed7fdb40 (LWP 3494807)]
[New Thread 0xecffcb40 (LWP 3494808)]


  Generating fonts to files
push /home/kapouer/node-webfont-11.4.0+dfsg2+~cs35.7.26/svgicons2svgfont/tests/fixtures/originalicons/mute.svg
push /home/kapouer/node-webfont-11.4.0+dfsg2+~cs35.7.26/svgicons2svgfont/tests/fixtures/originalicons/sound.svg
push /home/kapouer/node-webfont-11.4.0+dfsg2+~cs35.7.26/svgicons2svgfont/tests/fixtures/originalicons/speaker.svg

Thread 1 "node" received signal SIGSEGV, Segmentation fault.
0xf567df57 in std::default_delete<node::fs::FSContinuationData>::operator() () at /usr/include/c++/14/bits/unique_ptr.h:93
93		delete __ptr;
(gdb) bt
#0  0xf567df57 in std::default_delete<node::fs::FSContinuationData>::operator() () at /usr/include/c++/14/bits/unique_ptr.h:93
#1  std::unique_ptr<node::fs::FSContinuationData, std::default_delete<node::fs::FSContinuationData> >::~unique_ptr ()
    at /usr/include/c++/14/bits/unique_ptr.h:399
#2  node::fs::FSReqBase::~FSReqBase () at ../src/node_file.cc:224
#3  0xf569ae5d in node::fs::FSReqCallback::~FSReqCallback () at ../src/node_file.h:203
#4  node::fs::FSReqCallback::~FSReqCallback () at ../src/node_file.h:203
#5  0xf5669de9 in node::BaseObjectPtrImpl<node::ReqWrap<uv_fs_s>, false>::~BaseObjectPtrImpl () at ../src/base_object-inl.h:186
#6  node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper () at ../src/req_wrap-inl.h:127
#7  0xf4a6ffe0 in uv__work_done (handle=0xf4a9f6a0 <default_loop_struct+96>) at ./src/threadpool.c:330
#8  0xf4a74129 in uv__async_io (loop=0xf4a9f640 <default_loop_struct>, w=<optimized out>, events=<optimized out>) at ./src/unix/async.c:208
#9  0xf4a8a3db in uv__io_poll (loop=<optimized out>, timeout=<optimized out>) at ./src/unix/linux.c:1571
#10 0xf4a75041 in uv_run (loop=0xf4a9f640 <default_loop_struct>, mode=UV_RUN_DEFAULT) at ./src/unix/core.c:460
#11 0xf556b1d7 in node::SpinEventLoopInternal () at ../src/api/embed_helpers.cc:41
#12 0xf56caf09 in node::NodeMainInstance::Run () at ../src/node_main_instance.cc:111
#13 node::NodeMainInstance::Run () at ../src/node_main_instance.cc:104
#14 0xf56cb323 in node::NodeMainInstance::Run () at ../src/node_main_instance.cc:100
#15 0xf56268ef in StartInternal () at ../src/node.cc:1520
#16 node::Start () at ../src/node.cc:1527
#17 0x56556087 in main () at ../src/node_main.cc:97



-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.22-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nodejs depends on:
ii  libc6          2.41-7
ii  libnode115     20.19.0+dfsg-2
ii  node-corepack  0.24.0-4

Versions of packages nodejs recommends:
ii  ca-certificates  20241223
ii  nodejs-doc       22.12.0+dfsg-3

Versions of packages nodejs suggests:
ii  npm  9.2.0~ds1-3

-- no debconf information



More information about the Pkg-javascript-devel mailing list