[bug #66499] Parameter for option -j seems not to be validated and can cause hangs
Dmitry Goncharov <[email protected]>
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <[email protected]> |
Follow-up Comment #5, bug #66499 (group make):
Tested on sun 64 and 32 bits and linux 64 and 32 bits.
Here is an example
$ ls
makefile
$ cat makefile
all:; $(info hello, world)
$ make -j688888
make: warning: number of jobs is limited to 16384
hello, world
make: 'all' is up to date.
$ make -j688888 --jobserver-style=pipe
make: warning: number of jobs is limited to 16384
hello, world
make: 'all' is up to date.
On top of the new test in the attached patch, i'd like to add the following
test
diff --git a/tests/scripts/features/jobserver
b/tests/scripts/features/jobserver
index 3c8a2865..d2795df9 100644
--- a/tests/scripts/features/jobserver
+++ b/tests/scripts/features/jobserver
@@ -216,6 +216,10 @@ if ($port_type eq 'UNIX') {
run_make_test(q!
all:; $(info hello, world)
!, '-j688777', "/hello, world/");
+
+ run_make_test(q!
+all:; $(info hello, world)
+ !, '-j688777 --jobserver-style=pipe', "/hello, world/");
}
1;
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66499>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ0/gyAAKCRCqLAuaBUf3 TkpwAP4vrlJ5WwPn0rRUmQa78Eq1EwdKG07hD+wg8ypuukb6XwEA6gA8IgcGkINL /zCxMAlS7MWyPNQufJKFMEruZ+oQ3Ag= =CxNP -----END PGP SIGNATURE-----