Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 22 Feb 2017 11:44:12 +0000
From: Tobias Koch <>
To: musl <>
Subject: Crash in 'system' while executing '__clone'


the following code snippet

    #include <stdlib.h>

    int main(void)

segfaults while running inside a 1.1.16 musl-based chroot on a

    Linux debian 4.9.0-1-amd64 #1 SMP Debian 4.9.6-3 (2017-01-28) x86_64 GNU/Linux

host. The crash happens when __clone returns:

    Reading symbols from test...done.
    (gdb) break __clone
    Function "__clone" not defined.
    Make breakpoint pending on future shared library load? (y or [n]) y
    Breakpoint 1 (__clone) pending.
    (gdb) run
    Starting program: /home/tobias/test

    Breakpoint 1, __clone () at src/thread/x86_64/clone.s:5
    56xor %eax,%eax
    (gdb) next
    64mov $56,%al
    77mov %rdi,%r11
    8mov %rdx,%rdi
    9899mov %r8,%rdx
    1000mov %r9,%r8
    11mov 8(%rsp),%r10
    128mov %r11,%r9
    13and $-16,%rsi
    14sub $8,%rsi
    15mov %rcx,(%rsi)
    17test %eax,%eax
    (gdb) backup    git       pkgs      repo      spool     temp.txt  test      test.c    test.txt

    18jnz 1f
    __clone () at src/thread/x86_64/clone.s:27
    0x0000000000000000 in ?? ()

Any ideas what might be wrong or what I can do to investigate further?


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.