Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2020 16:00:06 +0100
From:      Michael Osipov <1983-01-06@gmx.net>
To:        Miroslav Lachman <000.fbsd@quip.cz>, freebsd-ports@freebsd.org
Subject:   Re: Cannot build qt5-webkit with debug
Message-ID:  <81e73790-6b69-8038-b087-9ff75c1cf9b5@gmx.net>
In-Reply-To: <86c4b386-9298-fa0a-ccc1-ec6b1e65b788@quip.cz>
References:  <f0a4e30f-8856-b4e6-dc9b-ad87ecf1a17a@quip.cz> <86c4b386-9298-fa0a-ccc1-ec6b1e65b788@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 2020-02-24 um 15:50 schrieb Miroslav Lachman:
> Miroslav Lachman wrote on 2020/02/24 12:48:
>> Short story:
>> I am trying to build qt5-webkit with WITH_DEBUG=3Dyes in make.conf on =

>> our E3 Xeon machine with FreeBSD 11.3, poudriere-devel, 16GB of RAM=20
>> and 10GB of swap.
>> The build always hangs, machine is unresponsive on SSH / HTTP, only=20
>> ping is responding. I track it down to build eats all memory (RAM +=20
>> Swap).
>>
>> Did anybody tried to build (successfully?) qt5-webkit with debug optio=
n?
>>
>> Is there a bug in build process with WITH_DEBUG or is 16GB of RAM and =

>> 10GB of swap not enough in these days?
>>
>> Any help appreciated.
>>
>> Long story:
>> As I didn't found replacement for removed port lang/phantomjs nor=20
>> found how to build firefox or chromium as static binary I am trying to=
=20
>> create new port of lang/phantomjs.
>> I posted few weeks ago - phantomjs github is active again
>> https://lists.freebsd.org/pipermail/freebsd-ports/2020-January/117556.=
html=20
>>
>>
>> The new development version of phantomjs has different building=20
>> process, newer dependencies, can be built with current OpenSSL 1.1.1 e=
tc.
>> My (ugly) temporary version of this port is buildable, resulting=20
>> binary "phantomjs" can run simple "Hello world" example
>> https://github.com/ariya/phantomjs/blob/master/examples/hello.js
>>
>> But when I try to run some real work (fetching web page) it segfaulted=
=2E
>=20
> [...]
>=20
>> I guess I need debug symbols for qt5-webkit to debug it further but I =

>> am not able to build it with WITH_DEBUG.
>>
>> Are there any ways / tuning options to build it without eating all=20
>> memory and swap space?
>=20
> Meanwhile I added 20GB more of a swap (total of 30GB) and the build=20
> succeeded. (according to Zabbix graphs it used 22GB of swap for this bu=
ild)
>=20
> Phantomjs is still segfaulting and I am not able to debug it with gdb=20
> because it is interrupted by segfault to:
>=20
> (root@testjail) ~/# phantomjs /tmp/phantom.2.js
> PhantomJS has crashed. Please read the bug reporting guide at
> <http://phantomjs.org/bug-reporting.html>; and file a bug report.
> Segmentation fault
>=20
>=20
> (root@testjail) ~/# gdb /usr/local/bin/phantomjs
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and yo=
u=20
> are
> welcome to change it and/or distribute copies of it under certain=20
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.=C2=A0 Type "show warranty" for=
 details.
> This GDB was configured as "amd64-marcel-freebsd"...(no debugging=20
> symbols found)...
> (gdb) run /tmp/phantom.2.js
> Starting program: /usr/local/bin/phantomjs /tmp/phantom.2.js
> Segmentation fault (core dumped)
>=20
>=20
> There are 2 core dumps
>=20
> -rw-------=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 327M Feb 24 14:36 gdb.c=
ore
> -rw-------=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 4.9M Feb 24 14:36 phant=
omjs.core
>=20
> What more can I try?
> I am not a C / C++ skilled person. All these things are new to me.

You can load the coredump into GDB and say "where" [1]. It will tell you =

the last frame it executed before it crashed. Make sure that your=20
objects contains debug symbols. This mostly helped me to get a grasp of=20
failures on FreeBSD and HP-UX.

[1] https://stackoverflow.com/a/5115653/696632






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?81e73790-6b69-8038-b087-9ff75c1cf9b5>