Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <416D56A0.5000402@informatik.uni-kl.de> Date: Wed, 13 Oct 2004 18:24:00 +0200 From: Alexander Geraldy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8a3) Gecko/20040817 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: lseek 2GB wrap problem (with tail)? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Hello! I've seen the following problem and don't know how to handle it. Configuration: Cygwin 1.5.11-1, tail (textutils) 2.0.21, strace (cygwin) 1.21 I noticed that various utilities (including grep and tail) have problems with the following textfile (let's call it test.txt): "ls -l test.txt" gives 44589740378 (i.e. about 44 GB) "tail test.txt" outputs some lines taken somewhere in the text file, but not the last lines of the file. "strace tail test.txt" reports "lseek64: 1640067418=lseek(3,0,2)" which obviously is filesize(test.txt) mod 2GB and which definitely does not point at the end of the input file. I dont't know where to search the error, could anybody give me a hint? Alexander Geraldy -- ------------------------------------------------------ Alexander Geraldy AG Rechnernetze, Fachbereich Informatik Universität Kaiserslautern Tel.: +49(631) 205-2591, Fax: -3956 PGP : http://rn.informatik.uni-kl.de/~geraldy/pgp.asc Fingerprint: D7D0 6505 B731 2D4F 0481 FD86 EF5D B98A D05B 5F7E ------------------------------------------------------ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/