Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613288 - >=sys-libs/glibc-2.24: posix_spawn configure test segfaults on ia64
Summary: >=sys-libs/glibc-2.24: posix_spawn configure test segfaults on ia64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: IA64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/bugzilla/show_...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-20 04:12 UTC by Matt Turner
Modified: 2017-03-20 17:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2017-03-20 04:12:37 UTC
checking for library containing posix_spawn... none required
checking for posix_spawn... yes
checking whether posix_spawn works... ./configure: line 17020:  6008 Segmentation fault      ./conftest$ac_exeext > conftest.out
no

Copying out the C program from AC_DEFUN([gl_POSIX_SPAWN_WORKS] inside m4/posix_spawn.m4 and running it indeed segfaults when it reaches posix_spawn():

guppy m4-1.4.18 # gcc -ggdb3 -O0 -mtune=itanium2 t.c -o t
guppy m4-1.4.18 # gdb ./t
[...]
(gdb) r
Starting program: /var/tmp/portage/sys-devel/m4-1.4.18/work/m4-1.4.18/t 
Failed to read a valid object file image from memory.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.

Presumably an implementation bug in glibc. I'm using glibc-2.24-r1.
Comment 1 SpanKY gentoo-dev 2017-03-20 06:50:09 UTC
need to finish letting these bisects finish, but i suspect this is bug 608788
Comment 2 SpanKY gentoo-dev 2017-03-20 08:46:04 UTC
ok, it's not the same issue as bug 608788 exactly, but the same upstream commit caused it.  basically, the ia64-specific clone function is being called with the wrong stack base.
Comment 3 SpanKY gentoo-dev 2017-03-20 15:08:32 UTC
got my fix merged upstream, and i cherry picked it back to the 2.24 & 2.25 branches, and to the Gentoo 2.24 & 2.25 patchsets.  and those are now in the tree.
Comment 4 Matt Turner gentoo-dev 2017-03-20 17:06:48 UTC
Thanks Mike. Confirmed working.