Skip to content

Conversation

@shibd
Copy link
Member

@shibd shibd commented Oct 16, 2025

Motivation

Test 3.8.0-candidate-2

https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-cpp/pulsar-client-cpp-3.8.0-candidate-2/

Modifications

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

@shibd shibd marked this pull request as draft October 16, 2025 07:15
@shibd
Copy link
Member Author

shibd commented Oct 20, 2025

Failed test:

@shibd ➜ /workspaces/pulsar-client-node (master) $ npm run test > pulsar-client@1.15.0-rc.0 test > jest --verbose --detectOpenHandles tests/end_to_end.test.js RUNS tests/end_to_end.test.js PID 11662 received SIGSEGV for address: 0x0 /workspaces/pulsar-client-node/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x377d)[0x7038bd2b577d] /lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x7038bfb95330] /workspaces/pulsar-client-node/lib/binding/pulsar.node(+0x1f8db6)[0x7038865f8db6] /workspaces/pulsar-client-node/lib/binding/pulsar.node(+0x1fc11e)[0x7038865fc11e] /workspaces/pulsar-client-node/lib/binding/pulsar.node(+0x22da30)[0x70388662da30] /workspaces/pulsar-client-node/lib/binding/pulsar.node(+0x223251)[0x703886623251] /workspaces/pulsar-client-node/lib/binding/pulsar.node(+0x2236c3)[0x7038866236c3] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xecdb4)[0x7038bff6cdb4] /lib/x86_64-linux-gnu/libc.so.6(+0x9caa4)[0x7038bfbecaa4] /lib/x86_64-linux-gnu/libc.so.6(+0x129c3c)[0x7038bfc79c3c] Segmentation fault (core dumped) 

Use GDB

@shibd ➜ /workspaces/pulsar-client-node (master) $ which node /home/codespace/nvm/current/bin/node @shibd ➜ /workspaces/pulsar-client-node (master) $ gdb GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git 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 "x86_64-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". (gdb) file /home/codespace/nvm/current/bin/node Reading symbols from /home/codespace/nvm/current/bin/node... (gdb) set args node_modules/jest/bin/jest.js --verbose --detectOpenHandles tests/end_to_end.test.js (gdb) run Starting program: /usr/local/share/nvm/versions/node/v22.17.0/bin/node node_modules/jest/bin/jest.js --verbose --detectOpenHandles tests/end_to_end.test.js This GDB supports auto-downloading debuginfo from the following URLs: <https://debuginfod.ubuntu.com> 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. Downloading separate debug info for system-supplied DSO at 0x7ffff7fc3000 Downloading separate debug info for /lib/x86_64-linux-gnu/libstdc++.so.6 Downloading separate debug info for /lib/x86_64-linux-gnu/libgcc_s.so.1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff79fe6c0 (LWP 17620)] [New Thread 0x7ffff71f66c0 (LWP 17621)] [New Thread 0x7ffff69f56c0 (LWP 17622)] [New Thread 0x7ffff61f46c0 (LWP 17623)] [New Thread 0x7ffff59f36c0 (LWP 17624)] [New Thread 0x7ffff514a6c0 (LWP 17625)] [Detaching after fork from child process 17626] [Detaching after fork from child process 17633] [Detaching after fork from child process 17634] [Detaching after fork from child process 17635] [New Thread 0x7ffff51416c0 (LWP 17636)] [New Thread 0x7ffff49406c0 (LWP 17637)] [New Thread 0x7fffbffff6c0 (LWP 17638)] [New Thread 0x7fffbf7fe6c0 (LWP 17639)] RUNS tests/end_to_end.test.js Downloading separate debug info for /workspaces/pulsar-client-node/node_modules/segfault-handler/build/Release/segfault-handler.node Downloading separate debug info for /workspaces/pulsar-client-node/lib/binding/pulsar.node [New Thread 0x7fffbe3ff6c0 (LWP 17654)] RUNS tests/end_to_end.test.js [New Thread 0x7fffbd3fd6c0 (LWP 17656)] [New Thread 0x7fffbcbfc6c0 (LWP 17658)] [Thread 0x7fffbd3fd6c0 (LWP 17656) exited] [Thread 0x7fffbcbfc6c0 (LWP 17658) exited] RUNS tests/end_to_end.test.js [New Thread 0x7fffbcbfc6c0 (LWP 17659)] [New Thread 0x7fffbd3fd6c0 (LWP 17660)] [New Thread 0x7fffbe3ff6c0 (LWP 17661)] RUNS tests/end_to_end.test.js [Thread 0x7fffaffff6c0 (LWP 17663) exited] [Thread 0x7fffbe3ff6c0 (LWP 17661) exited] [Thread 0x7fffbcbfc6c0 (LWP 17659) exited] [New Thread 0x7fffaffff6c0 (LWP 17664)] [New Thread 0x7fffbe3ff6c0 (LWP 17665)] [New Thread 0x7fffbcbfc6c0 (LWP 17666)] [New Thread 0x7fffaf7fe6c0 (LWP 17667)] [New Thread 0x7fffaeffd6c0 (LWP 17670)] RUNS tests/end_to_end.test.js [Thread 0x7fffaeffd6c0 (LWP 17670) exited] [Thread 0x7fffaf7fe6c0 (LWP 17667) exited] [New Thread 0x7fffaeffd6c0 (LWP 17671)] RUNS tests/end_to_end.test.js [New Thread 0x7fffaffff6c0 (LWP 17673)] [New Thread 0x7fffae7fc6c0 (LWP 17674)] [New Thread 0x7fffadffb6c0 (LWP 17676)] [Thread 0x7fffadffb6c0 (LWP 17676) exited] [Thread 0x7fffae7fc6c0 (LWP 17674) exited] RUNS tests/end_to_end.test.js [New Thread 0x7fffae7fc6c0 (LWP 17677)] [New Thread 0x7fffadffb6c0 (LWP 17678)] [Thread 0x7fffbd3fd6c0 (LWP 17660) exited] [Thread 0x7fffbcbfc6c0 (LWP 17666) exited] [Thread 0x7fffbdbfe6c0 (LWP 17655) exited] RUNS tests/end_to_end.test.js [New Thread 0x7fffbcbfc6c0 (LWP 17707)] [Thread 0x7fffae7fc6c0 (LWP 17677) exited] [Thread 0x7fffbdbfe6c0 (LWP 17679) exited] RUNS tests/end_to_end.test.js [New Thread 0x7fffbcbfc6c0 (LWP 17708)] [New Thread 0x7fffbdbfe6c0 (LWP 17709)] [New Thread 0x7fffae7fc6c0 (LWP 17710)] RUNS tests/end_to_end.test.js [Thread 0x7fffbcbfc6c0 (LWP 17708) exited] [Thread 0x7fffbd3fd6c0 (LWP 17712) exited] [Thread 0x7fffae7fc6c0 (LWP 17710) exited] [New Thread 0x7fffae7fc6c0 (LWP 17713)] [New Thread 0x7fffbd3fd6c0 (LWP 17714)] [New Thread 0x7fffbcbfc6c0 (LWP 17715)] [New Thread 0x7fffaeffd6c0 (LWP 17717)] [Thread 0x7fffae7fc6c0 (LWP 17713) exited] [Thread 0x7fffaeffd6c0 (LWP 17717) exited] RUNS tests/end_to_end.test.js [New Thread 0x7fffaeffd6c0 (LWP 17718)] [New Thread 0x7fffbcbfc6c0 (LWP 17719)] [New Thread 0x7fffae7fc6c0 (LWP 17728)] RUNS tests/end_to_end.test.js [Thread 0x7fffaeffd6c0 (LWP 17718) exited] [Thread 0x7fffae7fc6c0 (LWP 17728) exited] [Thread 0x7fffad7fa6c0 (LWP 17730) exited] [New Thread 0x7fffad7fa6c0 (LWP 17731)] RUNS tests/end_to_end.test.js [New Thread 0x7fffaeffd6c0 (LWP 17751)] [Thread 0x7fffbdbfe6c0 (LWP 17709) exited] [Thread 0x7fffbd3fd6c0 (LWP 17714) exited] [Thread 0x7fffad7fa6c0 (LWP 17731) exited] RUNS tests/end_to_end.test.js [Thread 0x7fffadffb6c0 (LWP 17776) exited] [Thread 0x7fffaeffd6c0 (LWP 17751) exited] [New Thread 0x7fffadffb6c0 (LWP 17777)] [New Thread 0x7fffaeffd6c0 (LWP 17778)] RUNS tests/end_to_end.test.js RUNS tests/end_to_end.test.js [Thread 0x7fffaffff6c0 (LWP 17673) exited] [New Thread 0x7fffaffff6c0 (LWP 17814)] RUNS tests/end_to_end.test.js [New Thread 0x7fffadffb6c0 (LWP 17815)] [New Thread 0x7fffad7fa6c0 (LWP 17816)] Thread 52 "node" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffae7fc6c0 (LWP 17793)] 0x00007fffbe5f8db6 in pulsar::ConsumerImpl::acknowledgeCumulativeAsync(pulsar::MessageId const&, std::function<void (pulsar::Result)> const&) () from /workspaces/pulsar-client-node/lib/binding/pulsar.node 
(gdb) bt #0 0x00007fffbe5f8db6 in pulsar::ConsumerImpl::acknowledgeCumulativeAsync(pulsar::MessageId const&, std::function<void (pulsar::Result)> const&) () from /workspaces/pulsar-client-node/lib/binding/pulsar.node #1 0x00007fffbe5fc11e in pulsar::ConsumerImpl::internalListener() () from /workspaces/pulsar-client-node/lib/binding/pulsar.node #2 0x00007fffbe62da30 in asio::detail::executor_op<asio::detail::binder0<std::function<void ()> >, std::allocator<void>, asio::detail::scheduler_operation>::do_complete(void*, asio::detail::scheduler_operation*, std::error_code const&, unsigned long) () from /workspaces/pulsar-client-node/lib/binding/pulsar.node #3 0x00007fffbe623251 in asio::detail::scheduler::run(std::error_code&) [clone .isra.0] () from /workspaces/pulsar-client-node/lib/binding/pulsar.node #4 0x00007fffbe6236c3 in pulsar::ExecutorService::start()::{lambda()#1}::operator()() const () from /workspaces/pulsar-client-node/lib/binding/pulsar.node #5 0x00007ffff7e1fdb4 in std::execute_native_thread_routine (__p=0x6ce06a0) at ../../../../../src/libstdc++-v3/src/c++11/thread.cc:104 #6 0x00007ffff7a9faa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447 #7 0x00007ffff7b2cc3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant