Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read on IO handle following SeekFromCurrent #6276

Closed
p6rt opened this issue May 26, 2017 · 5 comments
Closed

read on IO handle following SeekFromCurrent #6276

p6rt opened this issue May 26, 2017 · 5 comments
Labels
IO regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented May 26, 2017

Migrated from rt.perl.org#131376 (status was 'resolved')

Searchable as RT131376$

@p6rt
Copy link
Author

p6rt commented May 26, 2017

From @dwarring

3 more elements. Show/hide.
19​:01 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643208> dwarring p6​:
"tst.txt".IO.spurt([] 'a' .. 'z'); my $ioh = "tst.txt".IO.open(​:r); say
$ioh.read(4); $ioh.seek(1, SeekFromCurrent); say $ioh.read(4);
19​:01 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643209> camelia
rakudo-moar
95b4e5​: OUTPUT​: «Blob[uint8]​:0x<61 62 63 64>␤Blob[uint8]​:0x<>␤»
19​:02 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643214> dwarring bisect​:
"tst.txt".IO.spurt([
] 'a' .. 'z'); my $ioh = "tst.txt".IO.open(​:r); say
$ioh.read(4); $ioh.seek(1, SeekFromCurrent); say $ioh.read(4);
19​:02 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643215>
bisectable6 dwarring,
Bisecting by output (old=2015.12 new=95b4e5d) because on both starting
points the exit code is 0
19​:06 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643238>
MasterDuke AlexDaniel​:
^^^
19​:08 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643242> dwarring anyway,
nothing returned from second read after seekFromCurrent
19​:08 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643243> Recent
regression. I'll put in an RT

@p6rt
Copy link
Author

p6rt commented May 26, 2017

From @AlexDaniel

  Bisectable failed in the provided log, here is the right result​:

 
  <bisectable6> AlexDaniel, Bisecting by output (old=2015.12 new=95b4e5d) because on both starting points the exit code is 0
  <bisectable6> AlexDaniel, bisect log​: https://gist.github.com/1b6f1bdabefa1cb13338451abceea153
  <bisectable6> AlexDaniel, (2017-05-25) rakudo/rakudo@93f4645
 
  On 2017-05-26 12​:14​:13, david.warring wrote​:
  > 3 more elements. Show/hide.
  > 19​:01 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643208>
  > dwarring p6​:
  > "tst.txt".IO.spurt([] 'a' .. 'z'); my $ioh = "tst.txt".IO.open(​:r);
  > say
  > $ioh.read(4); $ioh.seek(1, SeekFromCurrent); say $ioh.read(4);
  > 19​:01 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643209> camelia
  > rakudo-moar
  > 95b4e5​: OUTPUT​: «Blob[uint8]​:0x<61 62 63 64>␤Blob[uint8]​:0x<>␤»
  > 19​:02 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643214>
  > dwarring bisect​:
  > "tst.txt".IO.spurt([
] 'a' .. 'z'); my $ioh = "tst.txt".IO.open(​:r);
  > say
  > $ioh.read(4); $ioh.seek(1, SeekFromCurrent); say $ioh.read(4);
  > 19​:02 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643215>
  > bisectable6 dwarring,
  > Bisecting by output (old=2015.12 new=95b4e5d) because on both starting
  > points the exit code is 0
  > 19​:06 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643238>
  > MasterDuke AlexDaniel​:
  > ^^^
  > 19​:08 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643242>
  > dwarring anyway,
  > nothing returned from second read after seekFromCurrent
  > 19​:08 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643243> Recent
  > regression. I'll put in an RT
 
 
   

@p6rt
Copy link
Author

p6rt commented May 26, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 26, 2017

From @zoffixznet

On Fri, 26 May 2017 12​:14​:13 -0700, david.warring wrote​:

3 more elements. Show/hide.
19​:01 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643208>
dwarring p6​:
"tst.txt".IO.spurt([] 'a' .. 'z'); my $ioh = "tst.txt".IO.open(​:r);
say
$ioh.read(4); $ioh.seek(1, SeekFromCurrent); say $ioh.read(4);
19​:01 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643209> camelia
rakudo-moar
95b4e5​: OUTPUT​: «Blob[uint8]​:0x<61 62 63 64>␤Blob[uint8]​:0x<>␤»
19​:02 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643214>
dwarring bisect​:
"tst.txt".IO.spurt([
] 'a' .. 'z'); my $ioh = "tst.txt".IO.open(​:r);
say
$ioh.read(4); $ioh.seek(1, SeekFromCurrent); say $ioh.read(4);
19​:02 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643215>
bisectable6 dwarring,
Bisecting by output (old=2015.12 new=95b4e5d) because on both starting
points the exit code is 0
19​:06 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643238>
MasterDuke AlexDaniel​:
^^^
19​:08 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643242>
dwarring anyway,
nothing returned from second read after seekFromCurrent
19​:08 <https://irclog.perlgeek.de/perl6/2017-05-26#i_14643243> Recent
regression. I'll put in an RT

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@094e77a2c2
Tests​: Raku/roast@2804acdc43

@p6rt
Copy link
Author

p6rt commented May 26, 2017

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed May 26, 2017
@p6rt p6rt added IO regression Issue did not exist previously labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

1 participant