Discussion:
Processed: RE: #844781: libowfat FTBFS on s390x and mips64el: undefined reference to `__libc_waitpid'
(too old to reply)
Debian Bug Tracking System
2017-01-05 11:00:02 UTC
Permalink
Raw Message
tag -1 + patch
Bug #844781 [dietlibc] libowfat FTBFS on s390x and mips64: undefined reference
Added tag(s) patch.
--
844781: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844781
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Thorsten Glaser
2017-01-05 11:20:02 UTC
Permalink
Raw Message
The patch that solves this is attached.
I think the patch is broken, wait4() requires an additional
argument which must be zero for waitpid() emulation, not some
random stack (or register, depending on the architecture) garbage.

bye,
//mirabilos
--=20
St=C3=A9phane, I actually don=E2=80=99t block Googlemail, they=E2=80=99re j=
ust too utterly
stupid to successfully deliver to me (or anyone else using Greylisting
and not whitelisting their ranges). Same for a few other providers such
as Hotmail. Some spammers (Yahoo) I do block.
Debian Bug Tracking System
2017-01-05 11:30:01 UTC
Permalink
Raw Message
retitle -1 dietlibc: waitpid broken w/ -lpthread on s390, s390x, mips64, ia64
Bug #844781 [dietlibc] libowfat FTBFS on s390x and mips64el: undefined reference
Changed Bug title to 'dietlibc: waitpid broken w/ -lpthread on s390, s390x, mips64, ia64' from 'libowfat FTBFS on s390x and mips64el: undefined reference'.
tags -1 + confirmed
Bug #844781 [dietlibc] dietlibc: waitpid broken w/ -lpthread on s390, s390x, mips64, ia64
Added tag(s) confirmed.
tags -1 - patch
Bug #844781 [dietlibc] dietlibc: waitpid broken w/ -lpthread on s390, s390x, mips64, ia64
Removed tag(s) patch.
--
844781: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844781
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2017-01-05 16:10:01 UTC
Permalink
Raw Message
clone -1 -2
Bug #844781 [dietlibc] dietlibc: waitpid broken with -lpthread on s390, s390x, mips64, ia64
Bug 844781 cloned as bug 850276
retitle -2 Various regressions in unit tests when linking against -lpthread
Bug #850276 [dietlibc] dietlibc: waitpid broken with -lpthread on s390, s390x, mips64, ia64
Changed Bug title to 'Various regressions in unit tests when linking against -lpthread' from 'dietlibc: waitpid broken with -lpthread on s390, s390x, mips64, ia64'.
--
844781: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844781
850276: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850276
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Christian Seiler
2017-01-05 16:10:01 UTC
Permalink
Raw Message
Control: clone -1 -2
Control: retitle -2 Various regressions in unit tests when linking against -lpthread
The correct solution is to change the name of the function to
__libc_waitpid in __waitpid.c and to define a weak alias for
waitpid there. I'm already working on this (saw your initial email
where you reassigned this), and will do an upload soon together
with regression tests for this.
So I now started to run the test suite by also linking against -lpthread
and found two test suite failures already on amd64 (haven't tried the
other platforms yet) if just -lpthread is added. Since none of the
test suite run uses pthreads directly, this is because weak symbol
overrides in the pthreads library cause unrelated functions to fail.
Yikes.

I'm cloning this bug report to track that problem separately.

Regards,
Christian
Debian Bug Tracking System
2017-01-06 06:10:02 UTC
Permalink
Raw Message
tags -1 + pending
Bug #844781 [dietlibc] dietlibc: waitpid broken with -lpthread on s390, s390x, mips64, ia64
Added tag(s) pending.
--
844781: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844781
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2017-01-06 06:30:02 UTC
Permalink
Raw Message
Your message dated Fri, 06 Jan 2017 06:18:36 +0000
with message-id <E1cPNrI-00079u-***@fasolo.debian.org>
and subject line Bug#850276: fixed in dietlibc 0.34~cvs20160606-4
has caused the Debian Bug report #850276,
regarding dietlibc: libpthread overrides __errno_location even with TLS enabled
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
850276: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850276
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2017-01-06 06:30:02 UTC
Permalink
Raw Message
Your message dated Fri, 06 Jan 2017 06:18:36 +0000
with message-id <E1cPNrI-00079o-***@fasolo.debian.org>
and subject line Bug#844781: fixed in dietlibc 0.34~cvs20160606-4
has caused the Debian Bug report #844781,
regarding dietlibc: waitpid broken with -lpthread on s390, s390x, mips64, ia64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
844781: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844781
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...