Bug 161455
Summary: | bash command corrupts shared libraries | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Stuart MacDonald <stuartm> |
Component: | bash | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED NOTABUG | QA Contact: | Ben Levenson <benl> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-06-29 20:15:13 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: |
Description
Stuart MacDonald
2005-06-23 15:34:25 UTC
If you make this project as a non-root user, does the problem still happen? To be honest, I really don't think this is a bash problem, but much more likely something that your Makefile is doing. Perhaps. However; 1: This corrupt libraries problem has never surfaced in the 2.5 years of uClinux development I've been doing, using the exact same makefile each and every time. 2: This is the first time I've tried using that much redirection of output for anything. The fact that the problem correlates with it likely isn't coincidence. 3: Loading shared libraries is supposed to be a read-only thing, yes? How would a lowly app have the write capability to corrupt a shared library? My bug-sense is tingling telling me it's a lower-level issue. I will give the non-root user angle a try. I said I was willing to debug, and I meant it. However, each failure results in a reinstall of the OS, which takes a couple hours. So testing will likely be slow and limited to weekends when I have some free time. Running a command as root can write to anything, in general. Try running your command as a non-root user and see if it still happens. One way to isolate the shell from this is to try a different one -- does the same thing happen in tcsh or zsh, for instance? I will try the different shells and report back. A full check of the source code revealed a typo had crept in the Makefile in the lib directory in uClinux. So instead of $(STRIP) $(ROMFSDIR)/lib/* it was $(STRIP) $(RONFSDIR)/lib/* which resolved to m68k-elf-strip /lib/* which was destroying my libraries. This is not a bash bug after all. Sorry for the inconvenience. |