Bug#987364: [Pkg-javascript-devel] Bug#987364: /usr/bin/node: segfaults regularly in node-opencv autopkgtest on ppc64el

Jochen Sprickerhof jspricke at debian.org
Fri Apr 30 12:41:42 BST 2021


Control: reassign -1 node-opencv

Hi,

* Jérémy Lal <kapouer at melix.org> [2021-04-22 18:38]:
>(gdb) bt
>#0  __memcpy_power7 () at ../sysdeps/powerpc/powerpc64/power7/memcpy.S:235
>#1  0x00007ffff0145254 in memcpy (__len=4, __src=<optimized out>,
>__dest=0x7fffc779d480) at
>/usr/include/powerpc64le-linux-gnu/bits/string_fortified.h:34
>#2  cv::PngDecoder::readDataFromBuf (_png_ptr=0x7fffb0000d20,
>dst=0x7fffc779d480 "\226\341l\204", size=4) at
>../modules/imgcodecs/src/grfmt_png.cpp:138
>#3  0x00007fffdb5799ac in png_read_data (png_ptr=<optimized out>,
>data=<optimized out>, length=<optimized out>) at pngrio.c:37
>#4  0x00007fffdb581b2c in png_crc_error (png_ptr=0x7fffb0000d20) at
>pngrutil.c:275
>#5  0x00007fffdb581c70 in png_crc_finish (png_ptr=0x7fffb0000d20,
>skip=<optimized out>) at pngrutil.c:229
>#6  0x00007fffdb5882a8 in png_read_IDAT_data (png_ptr=0x7fffb0000d20,
>output=<optimized out>, avail_out=<optimized out>) at pngrutil.c:4351
>#7  0x00007fffdb57608c in png_read_row (png_ptr=0x7fffb0000d20,
>row=0x7fffc697c300 "", dsp_row=0x0) at pngread.c:623
>#8  0x00007fffdb5782d8 in png_read_image (png_ptr=0x7fffb0000d20,
>image=0x7fffb000b910) at pngread.c:833
>#9  0x00007ffff0145fc8 in cv::PngDecoder::readData (this=0x7fffb0000c20,
>img=...) at ../modules/imgcodecs/src/grfmt_png.cpp:284
>#10 0x00007ffff0128e4c in cv::imdecode_ (buf=..., flags=flags at entry=1,
>mat=...) at ../modules/imgcodecs/src/loadsave.cpp:860
>#11 0x00007ffff0129a70 in cv::imdecode (_buf=..., flags=<optimized out>) at
>../modules/imgcodecs/src/loadsave.cpp:900
>#12 0x00007ffff0539ec8 in AsyncImDecodeWorker::Execute (this=0x100253b00)
>at /usr/include/opencv4/opencv2/core/mat.inl.hpp:92
>#13 0x00007ffff0530ba4 in Nan::AsyncExecute (req=<optimized out>) at
>../../../../usr/lib/nodejs/nan/nan.h:2284
>#14 0x00007ffff60aac84 in uv__queue_work (w=<optimized out>) at
>../deps/uv/src/threadpool.c:321
>#15 0x00007ffff60aad9c in worker (arg=0x0) at
>../deps/uv/src/threadpool.c:122
>#16 0x00007ffff54a956c in start_thread (arg=0x7fffc779f140) at
>pthread_create.c:477
>#17 0x00007ffff53b8044 in clone () at
>../sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S:82

This is in the async version of node-opencv cleaning up the buffer 
during the memcpy. I was not able to reproduce it anymore with the 
attached hack (you probably want to commit a clean version).

Cheers Jochen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: async_malloc.patch
Type: text/x-diff
Size: 1000 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20210430/9c64c33c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20210430/9c64c33c/attachment.sig>


More information about the debian-science-maintainers mailing list