Package: nodejs Version: 12.20.2~dfsg-2 Severity: serious Justification: segfaults File: /usr/bin/node
Hi maintainer, As can be seen in the autopkgtest history of node-opencv [1], that autopkgtest regularly fails, and all failures with logs still present are due to the same issue: node segfaults. The output from one of these logs is at the bottom of this mail. I ran the lines from d/t/unittest manually upto the last call and next I ran $(node readimage.js) twice. The second time already triggered the issue, see below. root@elbrus:/tmp/autopkgtest-lxc.h7end76k/downtmp/autopkgtest_tmp/unittest6FSsAh/examples# node readimage.js Synchronous readImage("./files/mona.png")500x756 callback readImage("./files/mona.png", fn(){})500x756 Synchronous readImage(100, 100) (create mat)100x100 type 6 callback readImage(100, 100, fn(){}) (create mat)100x100 Synchronous readImage(imgdata:Buffer)500x756 callback readImage(imgdata:Buffer, fn(){})500x756 Now with flags Synchronous readImage("./files/mona.png", 0) (monochrome)500x756 type 0 callback readImage("./files/mona.png", 1, fn(){}) (colour)500x756 type 16 Synchronous readImage(100, 100, cv.Constants.CV_8UC3) (create 8 bit 3 channel mat)100x100 type 16 callback readImage(100, 100, cv.Constants.CV_8UC1, fn(){}) (create mat)100x100 type 0 Synchronous readImage(imgdata:Buffer, 0) (monochrome)500x756 type 0 callback readImage(imgdata:Buffer, 1, fn(){}) (colour)500x756 type 16 Now with readImageAsync Synchronous readImageAsync("./files/mona.png")500x756 Synchronous readImageAsync(100, 100) (create mat)100x100 type 6 !!Synchronous!! callback readImageAsync(100, 100, fn(){}) (create mat)100x100 Synchronous readImageAsync(imgdata:Buffer)500x756 Now Async with flags Synchronous readImageAsync("./files/mona.png", 0) (monochrome)500x756 type 0 Synchronous readImageAsync(100, 100, cv.Constants.CV_8UC3) (create 8 bit 3 channel mat)100x100 type 16 !!Synchronous!! callback readImageAsync(100, 100, cv.Constants.CV_8UC1, fn(){}) (create mat)100x100 type 0 Synchronous readImageAsync(imgdata:Buffer, 0) (monochrome)500x756 type 0 Truely Async callbacks should be after this line Asynchronous callback readImageAsync("./files/mona.png", fn(){})500x756 Asynchronous callback readImageAsync(imgdata:Buffer, fn(){})500x756 Asynchronous callback readImageAsync("./files/mona.png", 1, fn(){}) (colour)500x756 type 16 Segmentation fault Please let me know if you need more info or if I can you more useful info (step by step please, I have no clue how node works). Paul [1] https://ci.debian.net/packages/n/node-opencv/testing/ppc64el/ https://ci.debian.net/data/autopkgtest/testing/ppc64el/n/node-opencv/11596356/log.gz # Example: ./examples/readimage.js not ok 200 Error: Command failed: node /tmp/autopkgtest-lxc._lzaasr1/downtmp/autopkgtest_tmp/unittesthM8OC4/examples/readimage.js Segmentation fault --- operator: error expected: |- undefined actual: |- { [Error: Command failed: node /tmp/autopkgtest-lxc._lzaasr1/downtmp/autopkgtest_tmp/unittesthM8OC4/examples/readimage.js Segmentation fault ] killed: false, code: 139, signal: null, cmd: 'node /tmp/autopkgtest-lxc._lzaasr1/downtmp/autopkgtest_tmp/unittesthM8OC4/examples/readimage.js' } at: <anonymous> (/tmp/autopkgtest-lxc._lzaasr1/downtmp/autopkgtest_tmp/unittesthM8OC4/test/examples.js:18:16) stack: |- Error: Command failed: node /tmp/autopkgtest-lxc._lzaasr1/downtmp/autopkgtest_tmp/unittesthM8OC4/examples/readimage.js Segmentation fault at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1022:16) at Socket.<anonymous> (internal/child_process.js:444:11) at Socket.emit (events.js:314:20) at Pipe.<anonymous> (net.js:676:12) ...
OpenPGP_signature
Description: OpenPGP digital signature