Bug 1180392
Summary: | gdbm-1.8.0-37.el6 refuses to store into a database opened for reading and writing | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Petr Pisar <ppisar> | ||||||||
Component: | gdbm | Assignee: | Marek Skalický <mskalick> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Robin Hack <rhack> | ||||||||
Severity: | urgent | Docs Contact: | |||||||||
Priority: | urgent | ||||||||||
Version: | 6.6 | CC: | databases-maint, dowdle, fkrska, gassmann, hhorak, jkurik, lzachar, mschuppe, mskalick, nparmar, olchansk, ovasik, pasteur, psklenar, rhack, rmj, thomas.oulevey | ||||||||
Target Milestone: | rc | Keywords: | Regression | ||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | gdbm-1.8.0-38.el6 | Doc Type: | Bug Fix | ||||||||
Doc Text: |
Cause: Wrong patch applied to fix an issue when opening non-existing file in ruby.
Consequence: gdbm uses wrong internal flags for file handlers and refuses to store into a database opened for reading and writing.
Fix: Internal gdbm flags for file handlers are fixed.
Result: gdbm stores into a database opened for reading and writing.
|
Story Points: | --- | ||||||||
Clone Of: | |||||||||||
: | 1183570 (view as bug list) | Environment: | |||||||||
Last Closed: | 2015-01-27 14:54:46 UTC | Type: | Bug | ||||||||
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: | 1183570, 1211527 | ||||||||||
Attachments: |
|
Description
Petr Pisar
2015-01-09 06:16:58 UTC
This breaks perl tests suite and NIS database compilation. Created attachment 978095 [details]
Fix gdbm open flags
Fix in #629640 was backported from gdbm-1.10. But there had to be changed also gdbmstore.c file. This patch fix this bug. Created attachment 978190 [details] Minimal patch to fix the original issue (In reply to Marek Skalický from comment #5) > Fix in #629640 was backported from gdbm-1.10. But there had to be changed > also gdbmstore.c file. And also gdbmdelete.c and gdbmclose.c would need a change, but all these changes are not necessary to fix the original issue. They do not do any harm if done all together, but since we want the minimal patch, only the one-line typo corresponding with the following changelog item should actually be fixed: * gdbmopen.c: Fix typo; s/GDBM_OPENMASK/GDBM_WRITER/ The attached patch is actually the correct fix that should have been applied as a fix for the original bug report. Created attachment 979036 [details] reproducer for bz#1180392 Steps to reproduce (use the attached file 'test_store.c': 1. #> yum install gdbm-devel 2. $> gcc -lgdbm test_store.c 3. $> ./a.out 4. $> echo $? Actual results: error while storing file: Success 1 Expected results: 0 *** Bug 1183180 has been marked as a duplicate of this bug. *** *** Bug 1184254 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0089.html *** Bug 1209448 has been marked as a duplicate of this bug. *** |