Bug 5684 - Hush crashes on nommu platfrom
Summary: Hush crashes on nommu platfrom
Status: RESOLVED WORKSFORME
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-14 09:09 UTC by Max Nekludov
Modified: 2013-04-07 16:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
patch (1.21 KB, patch)
2012-11-14 09:09 UTC, Max Nekludov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Nekludov 2012-11-14 09:09:38 UTC
Created attachment 4634 [details]
patch

Hush crashes from time to time on the command: echo $(cat /proc/loadavg)
Comment 1 Denys Vlasenko 2013-01-20 22:00:36 UTC
I set CONFIG_NOMMU=y in my .config and I can't reproduce it:

$ ./busybox hush
$ while sleep 0.01; do echo $(cat /proc/loadavg); done
<runs w/o crashing>

Looked at the patch and it does not look correct: file descriptor's status is not shared by vforked parent/child, and patch assumes otherwise.