FAQ
go version 1.0.3 x86_64
It looks like an issue in bufio.
Is it possible for copy() to return a negative int number?

panic: runtime error: slice bounds out of range

goroutine 32 [running]:
bufio.(*Writer).Flush(0xf840761340, 0x1b0000001b, 0xf84052d000,
0x200000000ca)
/usr/local/go/src/pkg/bufio/bufio.go:421 +0x91
bufio.(*Writer).Write(0xf840761340, 0xf84052d000, 0x200000000ca,
0xf800000000, 0x0, ...)
/usr/local/go/src/pkg/bufio/bufio.go:457 +0x1a2
fmt.Fprintf(0xf84004f120, 0xf840761340, 0x5f7464, 0xf8000000c4,
0xf842423b40, ...)
/usr/local/go/src/pkg/fmt/print.go:214 +0xa4

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Jan Mercl at Feb 28, 2013 at 9:48 am

    On Thu, Feb 28, 2013 at 10:40 AM, steve wang wrote:
    go version 1.0.3 x86_64
    It looks like an issue in bufio.
    Is it possible for copy() to return a negative int number?

    panic: runtime error: slice bounds out of range

    goroutine 32 [running]:
    bufio.(*Writer).Flush(0xf840761340, 0x1b0000001b, 0xf84052d000,
    0x200000000ca)
    /usr/local/go/src/pkg/bufio/bufio.go:421 +0x91
    bufio.(*Writer).Write(0xf840761340, 0xf84052d000, 0x200000000ca,
    0xf800000000, 0x0, ...)
    /usr/local/go/src/pkg/bufio/bufio.go:457 +0x1a2
    fmt.Fprintf(0xf84004f120, 0xf840761340, 0x5f7464, 0xf8000000c4,
    0xf842423b40, ...)
    /usr/local/go/src/pkg/fmt/print.go:214 +0xa4
    Code to reproduce?

    -j

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Steve wang at Feb 28, 2013 at 9:57 am
    I can't reproduce this issue by far.
    In addition, the io.Writer underlying the bufio.Writer is a *io.File, and
    my program is running in ubuntu 12.04.
    On Thursday, February 28, 2013 5:48:06 PM UTC+8, Jan Mercl wrote:
    On Thu, Feb 28, 2013 at 10:40 AM, steve wang wrote:
    go version 1.0.3 x86_64
    It looks like an issue in bufio.
    Is it possible for copy() to return a negative int number?

    panic: runtime error: slice bounds out of range

    goroutine 32 [running]:
    bufio.(*Writer).Flush(0xf840761340, 0x1b0000001b, 0xf84052d000,
    0x200000000ca)
    /usr/local/go/src/pkg/bufio/bufio.go:421 +0x91
    bufio.(*Writer).Write(0xf840761340, 0xf84052d000, 0x200000000ca,
    0xf800000000, 0x0, ...)
    /usr/local/go/src/pkg/bufio/bufio.go:457 +0x1a2
    fmt.Fprintf(0xf84004f120, 0xf840761340, 0x5f7464, 0xf8000000c4,
    0xf842423b40, ...)
    /usr/local/go/src/pkg/fmt/print.go:214 +0xa4
    Code to reproduce?

    -j
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Steve wang at Feb 28, 2013 at 9:59 am
    The issuse happens quite often, but not every time.
    On Thursday, February 28, 2013 5:57:31 PM UTC+8, steve wang wrote:

    I can't reproduce this issue by far.
    In addition, the io.Writer underlying the bufio.Writer is a *io.File, and
    my program is running in ubuntu 12.04.
    On Thursday, February 28, 2013 5:48:06 PM UTC+8, Jan Mercl wrote:

    On Thu, Feb 28, 2013 at 10:40 AM, steve wang <steve....@gmail.com>
    wrote:
    go version 1.0.3 x86_64
    It looks like an issue in bufio.
    Is it possible for copy() to return a negative int number?

    panic: runtime error: slice bounds out of range

    goroutine 32 [running]:
    bufio.(*Writer).Flush(0xf840761340, 0x1b0000001b, 0xf84052d000,
    0x200000000ca)
    /usr/local/go/src/pkg/bufio/bufio.go:421 +0x91
    bufio.(*Writer).Write(0xf840761340, 0xf84052d000, 0x200000000ca,
    0xf800000000, 0x0, ...)
    /usr/local/go/src/pkg/bufio/bufio.go:457 +0x1a2
    fmt.Fprintf(0xf84004f120, 0xf840761340, 0x5f7464, 0xf8000000c4,
    0xf842423b40, ...)
    /usr/local/go/src/pkg/fmt/print.go:214 +0xa4
    Code to reproduce?

    -j
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Steve wang at Feb 28, 2013 at 10:09 am
    Sorry, I condiser this issue is incurred by data race.
    On Thursday, February 28, 2013 5:48:06 PM UTC+8, Jan Mercl wrote:
    On Thu, Feb 28, 2013 at 10:40 AM, steve wang wrote:
    go version 1.0.3 x86_64
    It looks like an issue in bufio.
    Is it possible for copy() to return a negative int number?

    panic: runtime error: slice bounds out of range

    goroutine 32 [running]:
    bufio.(*Writer).Flush(0xf840761340, 0x1b0000001b, 0xf84052d000,
    0x200000000ca)
    /usr/local/go/src/pkg/bufio/bufio.go:421 +0x91
    bufio.(*Writer).Write(0xf840761340, 0xf84052d000, 0x200000000ca,
    0xf800000000, 0x0, ...)
    /usr/local/go/src/pkg/bufio/bufio.go:457 +0x1a2
    fmt.Fprintf(0xf84004f120, 0xf840761340, 0x5f7464, 0xf8000000c4,
    0xf842423b40, ...)
    /usr/local/go/src/pkg/fmt/print.go:214 +0xa4
    Code to reproduce?

    -j
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedFeb 28, '13 at 9:45a
activeFeb 28, '13 at 10:09a
posts5
users2
websitegolang.org

2 users in discussion

Steve wang: 4 posts Jan Mercl: 1 post

People

Translate

site design / logo © 2022 Grokbase