Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 18 Jul 2018 18:39:40 +0200
From: Reiner Herrmann <reiner@...ner-h.de>
To: musl@...ts.openwall.com
Subject: Segmentation fault in static binaries built with recent binutils

Hi,

Debian recently updated binutils from 2.30 to 2.31.
When compiling simple static binaries with musl (1.19 and git)
they segfault on startup (dynamic linking still works fine).
With the previous binutils version it is running successfully.

  $ cat test.c 
  int main() { return 0; }
  $ musl-gcc -ggdb3 -O0 -static test.c
  $ gdb ./a.out 
  GNU gdb (Debian 8.1-3) 8.1
  [...]
  Reading symbols from ./a.out...done.
  (gdb) run
  Starting program: /tmp/test/a.out 
  
  Program received signal SIGSEGV, Segmentation fault.
  0x000000000040159d in static_init_tls ()
  (gdb) bt
  #0  0x000000000040159d in static_init_tls ()
  #1  0x0000000000000000 in ?? ()

See also: https://ci.debian.net/packages/m/musl/unstable/amd64/

Is this a bug in musl or should I report it to binutils?

Kind regards,
   Reiner

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

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.