X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id A9FDADC06AF for ; Wed, 19 Nov 2014 16:44:20 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id kq14so565697pab.34 for ; Wed, 19 Nov 2014 08:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=0nYdNtxKy/kgkwM1oMpMnr5yrjehTkMfxGX27V1ymMw=; b=r9zttSyoQoKKMHrgrY5wujGa0hZANTnvPWoX0R2FeV2qzkgHsE75CYehubg2v/nTPT 2LXXGM3hB1ZqLSV9gLA4zFOWdFuvPWyjlIUHC7bs1cXg/Az+AvddRi8HjVjGEhQWujqH vXF3nAwKPd1pZZ7KlxdyheWq8Z7c0WEBUAfubfeW/5mp+MgOv2wez9c2OGL8vIS780f9 14Fb1pXKiogX+i6qS3y5RmxY2puoLdNiSee5gQRttxdgG6fgx2w7jBSGjsiRFqphwsaF 4ZxhIKLIvuvXlADHtxkVLLIgnWXFNHQl7Jpv5TsEIgUWowbK2J20dRRbLZbICuCYFE9B uSqQ== X-Received: by 10.68.221.162 with SMTP id qf2mr22112212pbc.148.1416415459474; Wed, 19 Nov 2014 08:44:19 -0800 (PST) Received: from newbook ([50.0.227.65]) by mx.google.com with ESMTPSA id rd8sm2242648pdb.58.2014.11.19.08.44.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Nov 2014 08:44:18 -0800 (PST) Date: Wed, 19 Nov 2014 08:44:15 -0800 From: Isaac Dunham To: musl@lists.openwall.com, alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] webkitfltk segfaults in do_relocs Message-ID: <20141119164412.GB16895@newbook> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I've been trying to get WebkitFLTK[1] working on Alpine, and I have it building. But as usual, that's the easy part. The test program, Source/WebKit/fltk/testapp/testapp, segfaults in do_relocs. I'm attaching the output of bt full. Build dependencies include: g++ >= 4.7.3 python2 perl ruby icu-dev cairo-dev harfbuzz-dev libxslt-dev sqlite-dev fltk-dev harfbuzz must be built with ICU, as alpine does; fltk must be 1.3.3 or later; Alpine provides python2 as python. Build directions are in README.asciidoc, and amount to: make -C Source/WTF/wtf && \ make -C Source/JavaScriptCore gen && \ make -C Source/JavaScriptCore && \ make -C Source/WebCore && \ make -C Source/WebKit/fltk Additionally, at least a gig of RAM per thread will be needed, and a very fast processor or lots of time. On my laptop with an Atom N270 and a gigabyte of ram, I get occasional swap thrashing, and the compilation takes a little over 11 hours. So if someone who has a faster system can look at this, I'd be grateful. Thank you, Isaac Dunham [1] https://github.com/clbr/webkitfltk --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="wkfltk.bt" (gdb) bt full #0 0xb7f98b58 in do_relocs (dso=dso@entry=0xb7ffd570 , rel=0x5440ac, rel_size=23504, stride=2) at src/ldso/dynlink.c:365 base = 0x400000 "\177ELF\001\001\001" syms = 0x402730 strings = 0x407db0 "" sym = 0x403bb0 name = 0x408d0f "exp" ctx = astype = sym_index = def = {sym = , dso = 0xb7ffd610 } reloc_addr = 0xc45f10 sym_val = tls_val = 163891 addend = #1 0xb7f98cb3 in reloc_all (p=p@entry=0xb7ffd570 ) at src/ldso/dynlink.c:895 dyn = {201243774, 14263, 6128, 48558780, 364, 32176, 10032, 0, 0, 0, 32242, 16, 1356908, 23348355, 0, 30905, 0, 67428, 1283352, 8, 17, 3086997596, 0, 1350780, 0, 47786180, 0, 84, 0, 0, 0, 0, 0, 0} #2 0xb7f997c1 in __dynlink (argc=1, argv=) at src/ldso/dynlink.c:1308 aux = {2189687800, 0, 0, 4194356, 32, 9, 4096, 3086458880, 0, 5569354, ---Type to continue, or q to quit--- 0, 1000, 1000, 1000, 1000, 3221224859, 3219782647, 100, 0, 0, 0, 0, 0, 0, 0, 3221224843, 0, 0, 0, 0, 0, 3221225402, 3086455840, 3086454784, 0, 0, 0, 0} i = phdr = ehdr = builtin_dsos = {{base = 0x400000 "\177ELF\001\001\001", name = 0xbfffffba "/home/idunham/src/webkitfltk/Source/WebKit/fltk/testapp/./testapp", dynv = 0x324f124, next = 0x32669a0, prev = 0x0, phdr = 0x400034, phnum = 9, phentsize = 32, refcnt = 0, syms = 0x402730, hashtab = 0x40016c, ghashtab = 0x0, versym = 0x40fba2, strings = 0x407db0 "", map = 0x400000 "\177ELF\001\001\001", map_len = 48656384, dev = 0, ino = 0, global = 1 '\001', relocated = 0 '\000', constructed = 0 '\000', kernel_mapped = 1 '\001', deps = 0x0, needed_by = 0x0, rpath_orig = 0x40f669 "/usr/lib", rpath = 0x40f669 "/usr/lib", tls_image = 0x31928c4, tls_len = 0, tls_size = 16, tls_align = 4, tls_id = 1, tls_offset = 16, relro_start = 47783936, relro_end = 48562176, new_dtv = 0x0, new_tls = 0x0, new_dtv_idx = 0, new_tls_idx = 0, td_index = 0x0, fini_next = 0x0, shortname = 0x0, buf = 0xb7ffd610 ""}, { base = 0xb7f7a000 "\177ELF\001\001\001", ---Type to continue, or q to quit--- name = 0x400154 "/lib/ld-musl-i386.so.1", dynv = 0xb7ffceec, next = 0xb7ffd6b0 , prev = 0xb5a55e50, phdr = 0xb7f7a034, phnum = 6, phentsize = 32, refcnt = 0, syms = 0xb7f803d0, hashtab = 0xb7f7a0f4, ghashtab = 0xb7f7ce60, versym = 0x0, strings = 0xb7f878f0 "", map = 0xb7f7a000 "\177ELF\001\001\001", map_len = 548864, dev = 0, ino = 0, global = 1 '\001', relocated = 1 '\001', constructed = 0 '\000', kernel_mapped = 1 '\001', deps = 0x0, needed_by = 0x0, rpath_orig = 0x0, rpath = 0x0, tls_image = 0x0, tls_len = 0, tls_size = 0, tls_align = 0, tls_id = 0, tls_offset = 0, relro_start = 532480, relro_end = 536576, new_dtv = 0x0, new_tls = 0x0, new_dtv_idx = 0, new_tls_idx = 0, td_index = 0x0, fini_next = 0x0, shortname = 0xb7fd7b87 "libc.so", buf = 0xb7ffd6b0 ""}, { base = 0xb7f7b000 "", name = 0xb7fd7eee "", dynv = 0xb7f79308, next = 0xb5a55f10, prev = 0xb7ffd610 , phdr = 0xb7f79034, phnum = 4, phentsize = 32, refcnt = 0, syms = 0xb7f790dc, hashtab = 0xb7f790b4, ghashtab = 0x0, versym = 0xb7f79182, strings = 0xb7f7912c "", map = 0x0, map_len = 0, dev = 0, ino = 0, global = 1 '\001', relocated = 1 '\001', constructed = 0 '\000', kernel_mapped = 0 '\000', deps = 0x0, needed_by = 0x0, rpath_orig = 0x0, rpath = 0x0, tls_image = 0x0, tls_len = 0, ---Type to continue, or q to quit--- tls_size = 0, tls_align = 0, tls_id = 0, tls_offset = 0, relro_start = 0, relro_end = 0, new_dtv = 0x0, new_tls = 0x0, new_dtv_idx = 0, new_tls_idx = 0, td_index = 0x0, fini_next = 0x0, shortname = 0xb7fd7c4c "linux-gate.so.1", buf = 0xb7ffd750 ""}} app = 0xb7ffd570 lib = 0xb7ffd610 vdso = 0xb7ffd6b0 env_preload = vdso_base = auxv = envp = 0xbffffc8c initial_tls = #3 0xb7f9a1fc in _dlstart () at src/ldso/i386/start.s:12 --lrZ03NoBR/3+SXJZ-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---