Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2020 18:03:49 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Michael Osipov <1983-01-06@gmx.net>, freebsd-ports@freebsd.org
Subject:   Re: Cannot build qt5-webkit with debug
Message-ID:  <23335a73-5853-eab2-5684-b40f430ec8c7@quip.cz>
In-Reply-To: <c5d41be9-f2a7-7451-b2e5-370587209571@gmx.net>
References:  <f0a4e30f-8856-b4e6-dc9b-ad87ecf1a17a@quip.cz> <86c4b386-9298-fa0a-ccc1-ec6b1e65b788@quip.cz> <81e73790-6b69-8038-b087-9ff75c1cf9b5@gmx.net> <1a72bb7d-8ded-afe4-6fa7-8c301d73839e@quip.cz> <c5d41be9-f2a7-7451-b2e5-370587209571@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23335a73-5853-eab2-5684-b40f430ec8c7>