Summary: | media-libs/opencv-4.8.1 failed to emerge - Segmentation fault | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Paul Zander <negril.nx+gentoo> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | proxy-maint, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=918607 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Leonid Kopylov
2023-11-26 19:07:03 UTC
Created attachment 875735 [details]
build.log
Could you retest with USE="-download"? It's a bit odd that cmake segfaults. (In reply to Paul Zander from comment #2) > Could you retest with USE="-download"? It's a bit odd that cmake segfaults. yes, with USE=-download it builds Could you try FEATURES="-network-sandbox" USE=download next? (In reply to Paul Zander from comment #4) > Could you try FEATURES="-network-sandbox" USE=download next? same error: -- Found Protobuf: /usr/bin/protoc-23.3.0 (found version "23.3.0") -- ADE: Downloading v0.1.2a.zip from https://github.com/opencv/ade/archive/v0.1.2a.zip /var/tmp/portage/media-libs/opencv-4.8.1/temp/environment: line 1454: 208 Segmentation fault (core dumped) "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" * ERROR: media-libs/opencv-4.8.1::gentoo failed (configure phase): * cmake failed Last question, does plain `curl https://github.com/opencv/ade/archive/v0.1.2a.zip` work on your test system? (In reply to Paul Zander from comment #6) > Last question, does plain `curl > https://github.com/opencv/ade/archive/v0.1.2a.zip` work on your test system? # curl https://github.com/opencv/ade/archive/v0.1.2a.zip Segmentation fault (core dumped) and i see the same on all my 3 intel-based machines (In reply to Leonid Kopylov from comment #7) > (In reply to Paul Zander from comment #6) > > Last question, does plain `curl > > https://github.com/opencv/ade/archive/v0.1.2a.zip` work on your test system? > > # curl https://github.com/opencv/ade/archive/v0.1.2a.zip > Segmentation fault (core dumped) > > > and i see the same on all my 3 intel-based machines Could you run it under gdb? (see https://wiki.gentoo.org/wiki/Debugging#Per-package first to get debug symbols for curl + c-ares + glibc). (In reply to Sam James from comment #8) > (In reply to Leonid Kopylov from comment #7) > > (In reply to Paul Zander from comment #6) > > > Last question, does plain `curl > > > https://github.com/opencv/ade/archive/v0.1.2a.zip` work on your test system? > > > > # curl https://github.com/opencv/ade/archive/v0.1.2a.zip > > Segmentation fault (core dumped) > > > > > > and i see the same on all my 3 intel-based machines > > Could you run it under gdb? (see > https://wiki.gentoo.org/wiki/Debugging#Per-package first to get debug > symbols for curl + c-ares + glibc). # curl Segmentation fault (core dumped) # gdb curl GNU gdb (Gentoo 13.2 vanilla) 13.2 Copyright (C) 2023 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://bugs.gentoo.org/>. 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 curl... Reading symbols from /usr/lib/debug//usr/bin/curl.debug... (gdb) run Starting program: /usr/bin/curl [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7d4926c in pthread_mutex_init () from /usr/lib64/libc.so.6 (gdb) You want to run bt in gdb. (In reply to Paul Zander from comment #10) > You want to run bt in gdb. (gdb) bt #0 0x00007ffff7d4926c in pthread_mutex_init () from /usr/lib64/libc.so.6 #1 0x00007ffff77ef0c0 in ?? () from /usr/lib64/libmbedcrypto.so.7 #2 0x00007ffff77c9d0a in mbedtls_entropy_init () from /usr/lib64/libmbedcrypto.so.7 #3 0x00007ffff7b00f6c in ?? () from /usr/lib64/libssh2.so.1 #4 0x00007ffff7b028b9 in libssh2_init () from /usr/lib64/libssh2.so.1 #5 0x00007ffff7f4725b in Curl_ssh_init () at /var/tmp/portage/net-misc/curl-8.4.0/work/curl-8.4.0/lib/vssh/libssh2.c:3791 #6 0x00007ffff7ed67f6 in global_init (flags=<optimized out>, memoryfuncs=memoryfuncs@entry=true) at /var/tmp/portage/net-misc/curl-8.4.0/work/curl-8.4.0/lib/easy.c:192 #7 0x00007ffff7ed69aa in curl_global_init (flags=flags@entry=3) at /var/tmp/portage/net-misc/curl-8.4.0/work/curl-8.4.0/lib/easy.c:229 #8 0x000055555555f9ae in main_init (config=0x7fffffffdc70) at /var/tmp/portage/net-misc/curl-8.4.0/work/curl-8.4.0/src/tool_main.c:161 #9 main (argc=1, argv=0x7fffffffde28) at /var/tmp/portage/net-misc/curl-8.4.0/work/curl-8.4.0/src/tool_main.c:269 (gdb) can you show the output of `emerge -pv curl` please. (In reply to Paul Zander from comment #12) > can you show the output of `emerge -pv curl` please. # emerge -pv curl These are the packages that would be merged, in order: Calculating dependencies... done! Dependency resolution took 1.30 s (backtrack: 0/20). [ebuild R ] net-misc/curl-8.4.0::gentoo USE="adns alt-svc brotli ftp gnutls gopher hsts http2 idn imap kerberos ldap mbedtls openssl pop3 progress-meter rtmp rustls samba smtp ssh ssl telnet tftp websockets zstd -nghttp3 (-sslv3) -static-libs -test -verify-sig" ABI_X86="32 (64) (-x32)" CURL_SSL="openssl -gnutls -mbedtls -rustls" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB did you definitely build glibc with debug symbols? please also do net-libs/libssh2 and net-libs/mbedtls, thanks (In reply to Sam James from comment #14) > did you definitely build glibc with debug symbols? > > please also do net-libs/libssh2 and net-libs/mbedtls, thanks hm, after rebuilding all those packages - curl started to work. on my other 2 machines - rebuilding one by one - seems net-libs/libssh2 was that caused the issue. also media-gfx/libimagequant (https://bugs.gentoo.org/918607) was built successfully. after rebuilding net-libs/libssh2, "curl" now works - so i believe this bug can be closed |