Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 15 Jan 2024 23:30:08 +0100
From: Szabolcs Nagy <>
To: Cody Wetzel <>
Cc: Natanael Copa <>,,
	Markus Wichmann <>
Subject: Re: Segmentation fault musl 1.2.4

* Cody Wetzel <> [2024-01-12 17:10:24 -0600]:
> I did actually find that stackoverflow post and tried spinning up a new
> container but the results don't provide any useful information...
> / # /tmp/ /usr/bin/gdb --args ls -l /tmp
> > GNU gdb (GDB) 12.1
> > Copyright (C) 2022 Free Software Foundation, Inc.
> > License GPLv3+: GNU GPL version 3 or later <
> >>
> > This is free software: you are free to change and redistribute it.
> > There is NO WARRANTY, to the extent permitted by law.
> > Type "show copying" and "show warranty" for details.
> > This GDB was configured as "armv7-alpine-linux-musleabihf".
> > Type "show configuration" for configuration details.
> > For bug reporting instructions, please see:
> > <>.
> > Find the GDB manual and other documentation resources online at:
> >     <>.
> >
> > For help, type "help".
> > Type "apropos word" to search for commands related to "word"...
> > Reading symbols from ls...
> > (No debugging symbols found in ls)
> > (gdb) run
> > Starting program: /bin/ls -l /tmp
> > During startup program terminated with signal SIGSEGV, Segmentation fault.
> >

so i looked at alpine armv7 binaries and they seem to be built with
4k page size.

since the elf files are not possible to map with 32k pages, it is
expected that they crash on exec in the kernel and thus you get no

i'm not sure why gdb works, unless it's an old gdb binary that's built
with large pagesize support.

an easy way to verify is to compare proram headers of old and new
binaries like

readelf -lW /tmp/

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.