From owner-freebsd-ports@freebsd.org Mon Feb 24 15:00:12 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 47E2C25F572 for ; Mon, 24 Feb 2020 15:00:12 +0000 (UTC) (envelope-from 1983-01-06@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48R4x71gsDz442g for ; Mon, 24 Feb 2020 15:00:10 +0000 (UTC) (envelope-from 1983-01-06@gmx.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1582556408; bh=8X9oZlGZnCIitGyWMI+5e4bGXHtHmCgCFhn6zL7CdIU=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=GL+q9J/LnInvcgfHeoP9MOzNgRyfBrHPXMpV6+uz4HadF09g02B0/wM5lNTpatWHQ Kj2JBBQTIo4a4+zyyab+WDaaGoEPQ3Wi6CXwaYa1BLKTVMGaq2MsPRFoT4u3NN7si5 yihUwtpYBtHA4M4xTOqCh35zaOKaPu9xxuUScRWI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.13] ([84.143.145.83]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MoO24-1jltXk1UYC-00orzi; Mon, 24 Feb 2020 16:00:08 +0100 Subject: Re: Cannot build qt5-webkit with debug To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-ports@freebsd.org References: <86c4b386-9298-fa0a-ccc1-ec6b1e65b788@quip.cz> From: Michael Osipov <1983-01-06@gmx.net> Message-ID: <81e73790-6b69-8038-b087-9ff75c1cf9b5@gmx.net> Date: Mon, 24 Feb 2020 16:00:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <86c4b386-9298-fa0a-ccc1-ec6b1e65b788@quip.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:V3Zka4NPrQwp/7hZaLwKoMscV1JDJkEVpwMbNf4bX/XjWvclzJJ KBLKJdDc6jqxWhHNjHyv+CJDdT2RmBhKoN7q7nuPzQ4owbblf4CLFoVx5E8Cfbrik3E7L+H oHyKLlCGUXvI7hVNIsKn25NEe32HyOMeOCqL1WS3d3cyBwrEk/mRn8PrNi936uLWsPzOyK3 xBFx8Kw6nmZVvX6Wv4ClQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bPSBbJl3hYc=:6aCKwrTjXRy9fvR+r2C+pK Y91Ldt2RmoYqBPmNKtoEa46KBsFaxqAaRpmGLTusPPBcAhpQoJDWLfsy43ZdWZwxvKAzTkuVh YDXl6/ZZjEhM0D3OnddyOG1mO7+eW0yvy/d/MeSWj3TBWd0sx6NV4gJaA36QMOLRW/2TW9B9S LN03pRyTGXw/JbRXg9rjNaYnXQfFUpK47TseVA3XSvKjHniPzayaXbdcLsoallEMiH7j3DJSJ nJcxPkRHD6lVsz1otavbQBQTrUhTcjX7YCezll94NQOh4IoTgx7e051FJndUEjXv5ZaVJkmko 1NACJCS1NiDEv5UbieuA43RqYpta7fIvgoui/wFqo3D80vNWqIbeDqx/UGgeZE6g0rrhgQmmT 8v/tPgu8QbLPkM41UteyinBgrBOdLGXKNwz/RHsyRfCCUx/JI5/5KNfU15PsoTKdXVB1NrvsT 5uD+nmMTvWxNE/sS7EJrjtPq3i6oQduJHC66xPiIht0Ecwp1bzvqX1FFhEa5QZINi4Emc1SP4 CV42Ps1PitaX1pihcZZGY7wzjtKV1NE3f5InFe3VYuw2spobqkMfGI4oCHxUNNg6zzZiNxbjA tXP6BdW/bpcotAfWC1jCuumwczA0VG4TwbAYb9riAh8r6+eCHnVV9RDOlO5n5zKLzzZXOTD0l QzpYFLLu4v7EvXek9BJOMCH9WumUu6JCTe+tLRASjdytlLKCCsNwnPjber85uvb9N49SryDFi tGMwYKYAAx8uvd3RZmci+025hSDB79v4KiHM7rsvJpDn6vankO7IrGOs5x05Yyn0Xmtfi6Uz+ Q0d3p+f/GnMsLd2tMskMgcctA6Cdgf0zr5L4oWEZh0rJ4csvkWDsCJLwzcLneiKncSp+V+4RN 27HrTtjfSuzvT4qush5bjguh5w63VZXs2bFLlWraJguUMm8KEwU/f/04vKQunohuFQw7/96g5 zvkRevYNo5d+UhPO3CPeTDqkZ6DDfLctpnCVQ/BQsKhfXaUA3rd8oW5x3bqt3yriy8rZGjwNX ay4Noh+N8LGSz04leioi9evGFKjqrmS27Qk2DGO8oo6zi/0kwYMkE4e6wmNrGoepia24xUMt/ Dm2gIUixsML9RZJoavdDHEbdOLvaV4c2jlt8QP34X7pTqljmwVeUu5YwIydG1mJSXl7h9R7cL hbfKziND4JArX24bsE6SK/0S2VbkDLc8IkbOye3gkHUon7gWZqcTgAR82rxIcbgZJYbCvMj3j U/k7N3FGkIWbO38Jb X-Rspamd-Queue-Id: 48R4x71gsDz442g X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=GL+q9J/L; dmarc=none; spf=pass (mx1.freebsd.org: domain of 1983-01-06@gmx.net designates 212.227.17.22 as permitted sender) smtp.mailfrom=1983-01-06@gmx.net X-Spamd-Result: default: False [-2.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.227.17.0/27]; FREEMAIL_FROM(0.00)[gmx.net]; DKIM_TRACE(0.00)[gmx.net:+]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.00)[ip: (-5.93), ipnet: 212.227.0.0/16(-1.12), asn: 8560(2.19), country: DE(-0.02)]; RCVD_IN_DNSWL_LOW(-0.10)[22.17.227.212.list.dnswl.org : 127.0.3.1]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[83.145.143.84.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.net]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmx.net.dwl.dnswl.org : 127.0.3.0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gmx.net]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[22.17.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(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 15:00:12 -0000 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 > 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