Date: Tue, 25 Feb 2020 17:27:46 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> To: Michael Osipov <1983-01-06@gmx.net> Cc: freebsd-ports@freebsd.org Subject: Re: Cannot build qt5-webkit with debug Message-ID: <b13a5af8-4a62-53d7-cc55-f8ace2956d9a@quip.cz> In-Reply-To: <cdfa694f-1adb-0db1-b6ea-719be5deca04@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> <23335a73-5853-eab2-5684-b40f430ec8c7@quip.cz> <nycvar.OFS.7.76.44444.807.2002241744450.61731@z.fncre.vasb> <nycvar.OFS.7.76.44444.807.2002241750480.61731@z.fncre.vasb> <12ae3631-1973-5a42-8aa2-2fb8b9b93f8b@quip.cz> <15dbf933-b04b-788f-5cab-0dc5ffdcc532@gmx.net> <1b7192f7-5ebe-8d28-6bd9-92c8a2097acf@quip.cz> <abf105f1-9407-4a03-f493-dbe154a15526@gmx.net> <79231bf9-6e7c-b5e6-9c8e-29edb921f18c@quip.cz> <cdfa694f-1adb-0db1-b6ea-719be5deca04@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b13a5af8-4a62-53d7-cc55-f8ace2956d9a>