Bug 437008
| Summary: | fmtutil can easily loop upon a misconfiguration | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stepan Kasal <kasal> | ||||
| Component: | texlive | Assignee: | Jindrich Novy <jnovy> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | rawhide | CC: | dennis, pertusus, pknirsch | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-03-12 17:17:42 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 430962 | ||||||
| Attachments: |
|
||||||
Created attachment 297639 [details]
proposed patch
Applied, thanks! Putting this on the beta tracker, just for keeping people on the same page. Requesting it goes in the beta. *** Bug 431516 has been marked as a duplicate of this bug. *** ... and I can proudly announce that Karl Berry accepted this fix for the upstream TeXlive. :-) |
Description of problem: automatic format generation (mktexfmt, which is just a symlink to fmtutil these days) can easily get into in infinite loop and fork new and new processes. It should abort with an error. Version-Release number of selected component (if applicable): texlive-2007-16.fc9 To Reproduce: # mv /usr/share/texmf/tex/latex/latexconfig/latex.ini{,.hide} # rm /var/lib/texmf/web2c/pdftex/{xml,la}tex.fmt # fmtutil-sys --byfmt xmltex 2>&1|less The output looks like this: fmtutil: running `pdftex -ini -jobname=xmltex -progname=xmltex &latex xmltex.ini' ... This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (INITEX) %&-line parsing enabled. kpathsea: Running mktexfmt latex.fmt Sorry, I can't find the format `latex.fmt'; will try `xmltex.fmt'. kpathsea: Running mktexfmt xmltex.fmt fmtutil: running `pdftex -ini -jobname=xmltex -progname=xmltex &latex xmltex.ini' ... Observe that the last verse of the song is exactly the same as the first one: yes, we are there. Expected results: The script should display some politically ioncorrect sentences to express clearly that it does not feel happy ... and then _quit_.