Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Cause: Anacron didn't check configuration file well.
Consequence: Anacron segfaulted with incorrect configuration like START_HOURS_RANGE=0
Fix: Configuration is now checked properly.
Result: No segfaults by anacron configuration.
Created attachment 825148[details]
patch to correctly check match_rx return codes
+++ This bug was initially created as a clone of Bug #1031383 +++
Description of problem:
anacron does not correctly check configuration parameters for validity and can segfault on certain data types
The return code from the match_rx calls in readtab.c are not being checked correctly,
Version-Release number of selected component (if applicable):
cronie-1.4.4-10.el6
How reproducible:
Always
Steps to Reproduce:
1. Set START_HOURS_RANGE=0
Actual results:
Segmentation fault
Additional info:
There is also a possible divide-by-zero segfault if RANDOM_DELAY=0.
Switching back to ASSIGNED. I believe the patch introduced a regression.
# rpm -qa | grep cron
cronie-anacron-1.4.11-7.el7.x86_64
cronie-1.4.11-7.el7.x86_64
with
RANDOM_DELAY=45
in /etc/anacrontab I am getting:
# anacron -f -d
Anacron started on 2014-01-20
anacron: Regex error reading /etc/anacrontab
anacron: Aborted
It worked with cronie-1.4.11-6.el7
Comment 3Marcela Mašláňová
2014-01-20 17:12:37 UTC
It was already opened as rhbz#1031384. Which one do you want to close?
(In reply to Marcela Mašláňová from comment #3)
> It was already opened as rhbz#1031384. Which one do you want to close?
Hi Marcela, seems like a wrong bug reference (or wrong bug for this comment).
Comment 5Marcela Mašláňová
2014-01-21 08:01:12 UTC
*** Bug 1055549 has been marked as a duplicate of this bug. ***
Comment 6Marcela Mašláňová
2014-01-22 14:15:41 UTC
Coverity found another problem in checking values. Fixed in new build.
Comment 9Marcela Mašláňová
2014-02-06 09:49:56 UTC
*** Bug 1062132 has been marked as a duplicate of this bug. ***
------- Comment From mgrf.com 2014-02-21 08:55 EDT-------
This is verified included in snap 7 - closing on IBM site (for System z only as this is a DUP on Red Hat site)
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.