Bug 3763 - tail -c , memory exhausted
Summary: tail -c , memory exhausted
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 21:19 UTC by Denys Fedoryshchenko
Modified: 2011-05-19 22:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denys Fedoryshchenko 2011-05-18 21:19:35 UTC
Hi, not sure it is a bug, even maybe cosmetic one, but worth to report.
If it is not a bug, just close it.
Thanks for your great software!

Dora_Cluster_Central /cache1/logs # ls -la access.log                                                                                                                                           
-rw-r-----    1 squid    squid     11641690 Apr 25 22:36 access.log                                                                                                                             
Dora_Cluster_Central /cache1/logs # tail -c1000000k access.log > snapshot.log                                                                                                                   
tail: memory exhausted
Comment 1 Denys Vlasenko 2011-05-19 22:32:38 UTC
Fixed in git by commit 9e933d9bfc7f52a7d8bc61805f70e3039b30216f. Will be in 1.19.x

(BTW, "tail: memory exhausted" happens only if your architecture is too stupid to not "allocate" 1G of non-existing pages, if needed. NOMUU? Alternatively, you may run in no-overcommit mode...)
Comment 2 Denys Fedoryshchenko 2011-05-19 22:58:43 UTC
Normal x86, glibc.
Latest kernel, almost latest glibc (at least recents one)