go2v icon indicating copy to clipboard operation
go2v copied to clipboard

Crash struct declaration

Open russo-2025 opened this issue 3 years ago • 0 comments

go2v "D:\[Downloads]\go2v-main\asd\ss.go" -o "D:\[Downloads]\go2v-main\asd\ss.v"

src:

package main

import (
	"bytes"
	"net"
	"sync"

	"github.com/df-mc/atomic"
)

//delete any line from here and everything will be ok
type Conn struct {
	rtt     atomic.Int64
	closing atomic.Int64
	conn    net.PacketConn
	addr    net.Addr
	once    sync.Once
	closed  chan struct{}
	close   func()
	mu      sync.Mutex
	buf     *bytes.Buffer
}

output:

Unhandled Exception 0xC0000005
C:/Users/russo/AppData/Local/Temp/v_0/go2v.5994634581376769932.tmp.c:20344: at print_backtrace_skipping_top_frames_tcc: Backtrace
C:/Users/russo/AppData/Local/Temp/v_0/go2v.5994634581376769932.tmp.c:20311: by print_backtrace_skipping_top_frames
C:/Users/russo/AppData/Local/Temp/v_0/go2v.5994634581376769932.tmp.c:20369: by unhandled_exception_handler
7ffa572e81bc : by ???
RUNTIME ERROR: invalid memory access

russo-2025 avatar Jul 06 '22 17:07 russo-2025