bin/108706: [tail] segmentation fault for files over 2GB
Jonathan Liu
Net147 at hotmail.com
Sat Feb 3 11:30:27 UTC 2007
The following reply was made to PR bin/108706; it has been noted by GNATS.
From: "Jonathan Liu" <Net147 at hotmail.com>
To: <bug-followup at FreeBSD.org>,
<Net147 at hotmail.com>
Cc:
Subject: Re: bin/108706: [tail] segmentation fault for files over 2GB
Date: Sat, 3 Feb 2007 22:29:31 +1100
This is a multi-part message in MIME format.
------=_NextPart_000_006A_01C747E2.C6236D60
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
More specially, this doesn't happen in all cases but it happens in my case.
I was doing some testing with audio I/O.
On one terminal I had: cat /dev/dsp | tee /rectest | tee /dev/dsp.
On the other terminal I waited until the file was big enough (when I tested
the 3rd time the file was only 3829760 bytes): tail -f /rectest
'tail /rectest' also appears to give "Segmentation fault".
If I stop the 'cat /dev/dsp | tee /rectest | tee /dev/dsp' command and copy
the file and use tail:
cp /rectest /rectest2
tail -f /rectest2
Then the problem doesn't occur with the copy of the file.
Then I do 'tail -f /rectest' and it happens again.
Also, sometimes if I do 'tail -f /rectest' on multiple terminals after, the
terminal would freeze and I can't CTRL+C out of it but the characters I
press still appear.
------=_NextPart_000_006A_01C747E2.C6236D60
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-AU link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>More specially, this doesn’t happen in all =
cases but
it happens in my case.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I was doing some testing with audio =
I/O.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>On one terminal I had: cat /dev/dsp | tee /rectest | =
tee
/dev/dsp.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>On the other terminal I waited until the file was big =
enough
(when I tested the 3<sup>rd</sup> time the file was only 3829760 bytes): =
tail –f
/rectest<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>‘tail /rectest’ also appears to give =
“Segmentation
fault”.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>If I stop the ‘cat /dev/dsp | tee /rectest | =
tee
/dev/dsp’ command and copy the file and use =
tail:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp /rectest /rectest2<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>tail –f /rectest2<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Then the problem doesn’t occur with the copy of =
the
file.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Then I do ‘tail –f /rectest’ and it
happens again.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Also, sometimes if I do ‘tail –f =
/rectest’
on multiple terminals after, the terminal would freeze and I can’t =
CTRL+C
out of it but the characters I press still =
appear.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_006A_01C747E2.C6236D60--
More information about the freebsd-bugs
mailing list