mailing list of musl libc
 help / color / mirror / code / Atom feed
* webkitfltk segfaults in do_relocs
@ 2014-11-19 16:44 Isaac Dunham
  2014-11-19 16:50 ` Rich Felker
  2014-11-22  5:24 ` webkitfltk segfaults in do_relocs (partly solved) Isaac Dunham
  0 siblings, 2 replies; 11+ messages in thread
From: Isaac Dunham @ 2014-11-19 16:44 UTC (permalink / raw)
  To: musl, alpine-devel

[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]

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

[-- Attachment #2: wkfltk.bt --]
[-- Type: text/plain, Size: 5037 bytes --]

(gdb) bt full
#0  0xb7f98b58 in do_relocs (dso=dso@entry=0xb7ffd570 <builtin_dsos.4209>, 
    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 = <optimized out>
        astype = <optimized out>
        sym_index = <optimized out>
        def = {sym = <optimized out>, dso = 0xb7ffd610 <builtin_dsos.4209+160>}
        reloc_addr = 0xc45f10 <expThunk+9>
        sym_val = <optimized out>
        tls_val = 163891
        addend = <optimized out>
#1  0xb7f98cb3 in reloc_all (p=p@entry=0xb7ffd570 <builtin_dsos.4209>)
    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=<optimized out>)
    at src/ldso/dynlink.c:1308
        aux = {2189687800, 0, 0, 4194356, 32, 9, 4096, 3086458880, 0, 5569354, 
---Type <return> to continue, or q <return> 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 = <optimized out>
        phdr = <optimized out>
        ehdr = <optimized out>
        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 <builtin_dsos.4209+160> ""}, {
            base = 0xb7f7a000 "\177ELF\001\001\001", 
---Type <return> to continue, or q <return> to quit---
            name = 0x400154 "/lib/ld-musl-i386.so.1", dynv = 0xb7ffceec, 
            next = 0xb7ffd6b0 <builtin_dsos.4209+320>, 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 <builtin_dsos.4209+320> ""}, {
            base = 0xb7f7b000 "", name = 0xb7fd7eee "", dynv = 0xb7f79308, 
            next = 0xb5a55f10, prev = 0xb7ffd610 <builtin_dsos.4209+160>, 
            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 <return> to continue, or q <return> 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 <builtin_tls> ""}}
        app = 0xb7ffd570 <builtin_dsos.4209>
        lib = 0xb7ffd610 <builtin_dsos.4209+160>
        vdso = 0xb7ffd6b0 <builtin_dsos.4209+320>
        env_preload = <optimized out>
        vdso_base = <optimized out>
        auxv = <optimized out>
        envp = 0xbffffc8c
        initial_tls = <optimized out>
#3  0xb7f9a1fc in _dlstart () at src/ldso/i386/start.s:12

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-11-22  5:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-19 16:44 webkitfltk segfaults in do_relocs Isaac Dunham
2014-11-19 16:50 ` Rich Felker
2014-11-19 19:04   ` Isaac Dunham
2014-11-19 19:13     ` Rich Felker
2014-11-19 19:48       ` Isaac Dunham
2014-11-19 19:58         ` Rich Felker
2014-11-19 20:20           ` Isaac Dunham
2014-11-19 20:56             ` Rich Felker
2014-11-19 22:43               ` Isaac Dunham
2014-11-20  6:14                 ` Timo Teras
2014-11-22  5:24 ` webkitfltk segfaults in do_relocs (partly solved) Isaac Dunham

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).