Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1770072
Summary: | [abrt] ibus-typing-booster: makedirs(): os.py:221:makedirs:FileExistsError: [Errno 17] File exists: '/home/glassy/.local/share/ibus-typing-booster/data' | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | ropermantena | ||||||||||||||
Component: | ibus-typing-booster | Assignee: | Mike FABIAN <mfabian> | ||||||||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||
Priority: | unspecified | ||||||||||||||||
Version: | 31 | CC: | 1419004855, anish.developer, hcgalvanit, i18n-bugs, justin.smestad, live, manojthoranala, me, mfabian, m.jayk, p.kibbey, preston.kibbey, ricky.tigg, satyendrax, sean, yanqiyu01 | ||||||||||||||
Target Milestone: | --- | ||||||||||||||||
Target Release: | --- | ||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||
OS: | Unspecified | ||||||||||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/3f8002174415d333abeaac5d6eb860ed2763550c | ||||||||||||||||
Whiteboard: | abrt_hash:2670921efebf7bcad72573b1e26a7af7ab099357;VARIANT_ID=workstation; | ||||||||||||||||
Fixed In Version: | ibus-typing-booster-2.7.3-1.fc30 ibus-typing-booster-2.7.3-1.fc31 | Doc Type: | If docs needed, set a value | ||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||
Clone Of: | Environment: | ||||||||||||||||
Last Closed: | 2019-12-05 01:10:34 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
ropermantena
2019-11-08 04:02:04 UTC
Created attachment 1633843 [details]
File: backtrace
Created attachment 1633844 [details]
File: cpuinfo
Created attachment 1633845 [details]
File: environ
Created attachment 1633846 [details]
File: mountinfo
Created attachment 1633847 [details]
File: namespaces
Created attachment 1633848 [details]
File: open_fds
*** Bug 1713963 has been marked as a duplicate of this bug. *** *** Bug 1764520 has been marked as a duplicate of this bug. *** *** Bug 1768016 has been marked as a duplicate of this bug. *** I think this will fix it: $ git show commit 5f0a46a5dbf4f99fb1eae2fd80831f60616007e9 (HEAD -> release-2.7.3) Author: Mike FABIAN <mfabian> Date: Tue Nov 12 17:47:37 2019 +0900 Fix race condition in itb_util.xdg_save_data_path() Resolves: rhbz#1770072 (https://bugzilla.redhat.com/show_bug.cgi?id=1770072) Resolves: rhbz#1713963 (https://bugzilla.redhat.com/show_bug.cgi?id=1713963) Resolves: rhbz#1764520 (https://bugzilla.redhat.com/show_bug.cgi?id=1764520) Resolves: rhbz#1768016 (https://bugzilla.redhat.com/show_bug.cgi?id=1768016) [abrt] ibus-typing-booster: makedirs(): os.py:221:makedirs:FileExistsError: [Errno 17] Fil e exists: '/home/uncle/.local/share/ibus-typing-booster/data' diff --git a/engine/itb_util.py b/engine/itb_util.py index 0494a08..c53fc9b 100644 --- a/engine/itb_util.py +++ b/engine/itb_util.py @@ -3500,17 +3500,23 @@ def xdg_save_data_path(*resource): Compatibility function for systems which do not have pyxdg. (For example openSUSE Leap 42.1) ''' - if IMPORT_XDG_BASEDIRECTORY_SUCCESSFUL: - return xdg.BaseDirectory.save_data_path(*resource) + # if IMPORT_XDG_BASEDIRECTORY_SUCCESSFUL: + # return xdg.BaseDirectory.save_data_path(*resource) + # + # xdg.BaseDirectory.save_data_path(*resource) unfortunately + # can fail because it calls os.makedirs() without the exist_ok=True + # option, and then os.makedirs() can fail in a race condition + # (see: https://bugs.python.org/issue1675) + # # Replicate implementation of xdg.BaseDirectory.save_data_path - # here: + # here (and add the exist_ok=True parameter to os.makedirs()): xdg_data_home = os.environ.get('XDG_DATA_HOME') or os.path.join( os.path.expanduser('~'), '.local', 'share') resource = os.path.join(*resource) assert not resource.startswith('/') path = os.path.join(xdg_data_home, resource) if not os.path.isdir(path): - os.makedirs(path) + os.makedirs(path, exist_ok=True) return path class KeyvalsToKeycodes: lines 1-45/45 (END) FEDORA-2019-6398f828eb has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6398f828eb FEDORA-2019-8eb6c00da1 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8eb6c00da1 FEDORA-2019-41b9e70195 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-41b9e70195 ibus-typing-booster-2.7.3-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-6398f828eb ibus-typing-booster-2.7.3-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-41b9e70195 ibus-typing-booster-2.7.3-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8eb6c00da1 *** Bug 1777669 has been marked as a duplicate of this bug. *** *** Bug 1778985 has been marked as a duplicate of this bug. *** *** Bug 1778433 has been marked as a duplicate of this bug. *** *** Bug 1779424 has been marked as a duplicate of this bug. *** ibus-typing-booster-2.7.3-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. ibus-typing-booster-2.7.3-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 1780080 has been marked as a duplicate of this bug. *** *** Bug 1780957 has been marked as a duplicate of this bug. *** *** Bug 1789064 has been marked as a duplicate of this bug. *** *** Bug 1772726 has been marked as a duplicate of this bug. *** *** Bug 1773746 has been marked as a duplicate of this bug. *** *** Bug 1814064 has been marked as a duplicate of this bug. *** |