From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6326 Path: news.gmane.org!not-for-mail From: Natanael Copa Newsgroups: gmane.linux.lib.musl.general Subject: Re: Webkit/JavascriptCore did not work with musl libc Date: Wed, 15 Oct 2014 12:02:11 +0200 Message-ID: <20141015120211.42a4f0db@ncopa-desktop.alpinelinux.org> References: <543E0D12.2010903@i-soft.com.cn> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1413367358 26392 80.91.229.3 (15 Oct 2014 10:02:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2014 10:02:38 +0000 (UTC) Cc: musl@lists.openwall.com To: =?ISO-8859-1?B?Kioq?= Original-X-From: musl-return-6339-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 15 12:02:31 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XeLPa-0005kV-AM for gllmg-musl@plane.gmane.org; Wed, 15 Oct 2014 12:02:30 +0200 Original-Received: (qmail 27804 invoked by uid 550); 15 Oct 2014 10:02:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 27791 invoked from network); 15 Oct 2014 10:02:28 -0000 In-Reply-To: <543E0D12.2010903@i-soft.com.cn> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-alpine-linux-musl) Xref: news.gmane.org gmane.linux.lib.musl.general:6326 Archived-At: On Wed, 15 Oct 2014 13:58:42 +0800 *** wrote: > Hi, all, > I build webkitgtk-2.4.4 and ewebkit2 under musl libc with > gcc-4.9.1(patched) and clang-3.5, the javascriptCore js engine did not > work as expected(with JIT enable or disable.) >=20 > for webkitgtk, jsc just output "Exception:" when run any js codes. > for ewebkit2, jsc just segfault with below backtrace: >=20 > #0 0x00000000008cf0c4 in WTFCrash () > #1 0x000000000065bb72 in WTF::PassRefPtr > JSC::parse(JSC::VM*, JSC::SourceCode const&, > JSC::FunctionParameters*, JSC::Identifier const&, > JSC::JSParserStrictness, JSC::JSParserMode, JSC::ParserError&, > JSC::JSTextPosition*, bool) () > #2 0x000000000077c6f0 in > JSC::BuiltinExecutables::createBuiltinExecutable(JSC::SourceCode const&, > JSC::Identifier const&) () > #3 0x000000000077cc73 in > JSC::BuiltinExecutables::functionPrototypeApplyCodeExecutable() () > #4 0x000000000076ee90 in > JSC::functionPrototypeApplyCodeGenerator(JSC::VM&) () > #5 0x00000000007c1a78 in > JSC::FunctionPrototype::addFunctionProperties(JSC::ExecState*, > JSC::JSGlobalObject*, JSC::JSFunction**, JSC::JSFunction**) () > #6 0x0000000000682f89 in JSC::JSGlobalObject::reset(JSC::JSValue) () > #7 0x00000000004f68c1 in JSC::JSGlobalObject::finishCreation(JSC::VM&) () > #8 0x00000000004f600c in GlobalObject::finishCreation(JSC::VM&, > WTF::Vector const&) () > #9 0x00000000004f01b8 in jscmain(int, char**) () > #10 0x00000000004eff5d in main () >=20 > The JSCore codes is too complex and I even can not figure out the buggy > codes quickly. >=20 > My environment is a customized linux with musl libc/wayland > only/gcc/clang/systemd and so on. >=20 > can Anybody who use a musl libc based distribution try and check it? for > webkitgtk2, there is no need to build it completely, just: > configure and "make jsc" then try it. Alpine Linux, x86_64, musl-1.1.5, gcc (Alpine 4.8.3) 4.8.3 ncopa-desktop:~$ apk version webkitgtk Installed: Available: webkitgtk-2.4.5-r1 =3D 2.4.5-r1=20 ncopa-desktop:~$ jsc-3 "hello" >>> Exception: RangeError: Maximum call stack size exceeded. Maybe the thread stack needs to be increased? >=20 > I am also working on it. >=20 -nc