#642706 ocamlbuild: questionable job control

Package:
ocamlbuild
Source:
ocamlbuild
Description:
Build tool for building OCaml libraries and programs
Submitter:
Mònica Ramírez Arceda
Date:
2021-07-17 09:48:04 UTC
Severity:
important
Tags:
#642706#5
Date:
2011-09-24 17:53:50 UTC
From:
To:
Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
http://people.debian.org/~lucas/logs/2011/09/23/bin-prot_1.3.1-3_lsid64.buildlog

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

#642706#10
Date:
2011-09-24 21:17:39 UTC
From:
To:
tags 642706 + unreproducible
thanks

Le 24/09/2011 19:53, Mònica Ramírez Arceda a écrit :

I cannot reproduce this. Can anyone else?


Cheers,

#642706#17
Date:
2011-09-24 22:00:29 UTC
From:
To:
I get the same error.  Here's what I did to reproduce it.

$ apt-get source libbin-prot-camlp4-dev
$ cd bin-prot-1.3.1/
$ DIST=sid ARCH=amd64 git-pbuilder update
$ pdebuild --pbuilder cowbuilder -- --basepath /var/cache/pbuilder/base-sid-amd64.cow

#642706#22
Date:
2011-09-25 13:38:06 UTC
From:
To:
Le 25/09/2011 00:00, Eric Cooper a écrit :

Well... this is very strange. The same steps (except that my chroot is
in /var/cache/pbuilder/base.cow) do not produce any error on amd64. But
I get the error on i386 and armel.

Same symptoms with bug #642835. Investigating...


Cheers,

#642706#27
Date:
2011-09-25 15:59:30 UTC
From:
To:
tags 642706 - unreproducible
thanks

Le 25/09/2011 15:38, Stéphane Glondu a écrit :

In my amd64 sid chroot, /bin/sh was symlinked to bash. After linking it
to dash, I can reproduce the error. The error disappears if I downgrade
dash to 0.5.5.1-7.4. I'm not yet sure who's to blame here... I'm putting
dash maintainers in the loop.


Cheers,

#642706#34
Date:
2011-09-25 16:22:18 UTC
From:
To:
Yes, I had /bin/sh -> dash in my chroot also.  Nice detective work.
#642706#39
Date:
2011-09-25 17:41:30 UTC
From:
To:
block 642835 by 642922
block 642706 by 642922
severity 642922 serious
thanks

Le 25/09/2011 19:28, Stéphane Glondu a écrit :

Raising severity, since it blocks serious bugs.


Cheers,

#642706#46
Date:
2011-09-25 18:39:44 UTC
From:
To:
severity 642922 important
quit

Stéphane Glondu wrote:
[...]

Thanks for letting me know.  This is important (and a regression), but
it should be possible to work around in ocamlbuild as easily as using
"bash", so I don't see why that would make it release-critical.

I'll investigate further to see if the underlying problem is an
assumption in the relevant scripts that would be violated by ksh93,
too, or just a dash bug.

Thanks,
Jonathan

#642706#51
Date:
2011-10-16 11:04:42 UTC
From:
To:
Hi,

Mònica Ramírez Arceda wrote:
[...]

Thanks again for all your work in tracking these down!  I assume
bin-prot/sid and sexplib310 build correctly again against dash
0.5.7-2.

So what should be done with these bugs?  I am tempted to say:

 - lower severity to important, since we have a workaround
 - reassign to current ocaml-nox
 - merge and mark as forwarded to
http://caml.inria.fr/mantis/view.php?id=5371

Does that sound reasonable?

Jonathan
who is looking forward to having a few fewer RC bugs on his radar :)

#642706#56
Date:
2011-10-16 12:07:11 UTC
From:
To:
merge 642706 642835
severity 642706 important
reassign 642706 ocaml-nox
found 642706 3.12.0-7
retitle 642706 ocamlbuild: questionable job control
forwarded 642706 http://caml.inria.fr/mantis/view.php?id=5371
affects 642706 src:bin-prot src:sexplib310
thanks

Le 16/10/2011 13:04, Jonathan Nieder a écrit :

Agreed.

#642706#93
Date:
2020-05-27 15:42:44 UTC
From:
To:
Herbert Xu wrote:
[...]
<https://github.com/ocaml/ocamlbuild/issues/164>, but
https://github.com/ocaml/ocamlbuild/commit/00e05f686e15b07ac4268fcd10cf3738a5c28467
was applied with the proposed fix in ocamlbuild 0.9.0.

I suspect this means that the ocamlbuild bug was indeed fixed, and
that we should be able to reinstate the patch.

Except...  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=642835;msg=55
says the bug is present in ocamlbuild 0.10.1.  Ximin, do you remember
where that version number came from?  Is it possible that the bug is
*not* present in that version?

Thanks,
Jonathan

#642706#98
Date:
2021-07-17 09:39:29 UTC
From:
To:
 ❦ 27 May 2020 08:42 -07, Jonathan Nieder:

Once bullseye is released, would it be possible to reinstate the patch?
Or maybe in experimental. This way, it will be easier to check if the
problem is still present. Moreover, everyone should not carry the burden
of failures from ocamlbuild to correctly track processes. Another
workaround would be to use bash for ocamlbuild if the problem is still
here.

While the footprint of /bin/sh is small, it is not zero and since most
shells optimize this use case, many programs assume they can spawn
process through `/bin/sh -c` at no cost. In my case, I was curious why
processes spawned by i3 and its ecosystem were all leaving a /bin/sh
instance behind.