Bug 579622
Summary: | [abrt] Arithmetic expansion does not trap 2 ** 63 / -1 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matt McCutchen <matt> | ||||
Component: | bash | Assignee: | Roman Rakus <rrakus> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 12 | CC: | rrakus, tsmetana | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | abrt_hash:fed561a6216f6b7f596b077f7e7821ffc2f5dc12 | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 579808 (view as bug list) | Environment: | |||||
Last Closed: | 2010-05-20 11:44: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: | |||||||
Attachments: |
|
Description
Matt McCutchen
2010-04-06 04:58:18 UTC
Created attachment 404601 [details]
File: backtrace
Bash specifically traps division by zero. If 2 ** 63 / -1 can result in a SIGFPE, bash should trap that too. (I'll admit it's unlikely that anyone will ever hit this in practice.) Thanks for the report. I will ask upstream what he thinks about it. This case is so easy to forget that it might be worth having a gnulib module for "division of untrusted integers without incurring SIGFPE". You can track the discussion on bash bug mailing list; http://www.mail-archive.com/bug-bash@gnu.org/msg07182.html Chet is not convinced of the need. I think you can easily use trap to catch it. It's not really possible to "catch" the SIGFPE with trap. When the trap handler returns, the faulting division will be performed again and the trap handler will be called again. There is no way to resume normal execution after the division. Ah, yes. You're right. There will not be any change here as discussed upstream. WONTFIX is a more accurate description of the decision made. The upstream discussion: http://lists.gnu.org/archive/html/bug-bash/2010-04/msg00020.html *** Bug 594473 has been marked as a duplicate of this bug. *** |