Bug 602644
| Summary: | GDB fails to start on readonly filesystem | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Piotr Kolaczek <pk> | ||||
| Component: | gdb | Assignee: | Jan Kratochvil <jan.kratochvil> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 13 | CC: | jan.kratochvil, pmuldoon, swagiaal, tromey | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i686 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | abrt_hash:75ee644048798eca0bcc2bd9936188ec926f2bdc | ||||||
| Fixed In Version: | gdb-7.1-32.fc13 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-08-06 21:03:54 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
Piotr Kolaczek
2010-06-10 11:49:41 UTC
Created attachment 422878 [details]
File: backtrace
GDB tries to run pex_run_in_environment("iconv -l") which aborts creating files in /tmp. GDB should be able to run even with readonly root filesystem.
Try this:
diff --git a/gdb/charset.c b/gdb/charset.c
index 8a9b5ad..e9fa6ab 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -800,7 +800,8 @@ find_charset_names (void)
args[1] = "-l";
args[2] = NULL;
/* Note that we simply ignore errors here. */
- if (!pex_run_in_environment (child, PEX_SEARCH | PEX_STDERR_TO_STDOUT,
+ if (!pex_run_in_environment (child, (PEX_SEARCH | PEX_STDERR_TO_STDOUT
+ | PEX_USE_PIPES),
"iconv", args, environ_vector (iconv_env),
NULL, NULL, &err))
{
Posted upstream, PEX_USE_PIPES is OK, pex_run_in_environment is not, thanks: http://sourceware.org/ml/gdb-patches/2010-06/msg00537.html gdb-7.1-32.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/gdb-7.1-32.fc13 gdb-7.1-32.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |