Opened 13 years ago
#227 new defect
More than 64 jobs
Reported by: | Md Abdur Rahim | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | component1 | Version: | |
Keywords: | Cc: |
Description
When specifying the number of jobs, any value greater than MAXJOBS (in jam.h) eventually leads to a segfault when setting up the file descriptors. The jam.h header indicates that MAXJOBS is "silently enforced". But looking at jam.c, the parsing of the -j option (indeed, even PARALLELISM if set) does not limit the maximum number of jobs.
In some places, MAXJOBS is enforced (notably read_output() in execnt.c). But in other places, 'globs.jobs' is not bounded, such as in populate_file_descriptors().
Perhaps globs.jobs should be limited to MAXJOBS in main()?
Note:
See TracTickets
for help on using tickets.