Bug 2354375
Summary: | [abrt] opencc-tools: std::__throw_ios_failure(): opencc killed by SIGABRT | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Hin-Tak Leung <htl10> | ||||||||||||||||||||||||
Component: | opencc | Assignee: | Peng Wu <pwu> | ||||||||||||||||||||||||
Status: | POST --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||||
Version: | 41 | CC: | htl10, pwu | ||||||||||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/222c54993280dc2e8133c927aa9ebff4404ac76 | ||||||||||||||||||||||||||
Whiteboard: | abrt_hash:382560dcb837ac78dc165194b9bfa93ec68184d8;VARIANT_ID=workstation; | ||||||||||||||||||||||||||
Fixed In Version: | Doc Type: | --- | |||||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||||
Last Closed: | 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
Hin-Tak Leung
2025-03-23 23:58:37 UTC
Created attachment 2081564 [details]
File: mountinfo
Created attachment 2081565 [details]
File: maps
Created attachment 2081566 [details]
File: backtrace
Created attachment 2081567 [details]
File: cpuinfo
Created attachment 2081568 [details]
File: limits
Created attachment 2081569 [details]
File: dso_list
Created attachment 2081570 [details]
File: core_backtrace
Created attachment 2081571 [details]
File: proc_pid_status
Created attachment 2081572 [details]
File: environ
Created attachment 2081573 [details]
File: os_info
Created attachment 2081574 [details]
File: open_fds
Ah, description of problem does not seem to include this - I did type most of this in the description above: I was running: echo '书剑恩仇录' | opencc -c s2t And that gives a message on the console: $ echo '书剑恩仇录' | opencc -c s2t terminate called after throwing an instance of 'std::__ios_failure' what(): basic_filebuf::underflow error reading the file: Is a directory Aborted (core dumped) using "-c s2tw" or "-c s2hk" succeed. abrt-cli report ... claims that https://bugzilla.redhat.com/show_bug.cgi?id=2307731 which was closed as insufficient data, might be a duplicate. Please check. It is possible. Hope this is better than the last time. Interesting - doing that as root (in a separate window, after "su -", which dis-inherit env's) works; doing that as myself (the current gnome-shell login user) coredump. So it might be one of the GUI env variables. What env variable is opencc sensitive to? Ha, I found the cause - It depends on what my current directory is. /tmp seems to be a problem i.e. cd /tmp echo '书剑恩仇录' | opencc -c s2t in both root or my user gives a coredump. if I do mkdir /tmp/a cd /tmp/a echo '书剑恩仇录' | opencc -c s2t command runs without problems. "opencc -c s2t" Argh, shit. I just realised. I have a /tmp/s2t directory in /tmp/ at the moment (just as a collection of recently converted files before I move them elsewhere)!!! So opencc -c is reading from the current directory and getting confused. It should read config from /usr/share/opencc/ rather than trying to read from current directory? I just did not expect config files to be read from current directory... I mean, "s2t" is really "/usr/share/opencc/s2t.json", as far as I understand it. It is likely I was doing the same thing in https://bugzilla.redhat.com/show_bug.cgi?id=2307731 - i.e. in my current directory then, I had sub-directory "s2t". as in, I was probably having a s2t sub-directory, and doing "opencc -i name -o s2t/name -c s2t" at some stage. I just created some pull request in OpenCC upstream. URL: https://github.com/BYVoid/OpenCC/pull/952 |