[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-10 Thread Dmitry Goncharov
Follow-up Comment #10, bug #66499 (group make): Sounds like you had to do some investigation. Thank you for your report. ___ Reply to this item at: ___

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-10 Thread Heiko Eißfeldt
Follow-up Comment #9, bug #66499 (group make): Sure! I was testing a patch for gcc (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114542) regarding the -flto= option. When testing edge cases for , I found gcc hanging, which was caused by a blocked GNUmake child process. Of course these values were

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-09 Thread Dmitry Goncharov
Follow-up Comment #8, bug #66499 (group make): Thanks for review, Paul. Heiko, do you mind sharing the scenario that causes you to specify such high value of jobs? ___ Reply to this item at:

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-08 Thread Paul D. Smith
Update of bug #66499 (group make): Status:None => Fixed Open/Closed:Open => Closed Fixed Release:None => SCM Triage Status:None => Medium Effort ___

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-04 Thread Heiko Eißfeldt
Follow-up Comment #6, bug #66499 (group make): Thanks a lot for a quick fix! ___ Reply to this item at: ___ Message sent via Savannah https://savannah.g

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-03 Thread Dmitry Goncharov
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 -j68 make: warning: number of jobs is limited to 16384 hello, world make: 'all' is up to date. $ make -j6888

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-01 Thread Dmitry Goncharov
Follow-up Comment #4, bug #66499 (group make): Patch sv66499.diff in the attachment sets the write side of the pipe to non blocking mode and keeps writing until EAGAIN. Tested on linux 64 bit. i am going to test on solaris and report later. (file #56663) _

Re: [bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-01 Thread Paul Smith
On Sun, 2024-12-01 at 17:12 +0100, Henrik Carlqvist wrote: > On Sun,  1 Dec 2024 09:10:04 -0500 (EST) > "Paul D. Smith" wrote: > > F_GETPIPE_SZ will work on Linux but it's not portable (not part of > > POSIX > > fcntl) > > Suggestion: Use F_GETPIPE_SZ as a limit when it does exist, if not, > use

Re: [bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-01 Thread Henrik Carlqvist
On Sun, 1 Dec 2024 09:10:04 -0500 (EST) "Paul D. Smith" wrote: > F_GETPIPE_SZ will work on Linux but it's not portable (not part of POSIX > fcntl) Suggestion: Use F_GETPIPE_SZ as a limit when it does exist, if not, use some arbitrary big value which usually will be "big enough with a margin". I

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-12-01 Thread Paul D. Smith
Follow-up Comment #3, bug #66499 (group make): F_GETPIPE_SZ will work on Linux but it's not portable (not part of POSIX fcntl) ___ Reply to this item at: __

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-11-30 Thread Eli Zaretskii
Follow-up Comment #2, bug #66499 (group make): > Unfortunately I know of no way to determine how large a pipe a system > supports short of filling one up. What about fcntl with F_GETPIPE_SZ? ___ Reply to this item at:

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-11-30 Thread Paul D. Smith
Follow-up Comment #1, bug #66499 (group make): The problem is that we are trying to write that many tokens into the jobserver pipe, and it's hanging because there is nothing reading from the pipe. The number of jobs that can be managed depends on how large a pipe the system supports. Unfortunate

[bug #66499] Parameter for option -j seems not to be validated and can cause hangs

2024-11-30 Thread Heiko Eißfeldt
URL: Summary: Parameter for option -j seems not to be validated and can cause hangs Group: make Submitter: hexcoder Submitted: Sat 30 Nov 2024 11:06:09 AM UTC Severity: 3 - No