Bug 3763

Summary: tail -c , memory exhausted
Product: Busybox Reporter: Denys Fedoryshchenko <denys>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

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)