From owner-freebsd-ports@freebsd.org Mon Feb 24 17:03:58 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 77DFB23B31C for ; Mon, 24 Feb 2020 17:03:58 +0000 (UTC) (envelope-from SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48R7gx24Bgz4mC3 for ; Mon, 24 Feb 2020 17:03:57 +0000 (UTC) (envelope-from SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id ECC2728416; Mon, 24 Feb 2020 18:03:54 +0100 (CET) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 2830D2842E; Mon, 24 Feb 2020 18:03:50 +0100 (CET) Subject: Re: Cannot build qt5-webkit with debug To: Michael Osipov <1983-01-06@gmx.net>, freebsd-ports@freebsd.org References: <86c4b386-9298-fa0a-ccc1-ec6b1e65b788@quip.cz> <81e73790-6b69-8038-b087-9ff75c1cf9b5@gmx.net> <1a72bb7d-8ded-afe4-6fa7-8c301d73839e@quip.cz> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <23335a73-5853-eab2-5684-b40f430ec8c7@quip.cz> Date: Mon, 24 Feb 2020 18:03:49 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48R7gx24Bgz4mC3 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [4.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.85)[ip: (0.32), ipnet: 94.124.104.0/21(0.16), asn: 42000(3.67), country: CZ(0.09)]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.96)[0.957,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.105.124.94.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(0.99)[0.995,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz]; FREEMAIL_TO(0.00)[gmx.net]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=Bihw=4M=quip.cz=000.fbsd@elsa.codelab.cz]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2020 17:03:58 -0000 Michael Osipov wrote on 2020/02/24 16:47: > Am 2020-02-24 um 16:35 schrieb Miroslav Lachman: >> Loaded symbols for /usr/lib/libdl.so.1 >> Reading symbols from /usr/local/lib/qt5/libQt5WebKitWidgets.so.5...done. >> Loaded symbols for /usr/local/lib/qt5/libQt5WebKitWidgets.so.5 >> Reading symbols from /usr/local/lib/qt5/libQt5Widgets.so.5...done. >> Loaded symbols for /usr/local/lib/qt5/libQt5Widgets.so.5 >> Reading symbols from >> /usr/local/lib/qt5/libQt5WebKit.so.5...Segmentation fault (core dumped) > > From my POV, something is fishy with the shared object > libQt5WebKit.so.5. Try objdump/readelf of similiar whether the thing can > be read at all. I have the feeling that either the objects are invalid > somehow or the linker failed here. > > You might have found a bug with LLVM infra. Try the latest version of > llvm-c++ and lld from ports. Which LLVM version do you use? > You might want also try g++ and GNU ld. > > Michael > > PS: I am not a C/C++ expect either, but have dealt with many crashes > before. It was build on top of ports tree updated at 2020-02-18 with llvm80 i guess. PORTSTREE METHOD TIMESTAMP PATH headtest portsnap 2020-02-18 19:21:17 /vol0/poudriere/ports/headtest readelf and objdump can read the libQt5WebKit.so.5 I tired it with some options where the dumped text was too long to paste here so I paste just this short one (root@testjail) ~/# readelf -d /usr/local/lib/qt5/libQt5WebKit.so.5 Dynamic section at offset 0x54ba6c8 contains 53 entries: Tag Type Name/Value 0x0000000000000001 NEEDED Shared library: [libQt5Quick.so.5] 0x0000000000000001 NEEDED Shared library: [libQt5WebChannel.so.5] 0x0000000000000001 NEEDED Shared library: [libicuuc.so.65] 0x0000000000000001 NEEDED Shared library: [libQt5Positioning.so.5] 0x0000000000000001 NEEDED Shared library: [libX11.so.6] 0x0000000000000001 NEEDED Shared library: [libXcomposite.so.1] 0x0000000000000001 NEEDED Shared library: [libXrender.so.1] 0x0000000000000001 NEEDED Shared library: [libicui18n.so.65] 0x0000000000000001 NEEDED Shared library: [libQt5Sensors.so.5] 0x0000000000000001 NEEDED Shared library: [libwoff2dec.so.1.0.2] 0x0000000000000001 NEEDED Shared library: [libjpeg.so.8] 0x0000000000000001 NEEDED Shared library: [libpng16.so.16] 0x0000000000000001 NEEDED Shared library: [libz.so.6] 0x0000000000000001 NEEDED Shared library: [libwebp.so.7] 0x0000000000000001 NEEDED Shared library: [libhyphen.so.0] 0x0000000000000001 NEEDED Shared library: [libxml2.so.2] 0x0000000000000001 NEEDED Shared library: [libxslt.so.1] 0x0000000000000001 NEEDED Shared library: [libsqlite3.so.0] 0x0000000000000001 NEEDED Shared library: [libQt5Gui.so.5] 0x0000000000000001 NEEDED Shared library: [libQt5Qml.so.5] 0x0000000000000001 NEEDED Shared library: [libQt5Network.so.5] 0x0000000000000001 NEEDED Shared library: [libQt5Core.so.5] 0x0000000000000001 NEEDED Shared library: [libc++.so.1] 0x0000000000000001 NEEDED Shared library: [libcxxrt.so.1] 0x0000000000000001 NEEDED Shared library: [libm.so.5] 0x0000000000000001 NEEDED Shared library: [libgcc_s.so.1] 0x0000000000000001 NEEDED Shared library: [libthr.so.3] 0x0000000000000001 NEEDED Shared library: [libc.so.7] 0x000000000000000e SONAME Library soname: [libQt5WebKit.so.5] 0x000000000000000f RPATH Library rpath: [/usr/local/lib/qt5:/usr/local/lib] 0x000000000000001d RUNPATH Library runpath: [/usr/local/lib/qt5:/usr/local/lib] 0x000000000000000c INIT 0x5adfa8 0x000000000000000d FINI 0x3eb1498 0x0000000000000004 HASH 0x190 0x000000006ffffef5 GNU_HASH 0x12d30 0x0000000000000005 STRTAB 0x65b98 0x0000000000000006 SYMTAB 0x257a0 0x000000000000000a STRSZ 518712 (bytes) 0x000000000000000b SYMENT 24 (bytes) 0x0000000000000003 PLTGOT 0x56c11d8 0x0000000000000002 PLTRELSZ 148872 (bytes) 0x0000000000000014 PLTREL RELA 0x0000000000000017 JMPREL 0x589a20 0x0000000000000007 RELA 0xea0a0 0x0000000000000008 RELASZ 4848000 (bytes) 0x0000000000000009 RELAENT 24 (bytes) 0x000000006ffffffc VERDEF 0xe9b80 0x000000006ffffffd VERDEFNUM 17 0x000000006ffffffe VERNEED 0xe9dd0 0x000000006fffffff VERNEEDNUM 18 0x000000006ffffff0 VERSYM 0xe45d0 0x000000006ffffff9 RELACOUNT 154470 0x0000000000000000 NULL 0x0 I tried lldb instead of gdb and it does not crashed. The output is long so I put it on line: https://hastebin.com/ibefonagob.bash Thank you for your help! Kind regards Miroslav Lachman