From owner-freebsd-ports@freebsd.org Tue Feb 25 16:27:52 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 5565525FC3B for ; Tue, 25 Feb 2020 16:27:52 +0000 (UTC) (envelope-from SRS0=lqM9=4N=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 48Rkqq0JCdz4Cb3 for ; Tue, 25 Feb 2020 16:27:50 +0000 (UTC) (envelope-from SRS0=lqM9=4N=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 0015328422; Tue, 25 Feb 2020 17:27:47 +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 74B302842B; Tue, 25 Feb 2020 17:27:46 +0100 (CET) Subject: Re: Cannot build qt5-webkit with debug To: Michael Osipov <1983-01-06@gmx.net> Cc: 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> <23335a73-5853-eab2-5684-b40f430ec8c7@quip.cz> <12ae3631-1973-5a42-8aa2-2fb8b9b93f8b@quip.cz> <15dbf933-b04b-788f-5cab-0dc5ffdcc532@gmx.net> <1b7192f7-5ebe-8d28-6bd9-92c8a2097acf@quip.cz> <79231bf9-6e7c-b5e6-9c8e-29edb921f18c@quip.cz> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: Date: Tue, 25 Feb 2020 17:27:46 +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: 48Rkqq0JCdz4Cb3 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=lqM9=4N=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=lqM9=4N=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [4.01 / 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.84)[ip: (0.31), ipnet: 94.124.104.0/21(0.16), asn: 42000(3.66), 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.97)[0.970,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(1.00)[0.998,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=lqM9=4N=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=lqM9=4N=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: Tue, 25 Feb 2020 16:27:52 -0000 Michael Osipov wrote on 2020/02/25 11:16: > Am 2020-02-24 um 22:52 schrieb Miroslav Lachman: >> Michael Osipov wrote on 2020/02/24 21:40: >>> Am 2020-02-24 um 20:56 schrieb Miroslav Lachman: >> >> [..] >> >>>> I tried it on simpler website on HTTP without external fonts etc. but >>>> it is still crashing >>>> >>>> >>>> Example JS code and truss output is on hastebin >>>> https://hastebin.com/sizefupiki.pl >>>> >>>> No fopen found there :( >>> >>> Can you also please provide the backtrace from lldb for this core dump? >> >> lldb backtrace >> https://hastebin.com/ovufejevil.bash >> >>> Surprisingly, the last call is: >>>> stat("/usr/local/share/icu/65.1/icudt65l/iso-8859_16-2001.cnv",0x7fffffffc998) >>>> >>>> >>> >>> which comes from ICU. The entire website has been read from the >>> socket, as you can see from the read in 2246. >>> Maybe it to convert the "charset=iso-8859-2" to LC_ALL value. >>> >>> I would recommend to have a simple server built in PHP or Python and >>> try the simplest site possible w/o CSS and then add one w/o fonts first. >> >> I tried it on the simplest web page without any fonts, css etc. but it >> is still crashing. I removed the charset from the page so it is now not >> using ICU. >> >> https://hastebin.com/iyonapasuz.bash >> >> Let me know if I can try anything else. > > OK, it is getting closer. > > The crash comes from this call: > https://github.com/qtwebkit/qtwebkit/blob/qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSParser.cpp#L6907 > > > Can you commet comment this line, recompile qtwebkit and see what happens? I commented out the line number 6907 and rebuilding qt5-webkit now but it will take about 3 hours. > Either this line: > https://github.com/qtwebkit/qtwebkit/blob/qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSParser.cpp#L6897 > > does not work properly or this is broken: > https://github.com/qtwebkit/qtwebkit/blob/qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSValuePool.cpp#L121-L134 > > > I'd like to see to see the content of familyName when passed. Either via > breakpoint or with std::cout. Unfortunately, my C++ knowledge is > minimal. I recommend to write a minimal C++ app with a function call and > signature "const String& str" and then pass the string [1]. Since this > is a custom type, I don't know whether cout will work. You have to try. > > Michael > > > [1] > https://github.com/adobe/webkit/blob/master/Source/WTF/wtf/text/WTFString.h It is out of my knowledge. I will try it with newly rebuilt qt5-webkit and report soon. Then I will try to find how to track it with breakpoints in debuger. Thank you very much. I really appreciate your help. Kind regards Miroslav Lachman