SIGSEV when receiving UDP packets > 16/17 bytes #159

Closed
gopherbot opened this Issue Nov 13, 2009 · 3 comments

Comments

Projects
None yet
2 participants
@gopherbot

by azummo-google@towertech.it:

package main

import (
        "fmt";
        "net";
        "os";
)

func main()
{
        conn, _ := net.ListenPacket("udp", "0.0.0.0:1234");

        fmt.Printf("waiting on %s...\n", conn.LocalAddr().String());

        var buf [1000]byte;

        for {
                n, _, err := conn.ReadFrom(&buf);

                if err == os.EAGAIN {
                        continue;
                }

                fmt.Printf("got %d bytes\n", n);
        }
}

on linux/686, changeset:   4031:b2ccee5ff169


./test &
echo "012345678901234567890" | netcat -u localhost 1234

SIGSEGV: segmentation violation
Faulting address: 0x39383736
PC=0x808198a
...
@rsc

This comment has been minimized.

Show comment
Hide comment
@rsc

rsc Nov 14, 2009

Contributor

Comment 1:

Status changed to Accepted.

Contributor

rsc commented Nov 14, 2009

Comment 1:

Status changed to Accepted.

@rsc

This comment has been minimized.

Show comment
Hide comment
@rsc

rsc Nov 17, 2009

Contributor

Comment 2:

Owner changed to r...@golang.org.

Status changed to Started.

Contributor

rsc commented Nov 17, 2009

Comment 2:

Owner changed to r...@golang.org.

Status changed to Started.

@rsc

This comment has been minimized.

Show comment
Hide comment
@rsc

rsc Nov 17, 2009

Contributor

Comment 3:

This issue was closed by revision a65bf95.

Status changed to Fixed.

Merged into issue #-.

Contributor

rsc commented Nov 17, 2009

Comment 3:

This issue was closed by revision a65bf95.

Status changed to Fixed.

Merged into issue #-.

@gopherbot gopherbot added the fixed label Nov 17, 2009

@golang golang locked and limited conversation to collaborators Jun 24, 2016

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.