On Mon, 24 Feb 2020, Miroslav Lachman wrote:
"phantomjs" can run simple "Hello world" example https://github.com/ariya/phantomjs/blob/master/examples/hello.jsBut when I try to run some real work (fetching web page) it segfaulted.
Looks like Qt5Webkit has a problem reading CSS for the web page you have been testing it on. Can you share the code of the page?
The output is long so I put it on line: https://hastebin.com/ibefonagob.bash
* thread #1, name = 'phantomjs', stop reason = signal SIGSEGV: invalid address
(fault address: 0x10)
frame #9: 0x0000000803992791
libQt5WebKit.so.5`WebCore::CSSValuePool::createFontFamilyValue(this=0x0000000806ee1d18,
familyName=0x000000081551f338, fromSystemFontID=Yes) at CSSValuePool.cpp:129:63
frame #10: 0x00000008039cf92c
libQt5WebKit.so.5`WebCore::CSSParser::parseSystemFont(this=0x00007fffffffa490,
important=false) at CSSParser.cpp:6907:54
frame #11: 0x00000008039b6beb
libQt5WebKit.so.5`WebCore::CSSParser::parseValue(this=0x00007fffffffa490,
propId=CSSPropertyFont, important=false) at CSSParser.cpp:3058:13
frame #12: 0x00000008043d74bf
libQt5WebKit.so.5`cssyyparse(parser=0x00007fffffffa490) at CSSGrammar.y:1547:39
frame #13: 0x00000008039aa3ed
libQt5WebKit.so.5`WebCore::CSSParser::parseSheet(this=0x00007fffffffa490,
sheet=0x00000008155f5e40, string=0x00007fffffffb888,
textPosition=0x00007fffffffb650, ruleSourceDataResult=0x0000000000000000,
logErrors=false) at CSSParser.cpp:423:5
Looks like it has some trouble parsing font declarations in the HTML/CSS code
you have been testing
on. This can be a webkit bug...
Would be good to have a minimal HTML/CSS testcase to reproduce this and this
should
probably be reported upstream.
Marcin
smime.p7s
Description: S/MIME Cryptographic Signature
