Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite fails with segfault #679

Open
largeTarget opened this issue Nov 26, 2024 · 0 comments
Open

Test suite fails with segfault #679

largeTarget opened this issue Nov 26, 2024 · 0 comments
Labels

Comments

@largeTarget
Copy link

largeTarget commented Nov 26, 2024

Describe the bug

Running test suite fails with segfault.

Tried to use this library but found out that it segfaults occasionally. Cloned repo installed deps and ran npm run test which already fails to segfault every time.

Tested on two machines with same result

  2) Uncaught error outside test suite                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                          
  339 passing (53s)                                                                                                                                                                                                                                                                       
  7 pending                                                                                                                                                                                                                                                                               
  2 failing                                                                                                                                                                                                                                                                               
                                                                      
  1) context process exit                                                                                                                    
       with default context                                         
         should produce warning when messages are queued without blocky:                                                                     
     AssertionError: expected '' to match /\(node:\d+\) WARNING: Waiting for queued ZeroMQ messages to be delivered\.\r?\n/                  
      at Context.<anonymous> (/home/alaine/Projects/repos/zeromq.js/test/unit/context-process-exit-test.ts:75:14)                            
      at processTicksAndRejections (node:internal/process/task_queues:95:5)                                                                  
                                                                      
  2) Uncaught error outside test suite:                                                                                                      
     Uncaught Error: Workerpool Worker terminated Unexpectedly
    exitCode: `null`                                                                                                                         
    signalCode: `SIGSEGV`                                                                                                                    
    workerpool.script: `/home/alaine/Projects/repos/zeromq.js/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/nodejs/worker.js`       
    spawnArgs: `/usr/bin/node,--expose-gc,/home/alaine/Projects/repos/zeromq.js/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/nodejs/worker.js`                                                                                                                                  
    spawnfile: `/usr/bin/node`                                                                                                               
    stdout: `null`                                                                                                                           
    stderr: `null`                                                    
                                                                                                                                             
      at ChildProcess.<anonymous> (/home/alaine/Projects/repos/zeromq.js/node_modules/.pnpm/[email protected]/node_modules/workerpool/src/WorkerHandler.js:297:13)                                                                                                                         
      at ChildProcess.emit (node:events:517:28)                                                                                              
      at ChildProcess.emit (node:domain:489:12)                                                                                              
      at Process.ChildProcess._handle.onexit (node:internal/child_process:292:12)      

Reproducing

  • pnpm install
  • npm run test

Expected behavior
All tests pass

Tested on

Machine 1

  • Debian Sid 6.6.13-amd64
  • cmake 3.31.1
  • nodejs v18.19.0
  • Python 3.12.7
  • curl 8.11.0 (x86_64-pc-linux-gnu) libcurl/8.11.0 GnuTLS/3.8.8 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 libssh2/1.11.1 nghttp2/1.60.0 ngtcp2/1.6.0 nghttp3/1.4.0 librtmp/2.3 OpenLDAP/2.5.13 Release-Date: 2024-11-06, security patched: 8.11.0-1

Machine 2

  • Linux 5.15.167.4-microsoft-standard-WSL2 x86_64
  • cmake version 3.22.1
  • nodejs: v18.13.0
  • Python 3.10.12
  • curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.17 Release-Date: 2022-01-05

library version

commit 9f1172d5b4e73a8f69c0a54e0cacad71dfddf1fd (HEAD -> master, tag: v6.1.2, origin/master, origin/HEAD)
Author: Amin Yahyaabadi <[email protected]>
Date:   Wed Nov 6 04:20:22 2024 -0800

    chore(release): v6.1.2 [skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant