t3rm1n4l / megacmd

A command-line client for mega.co.nz storage service
456 stars 74 forks source link

Unable to upload 2.3GB file #15

Closed oracle2b closed 10 years ago

oracle2b commented 11 years ago

-> mega:/test/ # 0.00 % of 2.3GB at 0B/s 0 panic: runtime error: makeslice: len out of range

goroutine 15 [running]: github.com/t3rm1n4l/go-mega._func_005(0x188d2ec0, 0x18800bd8, 0x18800bd0, 0x188daa90, 0x188e47c0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:893 +0x290 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xf7a

goroutine 1 [runnable]: github.com/t3rm1n4l/go-mega.(_Mega).UploadFile(0x18898000, 0xbfa5b6e6, 0x2d, 0x18853700, 0xbfa5b6e6, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:942 +0x114c ----- stack segment boundary ----- github.com/t3rm1n4l/megacmd/client.(_MegaClient).Put(0x18800810, 0xbfa5b6e6, 0x2d, 0xbfa5b714, 0xb, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x97c main.main() /home/alpha/megacmd/main.go:176 +0x1846

goroutine 2 [syscall]: created by runtime.main /build/buildd-golang_1.0.2-1.1-i386-NDX_tA/golang-1.0.2/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]: os/signal.loop() /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1f created by os/signal.init·1 /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x32

goroutine 4 [chan receive]: main._func_002() /home/alpha/megacmd/main.go:105 +0x95 created by main.main /home/alpha/megacmd/main.go:108 +0x5a2

goroutine 5 [syscall]: created by addtimer /build/buildd-golang_1.0.2-1.1-i386-NDX_tA/golang-1.0.2/src/pkg/runtime/ztime_386.c:72

goroutine 8 [chan receive]: net.(_pollServer).WaitRead(0x18801330, 0x18852070, 0x18889a20, 0xb) /usr/lib/go/src/pkg/net/fd.go:268 +0x75 net.(_netFD).Read(0x18852070, 0x18903000, 0x1000, 0x1000, 0xffffffff, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x19a net.(_TCPConn).Read(0x188009a8, 0x18903000, 0x1000, 0x1000, 0x1, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xb1 crypto/tls.(_block).readFromUntil(0x18889280, 0x188892a0, 0x188009a8, 0x5, 0x188009a8, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa6 crypto/tls.(_Conn).readRecord(0x188f6000, 0x17, 0x0, 0xb54c3e50) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xe4 crypto/tls.(_Conn).Read(0x188f6000, 0x18a5f000, 0x1000, 0x1000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xb8 bufio.(_Reader).fill(0x18a11b10, 0x0) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0x115 bufio.(_Reader).Peek(0x18a11b10, 0x1, 0x188ac501, 0x0) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0x8b net/http.(_persistConn).readLoop(0x1883f6c0, 0x18800c18) /usr/lib/go/src/pkg/net/http/transport.go:525 +0x8f created by net/http.(_Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x591

goroutine 7 [syscall]: syscall.Syscall6() /build/buildd-golang_1.0.2-1.1-i386-NDX_tA/golang-1.0.2/src/pkg/syscall/asm_linux_386.s:46 +0x27 syscall.EpollWait(0x7, 0x188f5008, 0xa, 0xa, 0xffffffff, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_386.go:1780 +0x7d net.(_pollster).WaitFD(0x188f5000, 0x18801330, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x12b net.(_pollServer).Run(0x18801330, 0x0) /usr/lib/go/src/pkg/net/fd.go:236 +0xdf created by net.newPollServer /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x308

goroutine 9 [chan receive]: net/http.(_persistConn).roundTrip(0x18a0b840, 0x188da7b8, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:656 +0x2d1 net/http.(_Transport).RoundTrip(0x18896030, 0x18a91070, 0x18a92140, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:160 +0x28a net/http.send(0x18a91070, 0x1883eda0, 0x18896030, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:133 +0x325 net/http.(_Client).doFollowingRedirects(0x18889440, 0x18a91070, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:227 +0x576 net/http.(_Client).Get(0x18889440, 0x18a920c0, 0x36, 0x8170d28, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:176 +0x86 github.com/t3rm1n4l/go-mega.(_Mega).pollEvents(0x18898000, 0x0) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:1201 +0x76f created by github.com/t3rm1n4l/go-mega.(_Mega).getFileSystem /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:598 +0x379

goroutine 10 [select]: github.com/t3rm1n4l/megacmd/client.progressBar(0x18896a80, 0x189c8d60, 0x8be8f81c, 0x0, 0xbfa5b6e6, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x4e5 created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x924

goroutine 14 [syscall]: syscall.Syscall() /build/buildd-golang_1.0.2-1.1-i386-NDX_tA/golang-1.0.2/src/pkg/syscall/asm_linux_386.s:13 +0x5 syscall.Read(0x9, 0x18aa0000, 0x1000, 0x1000, 0x3, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_386.go:2136 +0x61 net.(_netFD).Read(0x18a91000, 0x18aa0000, 0x1000, 0x1000, 0x0, ...) /usr/lib/go/src/pkg/net/fd.go:424 +0xde net.(_TCPConn).Read(0x188da610, 0x18aa0000, 0x1000, 0x1000, 0x1, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xb1 crypto/tls.(_block).readFromUntil(0x1889c6a0, 0x188892a0, 0x188da610, 0x5, 0x188da610, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa6 crypto/tls.(_Conn).readRecord(0x18a9b000, 0x17, 0x0, 0xb75cde50) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xe4 crypto/tls.(_Conn).Read(0x18a9b000, 0x18956000, 0x1000, 0x1000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xb8 bufio.(_Reader).fill(0x1889a030, 0x0) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0x115 bufio.(_Reader).Peek(0x1889a030, 0x1, 0x188ac901, 0x0) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0x8b net/http.(_persistConn).readLoop(0x18a0b800, 0x188daa60) /usr/lib/go/src/pkg/net/http/transport.go:525 +0x8f created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x591

goroutine 13 [chan receive]: net.(_pollServer).WaitRead(0x18801330, 0x18a91e00, 0x18889a20, 0xb) /usr/lib/go/src/pkg/net/fd.go:268 +0x75 net.(_netFD).Read(0x18a91e00, 0x18a9e000, 0x1000, 0x1000, 0xffffffff, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x19a net.(_TCPConn).Read(0x188da6e8, 0x18a9e000, 0x1000, 0x1000, 0x2, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xb1 bufio.(_Reader).fill(0x188dbea0, 0x8051fed) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0x115 bufio.(_Reader).Peek(0x188dbea0, 0x1, 0x0, 0x8057d86) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0x8b net/http.(_persistConn).readLoop(0x18a0b840, 0x188da7d8) /usr/lib/go/src/pkg/net/http/transport.go:525 +0x8f created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x591

goroutine 16 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0x188d2ec0, 0x18800bd8, 0x18800bd0, 0x188daa90, 0x188e47c0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xf7a

goroutine 17 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0x188d2ec0, 0x18800bd8, 0x18800bd0, 0x188daa90, 0x188e47c0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xf7a

goroutine 18 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0x188d2ec0, 0x18800bd8, 0x18800bd0, 0x188daa90, 0x188e47c0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xf7a

t3rm1n4l commented 11 years ago

Hi,

I need more info. Can you share the file over mega?

oracle2b commented 11 years ago

I can't upload the file at all. I'm using debian 7. i've uploaded files as large as 738MB with the program.

Step 1:. dd if=/dev/zero of=zerofile.tst bs=1k count=2411724

Step 2: megacmd put zerofile.tst mega:/

Results:

copying zerofile.tst -> mega:/ # 0.00 % of 2.5GB at 0B/s 0 panic: runtime error: makeslice: len out of range

goroutine 15 [running]: (0x188fb5e0, 0x18800c90, 0x18800c88, 0x18907a70, 0x1895ad40, ...) /usr/lib/go/src/pkg/ +0x290 created by /usr/lib/go/src/pkg/ +0xf7a

goroutine 1 [runnable]: (0x1888f000, 0xbfa86769, 0xc, 0x1899fc40, 0xbfa86769, ...) /usr/lib/go/src/pkg/ +0x114c ----- stack segment boundary ----- (0x18800810, 0xbfa86769, 0xc, 0xbfa86776, 0x6, ...) /usr/lib/go/src/pkg/ +0x97c main.main() /home/alpha/megacmd/main. +0x1846

goroutine 2 [syscall]: created by runtime.main /build/buildd-golang_1.0.2-1.1-i386-NDX_tA/golang-1.0.2/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]: os/signal.loop() /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1f created by os/signal.init·1 /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x32

goroutine 4 [chan receive]: main._func_002() /home/alpha/megacmd/main. +0x95 created by main.main /home/alpha/megacmd/main. +0x5a2

goroutine 5 [syscall]: created by addtimer /build/buildd-golang_1.0.2-1.1-i386-NDX_tA/golang-1.0.2/src/pkg/runtime/ztime_386.c:72

goroutine 8 [chan receive]: net.(_pollServer).WaitRead(0x18801330, 0x188c10e0, 0x188be560, 0xb) /usr/lib/go/src/pkg/net/fd. +0x75 net.(_netFD).Read(0x188c10e0, 0x188cc000, 0x1000, 0x1000, 0xffffffff, ...) /usr/lib/go/src/pkg/net/fd. +0x19a net.(_TCPConn).Read(0x188ba638, 0x188cc000, 0x1000, 0x1000, 0x1, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xb1 crypto/tls.(_block).readFromUntil(0x188be720, 0x188be740, 0x188ba638, 0x5, 0x188ba638, ...) /usr/lib/go/src/pkg/crypto/tls/conn. +0xa6 crypto/tls.(_Conn).readRecord(0x18862d80, 0x17, 0x0, 0xb5508e50) /usr/lib/go/src/pkg/crypto/tls/conn. +0xe4 crypto/tls.(_Conn).Read(0x18862d80, 0x18989000, 0x1000, 0x1000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn. +0xb8 bufio.(_Reader).fill(0x18963030, 0x0) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0x115 bufio.(_Reader).Peek(0x18963030, 0x1, 0x189d3601, 0x0) /usr/lib/go/src/pkg/bufio/bufio. +0x8b net/http.(_persistConn).readLoop(0x1883f6c0, 0x188ba440) /usr/lib/go/src/pkg/net/http/transport. +0x8f created by net/http.(_Transport).getConn /usr/lib/go/src/pkg/net/http/transport. +0x591

goroutine 7 [syscall]: syscall.Syscall6() /build/buildd-golang_1.0.2-1.1-i386-NDX_tA/golang-1.0.2/src/pkg/syscall/asm_linux_386.s:46 +0x27 syscall.EpollWait(0x7, 0x188c3008, 0xa, 0xa, 0xffffffff, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_386. +0x7d net.(_pollster).WaitFD(0x188c3000, 0x18801330, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/fd_linux. +0x12b net.(_pollServer).Run(0x18801330, 0x0) /usr/lib/go/src/pkg/net/fd. +0xdf created by net.newPollServer /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x308

goroutine 9 [chan receive]: net/http.(_persistConn).roundTrip(0x189e2c80, 0x18907518, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport. +0x2d1 net/http.(_Transport).RoundTrip(0x1888c030, 0x189d0000, 0x189e2b00, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport. +0x28a net/http.send(0x189d0000, 0x1883eda0, 0x1888c030, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client. +0x325 net/http.(_Client).doFollowingRedirects(0x1887f440, 0x189d0000, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client. +0x576 net/http.(_Client).Get(0x1887f440, 0x189e2a80, 0x36, 0x8170d28, 0x0, ...) /usr/lib/go/src/pkg/net/http/client. +0x86 (0x1888f000, 0x0) /usr/lib/go/src/pkg/ +0x76f created by /usr/lib/go/src/pkg/ +0x379

goroutine 10 [select]: (0x188d9c60, 0x189e4000, 0x93333000, 0x0, 0xbfa86769, ...) /usr/lib/go/src/pkg/ +0x4e5 created by /usr/lib/go/src/pkg/ +0x924

goroutine 14 [runnable]: syscall.Syscall() /build/buildd-golang_1.0.2-1.1-i386-NDX_tA/golang-1.0.2/src/pkg/syscall/asm_linux_386.s:27 +0x41 syscall.Read(0x9, 0x1889a000, 0x1000, 0x1000, 0x3, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_386. +0x61 net.(_netFD).Read(0x18854ee0, 0x1889a000, 0x1000, 0x1000, 0x0, ...) /usr/lib/go/src/pkg/net/fd. +0xde net.(_TCPConn).Read(0x18907618, 0x1889a000, 0x1000, 0x1000, 0x1, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xb1 crypto/tls.(_block).readFromUntil(0x18861580, 0x188be740, 0x18907618, 0x5, 0x18907618, ...) /usr/lib/go/src/pkg/crypto/tls/conn. +0xa6 crypto/tls.(_Conn).readRecord(0x18862480, 0x17, 0x0, 0xb7612e50) /usr/lib/go/src/pkg/crypto/tls/conn. +0xe4 crypto/tls.(_Conn).Read(0x18862480, 0x18927000, 0x1000, 0x1000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn. +0xb8 bufio.(_Reader).fill(0x18982e40, 0x0) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0x115 bufio.(_Reader).Peek(0x18982e40, 0x1, 0x18923f01, 0x0) /usr/lib/go/src/pkg/bufio/bufio. +0x8b net/http.(_persistConn).readLoop(0x189e2c00, 0x18907818) /usr/lib/go/src/pkg/net/http/transport. +0x8f created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport. +0x591

goroutine 13 [chan receive]: net.(_pollServer).WaitRead(0x18801330, 0x188c1690, 0x188be560, 0xb) /usr/lib/go/src/pkg/net/fd. +0x75 net.(_netFD).Read(0x188c1690, 0x18a27000, 0x1000, 0x1000, 0xffffffff, ...) /usr/lib/go/src/pkg/net/fd. +0x19a net.(_TCPConn).Read(0x18907418, 0x18a27000, 0x1000, 0x1000, 0x6, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xb1 bufio.(_Reader).fill(0x188d9840, 0x8051fed) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0x115 bufio.(_Reader).Peek(0x188d9840, 0x1, 0x0, 0x8057d86) /usr/lib/go/src/pkg/bufio/bufio. +0x8b net/http.(_persistConn).readLoop(0x189e2c80, 0x18907540) /usr/lib/go/src/pkg/net/http/transport. +0x8f created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport. +0x591

goroutine 16 [runnable]: (0x188fb5e0, 0x18800c90, 0x18800c88, 0x18907a70, 0x1895ad40, ...) /usr/lib/go/src/pkg/ created by /usr/lib/go/src/pkg/ +0xf7a

goroutine 17 [runnable]: (0x188fb5e0, 0x18800c90, 0x18800c88, 0x18907a70, 0x1895ad40, ...) /usr/lib/go/src/pkg/ created by /usr/lib/go/src/pkg/ +0xf7a

goroutine 18 [runnable]: (0x188fb5e0, 0x18800c90, 0x18800c88, 0x18907a70, 0x1895ad40, ...) /usr/lib/go/src/pkg/ created by /usr/lib/go/src/pkg/ +0xf7a

abduco commented 11 years ago

I have a similar problem here: i can't upload files larger than 2 GB Can you fix this? Thanks for your great job

root@bvm:~/torrent/download# megacmd -conf="/root/.megacmdserie.json" put test mega:/ Copying test -> mega:/ # 0.00 % of 2.2GB at 0B/s 0 panic: runtime error: makeslice: len out of range

goroutine 15 [running]: github.com/t3rm1n4l/go-mega._func_005(0xf84034fea0, 0xf840080468, 0xf840080460, 0xf8400f3b10, 0xf84009e5f0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:893 +0x2b5 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xe61

goroutine 1 [runnable]: github.com/t3rm1n4l/go-mega.(_Mega).UploadFile(0xf8400d2000, 0x7fff6a8cd8d2, 0x46, 0xf840327c80, 0x7fff6a8cd8d2, .. .) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:942 +0xfb8 ----- stack segment boundary ----- github.com/t3rm1n4l/megacmd/client.(_MegaClient).Put(0xf840073a00, 0x7fff6a8cd8d2, 0x46, 0x7fff6a8cd919, 0x6, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x977 main.main() /root/megacmd/main.go:176 +0x176d

goroutine 2 [syscall]: created by runtime.main /build/buildd/golang-1.0.2/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]: os/signal.loop() /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1c created by os/signal.init·1 /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 4 [chan receive]: main._func_002() /root/megacmd/main.go:105 +0xb7 created by main.main /root/megacmd/main.go:108 +0x6ad

goroutine 5 [syscall]: created by addtimer /build/buildd/golang-1.0.2/src/pkg/runtime/ztime_amd64.c:72

goroutine 8 [chan receive]: net.(_pollServer).WaitRead(0xf840065ec0, 0xf8400b8c60, 0xf8400cf2a0, 0xb, 0x1, ...) /usr/lib/go/src/pkg/net/fd.go:268 +0x73 net.(_netFD).Read(0xf8400b8c60, 0xf840386000, 0x200000002000, 0x102ffffffff, 0xf8400674e0, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec net.(_TCPConn).Read(0xf840101630, 0xf840386000, 0x200000002000, 0x5eedb0, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce crypto/tls.(_block).readFromUntil(0xf8401052c0, 0xf8400cf180, 0xf840101630, 0xf800000005, 0xf840101630, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5 crypto/tls.(_Conn).readRecord(0xf8400b7d80, 0x17, 0x0, 0x40abc9, 0xf8400e0630, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2 crypto/tls.(_Conn).Read(0xf8400b7d80, 0xf840302000, 0x100000001000, 0xe8d00000000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3 bufio.(_Reader).fill(0xf8402fe500, 0xf8400e05f0) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf8402fe500, 0xf800000001, 0xf8400d2801, 0x0, 0x0, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf8401071e0, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:525 +0xab created by net/http.(_Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 7 [syscall]: syscall.Syscall6() /build/buildd/golang-1.0.2/src/pkg/syscall/asm_linux_amd64.s:40 +0x5 syscall.EpollWait(0xf800000007, 0xf840106010, 0xa0000000a, 0xffffffff, 0xc, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1 net.(_pollster).WaitFD(0xf840106000, 0xf840065ec0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110 net.(_pollServer).Run(0xf840065ec0, 0x0) /usr/lib/go/src/pkg/net/fd.go:236 +0xe4 created by net.newPollServer /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382

goroutine 9 [chan receive]: net/http.(_persistConn).roundTrip(0xf840107060, 0xf8400bb9c0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:660 +0x33a net/http.(_Transport).RoundTrip(0xf840068a00, 0xf8403c30c0, 0x36, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:160 +0x32f net/http.send(0xf8403c30c0, 0xf840066cf0, 0xf840068a00, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:133 +0x3ca net/http.(_Client).doFollowingRedirects(0xf8400cf060, 0xf8403c30c0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:227 +0x5e2 net/http.(_Client).Get(0xf8400cf060, 0xf8400f5e40, 0x36, 0xf8400d9840, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:176 +0xb8 github.com/t3rm1n4l/go-mega.(_Mega).pollEvents(0xf8400d2000, 0x0) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:1201 +0x91b created by github.com/t3rm1n4l/go-mega.(_Mega).getFileSystem /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:598 +0x45a

goroutine 10 [select]: github.com/t3rm1n4l/megacmd/client.progressBar(0xf8400e0910, 0xf8400e14e0, 0x837aa4dd, 0x7fff6a8cd8d2, 0x46, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x3ca created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x912

goroutine 13 [chan receive]: net.(_pollServer).WaitRead(0xf840065ec0, 0xf8400ebab0, 0xf8400cf2a0, 0xb, 0x1, ...) /usr/lib/go/src/pkg/net/fd.go:268 +0x73 net.(_netFD).Read(0xf8400ebab0, 0xf8403d0000, 0x100000001000, 0xffffffff, 0xf8400674e0, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec net.(_TCPConn).Read(0xf8400f34f0, 0xf8403d0000, 0x100000001000, 0x728f58, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce bufio.(_Reader).fill(0xf8400f5f80, 0x100000001) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf8400f5f80, 0xf800000001, 0x0, 0x0, 0x405710, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf840107060, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:525 +0xab created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 14 [syscall]: syscall.Syscall() /build/buildd/golang-1.0.2/src/pkg/syscall/asm_linux_amd64.s:15 +0x5 syscall.Read(0xf800000009, 0xf8403cd000, 0x100000001000, 0x0, 0x0, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2137 +0x78 net.(_netFD).Read(0xf8401d6e10, 0xf8403cd000, 0x100000001000, 0x10200000000, 0x0, ...) /usr/lib/go/src/pkg/net/fd.go:424 +0x107 net.(_TCPConn).Read(0xf8400f3768, 0xf8403cd000, 0x100000001000, 0x5eedb0, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce crypto/tls.(_block).readFromUntil(0xf8400eaaa0, 0xf8400cf180, 0xf8400f3768, 0xf800000005, 0xf8400f3768, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5 crypto/tls.(_Conn).readRecord(0xf8403c5000, 0x17, 0x0, 0x40abc9, 0xf8403523b0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2 crypto/tls.(_Conn).Read(0xf8403c5000, 0xf840353000, 0x100000001000, 0xe3d00000000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3 bufio.(_Reader).fill(0xf8403502c0, 0xf840352370) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf8403502c0, 0xf800000001, 0xf8403e7e01, 0x0, 0x0, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf8403bde40, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:525 +0xab created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 16 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0xf84034fea0, 0xf840080468, 0xf840080460, 0xf8400f3b10, 0xf84009e5f0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xe61

goroutine 17 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0xf84034fea0, 0xf840080468, 0xf840080460, 0xf8400f3b10, 0xf84009e5f0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xe61

goroutine 18 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0xf84034fea0, 0xf840080468, 0xf840080460, 0xf8400f3b10, 0xf84009e5f0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xe61 root@bvm:~/torrent/download#

t3rm1n4l commented 11 years ago

please build from latest source. its already fixed.

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Mon, Nov 4, 2013 at 2:38 PM, abduco notifications@github.com wrote:

I have a similar problem here: i can't upload files larger than 2 GB Can you fix this? Thanks for your great job

root@bvm:~/torrent/download# megacmd -conf="/root/.megacmdserie.json" put test mega:/ Copying test -> mega:/ # 0.00 % of 2.2GB at 0B/s 0 panic: runtime error: makeslice: len out of range

goroutine 15 [running]: github.com/t3rm1n4l/go-mega._func_005(0xf84034fea0, 0xf840080468, 0xf840080460, 0xf8400f3b10, 0xf84009e5f0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:893 +0x2b5 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xe61

goroutine 1 [runnable]: github.com/t3rm1n4l/go-mega.(

_Mega).UploadFile(0xf8400d2000, 0x7fff6a8cd8d2, 0x46, 0xf840327c80, 0x7fff6a8cd8d2, .. .) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:942 http://github.com/t3rm1n4l/go-mega/mega.go:942 +0xfb8 ----- stack segment boundary ----- github.com/t3rm1n4l/megacmd/client.( http://github.com/t3rm1n4l/megacmd/client.(_MegaClient).Put(0xf840073a00, 0x7fff6a8cd8d2, 0x46, 0x7fff6a8cd919, 0x6, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/client.go:488+0x977 main.main() /root/megacmd/main.go:176 +0x176d

goroutine 2 [syscall]: created by runtime.main /build/buildd/golang-1.0.2/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]: os/signal.loop() /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1c created by os/signal.init·1 /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 4 [chan receive]: main._func_002() /root/megacmd/main.go:105 +0xb7 created by main.main /root/megacmd/main.go:108 +0x6ad

goroutine 5 [syscall]: created by addtimer /build/buildd/golang-1.0.2/src/pkg/runtime/ztime_amd64.c:72

goroutine 8 [chan receive]: net.(

_pollServer).WaitRead(0xf840065ec0, 0xf8400b8c60, 0xf8400cf2a0, 0xb, 0x1, ...) /usr/lib/go/src/pkg/net/fd.go:268 +0x73 net.(_netFD).Read(0xf8400b8c60, 0xf840386000, 0x200000002000, 0x102ffffffff, 0xf8400674e0, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec net.(

_TCPConn).Read(0xf840101630, 0xf840386000, 0x200000002000, 0x5eedb0, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce crypto/tls.(_block).readFromUntil(0xf8401052c0, 0xf8400cf180, 0xf840101630, 0xf800000005, 0xf840101630, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5 crypto/tls.(

_Conn).readRecord(0xf8400b7d80, 0x17, 0x0, 0x40abc9, 0xf8400e0630, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2 crypto/tls.(_Conn).Read(0xf8400b7d80, 0xf840302000, 0x100000001000, 0xe8d00000000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3 bufio.(

_Reader).fill(0xf8402fe500, 0xf8400e05f0) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf8402fe500, 0xf800000001, 0xf8400d2801, 0x0, 0x0, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(

persistConn).readLoop(0xf8401071e0, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:525 +0xab created by net/http.( Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 7 [syscall]: syscall.Syscall6() /build/buildd/golang-1.0.2/src/pkg/syscall/asm_linux_amd64.s:40 +0x5 syscall.EpollWait(0xf800000007, 0xf840106010, 0xa0000000a, 0xffffffff, 0xc, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1 net.(

_pollster).WaitFD(0xf840106000, 0xf840065ec0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110 net.(_pollServer).Run(0xf840065ec0, 0x0) /usr/lib/go/src/pkg/net/fd.go:236 +0xe4 created by net.newPollServer /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382

goroutine 9 [chan receive]: net/http.(

_persistConn).roundTrip(0xf840107060, 0xf8400bb9c0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:660 +0x33a net/http.(_Transport).RoundTrip(0xf840068a00, 0xf8403c30c0, 0x36, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:160 +0x32f net/http.send(0xf8403c30c0, 0xf840066cf0, 0xf840068a00, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:133 +0x3ca net/http.(

_Client).doFollowingRedirects(0xf8400cf060, 0xf8403c30c0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:227 +0x5e2 net/http.(_Client).Get(0xf8400cf060, 0xf8400f5e40, 0x36, 0xf8400d9840, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:176 +0xb8 github.com/t3rm1n4l/go-mega.(

Mega).pollEvents(0xf8400d2000, 0x0) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:1201 http://github.com/t3rm1n4l/go-mega/mega.go:1201 +0x91b created by github.com/t3rm1n4l/go-mega.( http://github.com/t3rm1n4l/go-mega.( Mega).getFileSystem /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:598 +0x45a

goroutine 10 [select]: github.com/t3rm1n4l/megacmd/client.progressBar(0xf8400e0910, 0xf8400e14e0, 0x837aa4dd, 0x7fff6a8cd8d2, 0x46, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x3ca created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put /usr/lib/go/src/pkg/github.com/t3rm1n4l/megacmd/client/client.go:485+0x912

goroutine 13 [chan receive]: net.(

_pollServer).WaitRead(0xf840065ec0, 0xf8400ebab0, 0xf8400cf2a0, 0xb, 0x1, ...) /usr/lib/go/src/pkg/net/fd.go:268 +0x73 net.(_netFD).Read(0xf8400ebab0, 0xf8403d0000, 0x100000001000, 0xffffffff, 0xf8400674e0, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec net.(

_TCPConn).Read(0xf8400f34f0, 0xf8403d0000, 0x100000001000, 0x728f58, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce bufio.(_Reader).fill(0xf8400f5f80, 0x100000001) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(

_Reader).Peek(0xf8400f5f80, 0xf800000001, 0x0, 0x0, 0x405710, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf840107060, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:525 +0xab created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 14 [syscall]: syscall.Syscall() /build/buildd/golang-1.0.2/src/pkg/syscall/asm_linux_amd64.s:15 +0x5 syscall.Read(0xf800000009, 0xf8403cd000, 0x100000001000, 0x0, 0x0, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2137 +0x78 net.(

_netFD).Read(0xf8401d6e10, 0xf8403cd000, 0x100000001000, 0x10200000000, 0x0, ...) /usr/lib/go/src/pkg/net/fd.go:424 +0x107 net.(_TCPConn).Read(0xf8400f3768, 0xf8403cd000, 0x100000001000, 0x5eedb0, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce crypto/tls.(

_block).readFromUntil(0xf8400eaaa0, 0xf8400cf180, 0xf8400f3768, 0xf800000005, 0xf8400f3768, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5 crypto/tls.(_Conn).readRecord(0xf8403c5000, 0x17, 0x0, 0x40abc9, 0xf8403523b0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2 crypto/tls.(

_Conn).Read(0xf8403c5000, 0xf840353000, 0x100000001000, 0xe3d00000000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3 bufio.(_Reader).fill(0xf8403502c0, 0xf840352370) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(

_Reader).Peek(0xf8403502c0, 0xf800000001, 0xf8403e7e01, 0x0, 0x0, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf8403bde40, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:525 +0xab created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 16 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0xf84034fea0, 0xf840080468, 0xf840080460, 0xf8400f3b10, 0xf84009e5f0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xe61

goroutine 17 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0xf84034fea0, 0xf840080468, 0xf840080460, 0xf8400f3b10, 0xf84009e5f0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xe61

goroutine 18 [runnable]: github.com/t3rm1n4l/go-mega._func_005(0xf84034fea0, 0xf840080468, 0xf840080460, 0xf8400f3b10, 0xf84009e5f0, ...) /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/mega.go:937 +0xe61 root@bvm:~/torrent/download#

— Reply to this email directly or view it on GitHubhttps://github.com/t3rm1n4l/megacmd/issues/15#issuecomment-27671005 .

abduco commented 11 years ago

Thanks for the quick reply!

I had already downloaded and compiled the latest source. Unfortunately the problem persists (only for files larger than 2GB)!

I'll explain what I did: 1) I deleted the folder "t3rm1n4l" from "/ usr / lib / go / src / pkg / github.com /" 2) I deleted "megacmd" from "/ usr / local / bin" 3) I downloaded the repository as a zip file ("megacmd-master.zip") 4) I have unzipped it 5) Inside "megacmd-master" I did make, I renamed "megacmd-master" in "megacmd" and after I typed the command "cp megacmd / usr / local / bin" 6) I restarted

If I open the file "/ usr/lib/go/src/pkg/github.com/t3rm1n4l/go-mega/messages.go" in an editor, I can see your fix (Size uint64 json:" s " in DownloadResp struct)

I do not know what to do. My os is Ubuntu 12.10 64bit. Could you give me some advice?

Thanks for your patience!

t3rm1n4l commented 11 years ago

Could you give me exact size of file that you are trying to upload ? do an ls -l

abduco commented 11 years ago

The exact size of the file I'm trying to upload is : 2203058176 bytes

I conducted a little experiment : with the command "fallocate" you can create files by specifying the size in bytes.

I hypothesized an ideal cut-off of 2GB (2147483648 bytes): if I create a file of size 2147483648 bytes , megacmd returns the error that I posted yesterday. If I create a file of size 2147483647 bytes (-1 byte) , megacmd starts but does not perform the upload (the terminal shows "Copying test - > mega :/ # 0.00 % of 2.1GB at 0B / s 0" , the CPU reaches and exceeds 97% and I have to kill the process with the command "kill PID") The problem persists for files that have a size greater than or equal to 2146959361 bytes . For files with a size equal to or less than 2146959360 bytes I have not encountered any problem.

IN CONCLUSION :

test >= 2147483648 ---------> megacmd does not start and returns the error; test >= 2146959361 && test <= 2147483647 ---------> megacmd starts but does not perform the upload; test <= 2146959360 ---------> ok .

The difference between 2147483648 and 2146959360 is 524288 bytes (exactly 512 kilobytes). Hope this helps!

nelg commented 10 years ago

Do you happen to be using a 32bit system?

abduco commented 10 years ago

i'm using a 64bit system.

cnbeining commented 10 years ago
root@la2:/home/wwwroot/# megacmd put *****.mp4 mega:/
Copying *****.mp4 -> mega:/ # 0.00 % of 3.4GB at 0B/s 1s panic: runtime error: makeslice: len out of range

goroutine 15 [running]:
github.com/t3rm1n4l/go-mega._func_005(0xf8403f7f00, 0xf840080d20, 0xf840120780, 0xf8400a8370, 0xf840080f30, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:862 +0x221
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 1 [runnable]:
github.com/t3rm1n4l/go-mega.(*Mega).UploadFile(0xf8400c0000, 0x7fff7cb0b635, 0x3d, 0xf8402a5aa0, 0x7fff7cb0b635, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:921 +0x1e63
----- stack segment boundary -----
github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put(0xf840073a00, 0x7fff7cb0b635, 0x3d, 0x7fff7cb0b673, 0x6, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x977
main.main()
    /home/vnc/megacmd-master/main.go:176 +0x174d

goroutine 2 [syscall]:
created by runtime.main
    /build/buildd/golang-1/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1c
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 4 [chan receive]:
main._func_002()
    /home/vnc/megacmd-master/main.go:105 +0xb7
created by main.main
    /home/vnc/megacmd-master/main.go:108 +0x6ad

goroutine 5 [syscall]:
created by addtimer
    /build/buildd/golang-1/src/pkg/runtime/ztime_amd64.c:69

goroutine 8 [chan receive]:
net.(*pollServer).WaitRead(0xf8400b1c40, 0xf8400a5c60, 0xf840068870, 0xb, 0x1, ...)
    /usr/lib/go/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8400a5c60, 0xf84032b000, 0x200000002000, 0x102ffffffff, 0xf8400660f0, ...)
    /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf8400ffed8, 0xf84032b000, 0x200000002000, 0x5ed878, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
crypto/tls.(*block).readFromUntil(0xf840106b80, 0xf840068750, 0xf8400ffed8, 0xf800000005, 0xf8400ffed8, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5
crypto/tls.(*Conn).readRecord(0xf840069240, 0x17, 0x0, 0x40a9df, 0xf84012e130, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2
crypto/tls.(*Conn).Read(0xf840069240, 0xf84027e000, 0x100000001000, 0xe8d00000000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3
bufio.(*Reader).fill(0xf840278e80, 0xf84012e0f0)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf840278e80, 0xf800000001, 0xf84014a801, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf840109d80, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 7 [syscall]:
syscall.Syscall6()
    /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:40 +0x5
syscall.EpollWait(0xf800000007, 0xf84010c010, 0xa0000000a, 0xffffffff, 0xc, ...)
    /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1
net.(*pollster).WaitFD(0xf84010c000, 0xf8400b1c40, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110
net.(*pollServer).Run(0xf8400b1c40, 0x0)
    /usr/lib/go/src/pkg/net/fd.go:236 +0xe4
created by net.newPollServer
    /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382

goroutine 9 [chan receive]:
net/http.(*persistConn).roundTrip(0xf8401912a0, 0xf840158980, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/transport.go:652 +0x33a
net/http.(*Transport).RoundTrip(0xf8400b1840, 0xf8401970c0, 0x36, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/transport.go:160 +0x32f
net/http.send(0xf8401970c0, 0xf840066ba0, 0xf8400b1840, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:133 +0x3ca
net/http.(*Client).doFollowingRedirects(0xf840068330, 0xf8401970c0, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:227 +0x5e2
net/http.(*Client).Get(0xf840068330, 0xf8401cf0c0, 0x36, 0xf840131540, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:176 +0xb8
github.com/t3rm1n4l/go-mega.(*Mega).pollEvents(0xf8400c0000, 0x0)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:1171 +0x91b
created by github.com/t3rm1n4l/go-mega.(*Mega).getFileSystem
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:598 +0x41e

goroutine 10 [select]:
github.com/t3rm1n4l/megacmd/client.progressBar(0xf84012e000, 0xf84014cb60, 0xc9bb219e, 0x7fff7cb0b635, 0x3d, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x3ca
created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x912

goroutine 14 [syscall]:
syscall.Syscall()
    /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:15 +0x5
syscall.Read(0xf800000009, 0xf8401a1000, 0x100000001000, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2137 +0x78
net.(*netFD).Read(0xf8401d5750, 0xf8401a1000, 0x100000001000, 0x10200000000, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd.go:424 +0x107
net.(*TCPConn).Read(0xf8401202d0, 0xf8401a1000, 0x100000001000, 0x5ed878, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
crypto/tls.(*block).readFromUntil(0xf84012c680, 0xf840068750, 0xf8401202d0, 0xf800000005, 0xf8401202d0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5
crypto/tls.(*Conn).readRecord(0xf84019f000, 0x17, 0x0, 0x40a9df, 0xf8402e8db0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2
crypto/tls.(*Conn).Read(0xf84019f000, 0xf8403fa000, 0x100000001000, 0xe3d00000000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3
bufio.(*Reader).fill(0xf8403f6700, 0xf8402e8d70)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf8403f6700, 0xf800000001, 0xf8402e5201, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf84019d000, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 13 [chan receive]:
net.(*pollServer).WaitRead(0xf8400b1c40, 0xf8400a53f0, 0xf840068870, 0xb, 0x1, ...)
    /usr/lib/go/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8400a53f0, 0xf8401a4000, 0x100000001000, 0xffffffff, 0xf8400660f0, ...)
    /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf840120368, 0xf8401a4000, 0x100000001000, 0x725f88, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
bufio.(*Reader).fill(0xf8401cf280, 0x100000001)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf8401cf280, 0xf800000001, 0x0, 0x0, 0x405692, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf8401912a0, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 16 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8403f7f00, 0xf840080d20, 0xf840120780, 0xf8400a8370, 0xf840080f30, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 17 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8403f7f00, 0xf840080d20, 0xf840120780, 0xf8400a8370, 0xf840080f30, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 18 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8403f7f00, 0xf840080d20, 0xf840120780, 0xf8400a8370, 0xf840080f30, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 19 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8403f7f00, 0xf840080d20, 0xf840120780, 0xf8400a8370, 0xf840080f30, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 20 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8403f7f00, 0xf840080d20, 0xf840120780, 0xf8400a8370, 0xf840080f30, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c
root@la2:/home/wwwroot/forum.chineseaci.com# megacmd put PilotsEye.HongKong.VHHH.BDRip.1080P.ACIChineseFansubGroup.mp4 mega:/
Copying PilotsEye.HongKong.VHHH.BDRip.1080P.ACIChineseFansubGroup.mp4 -> mega:/ # 0.00 % of 3.4GB at 0B/s 1s panic: runtime error: makeslice: len out of range

goroutine 15 [running]:
github.com/t3rm1n4l/go-mega._func_005(0xf840105160, 0xf840080cc8, 0xf8401f7a48, 0xf840073eb0, 0xf840080ef0, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:862 +0x221
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 1 [runnable]:
github.com/t3rm1n4l/go-mega.(*Mega).UploadFile(0xf8400d1000, 0x7fff7744e635, 0x3d, 0xf840297aa0, 0x7fff7744e635, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:921 +0x1e63
----- stack segment boundary -----
github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put(0xf840073a00, 0x7fff7744e635, 0x3d, 0x7fff7744e673, 0x6, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x977
main.main()
    /home/vnc/megacmd-master/main.go:176 +0x174d

goroutine 2 [syscall]:
created by runtime.main
    /build/buildd/golang-1/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1c
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 4 [chan receive]:
main._func_002()
    /home/vnc/megacmd-master/main.go:105 +0xb7
created by main.main
    /home/vnc/megacmd-master/main.go:108 +0x6ad

goroutine 5 [syscall]:
created by addtimer
    /build/buildd/golang-1/src/pkg/runtime/ztime_amd64.c:69

goroutine 8 [chan receive]:
net.(*pollServer).WaitRead(0xf8400c3c40, 0xf8400b7c60, 0xf840068870, 0xb, 0x1, ...)
    /usr/lib/go/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8400b7c60, 0xf840370000, 0x200000002000, 0x102ffffffff, 0xf8400660f0, ...)
    /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf84007a5d8, 0xf840370000, 0x200000002000, 0x5ed878, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
crypto/tls.(*block).readFromUntil(0xf8401da240, 0xf840068750, 0xf84007a5d8, 0xf800000005, 0xf84007a5d8, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5
crypto/tls.(*Conn).readRecord(0xf840069240, 0x17, 0x0, 0x40a9df, 0xf8401fdd10, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2
crypto/tls.(*Conn).Read(0xf840069240, 0xf8402ca000, 0x100000001000, 0xe8d00000000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3
bufio.(*Reader).fill(0xf840246880, 0xf8401fdcd0)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf840246880, 0xf800000001, 0xf84025be01, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf8401e2d80, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 7 [syscall]:
syscall.Syscall6()
    /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:40 +0x5
syscall.EpollWait(0xf800000007, 0xf8401db010, 0xa0000000a, 0xffffffff, 0xc, ...)
    /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1
net.(*pollster).WaitFD(0xf8401db000, 0xf8400c3c40, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110
net.(*pollServer).Run(0xf8400c3c40, 0x0)
    /usr/lib/go/src/pkg/net/fd.go:236 +0xe4
created by net.newPollServer
    /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382

goroutine 9 [chan receive]:
net/http.(*persistConn).roundTrip(0xf84014eea0, 0xf8400b88f0, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/transport.go:652 +0x33a
net/http.(*Transport).RoundTrip(0xf8400c3840, 0xf8401210c0, 0x36, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/transport.go:160 +0x32f
net/http.send(0xf8401210c0, 0xf840066ba0, 0xf8400c3840, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:133 +0x3ca
net/http.(*Client).doFollowingRedirects(0xf840068330, 0xf8401210c0, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:227 +0x5e2
net/http.(*Client).Get(0xf840068330, 0xf8401b3ac0, 0x36, 0xf8401540c0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:176 +0xb8
github.com/t3rm1n4l/go-mega.(*Mega).pollEvents(0xf8400d1000, 0x0)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:1171 +0x91b
created by github.com/t3rm1n4l/go-mega.(*Mega).getFileSystem
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:598 +0x41e

goroutine 10 [select]:
github.com/t3rm1n4l/megacmd/client.progressBar(0xf840001af0, 0xf8401c0180, 0xc9bb219e, 0x7fff7744e635, 0x3d, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x3ca
created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x912

goroutine 14 [syscall]:
syscall.Syscall()
    /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:15 +0x5
syscall.Read(0xf800000009, 0xf840218000, 0x100000001000, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2137 +0x78
net.(*netFD).Read(0xf8401f0900, 0xf840218000, 0x100000001000, 0x10200000000, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd.go:424 +0x107
net.(*TCPConn).Read(0xf8401f7560, 0xf840218000, 0x100000001000, 0x5ed878, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
crypto/tls.(*block).readFromUntil(0xf8401fe3a0, 0xf840068750, 0xf8401f7560, 0xf800000005, 0xf8401f7560, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5
crypto/tls.(*Conn).readRecord(0xf840251480, 0x17, 0x0, 0x40a9df, 0xf84012b220, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2
crypto/tls.(*Conn).Read(0xf840251480, 0xf84010b000, 0x100000001000, 0xe3d00000000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3
bufio.(*Reader).fill(0xf8400c3f40, 0xf84012b1e0)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf8400c3f40, 0xf800000001, 0xf840118201, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf8400c23c0, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 13 [chan receive]:
net.(*pollServer).WaitRead(0xf8400c3c40, 0xf8400d0a20, 0xf840068870, 0xb, 0x1, ...)
    /usr/lib/go/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8400d0a20, 0xf84037c000, 0x100000001000, 0xffffffff, 0xf8400660f0, ...)
    /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf8401f7380, 0xf84037c000, 0x100000001000, 0x725f88, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
bufio.(*Reader).fill(0xf8401b3b80, 0x100000001)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf8401b3b80, 0xf800000001, 0x0, 0x0, 0x405692, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf84014eea0, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 16 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf840105160, 0xf840080cc8, 0xf8401f7a48, 0xf840073eb0, 0xf840080ef0, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 17 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf840105160, 0xf840080cc8, 0xf8401f7a48, 0xf840073eb0, 0xf840080ef0, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 18 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf840105160, 0xf840080cc8, 0xf8401f7a48, 0xf840073eb0, 0xf840080ef0, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 19 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf840105160, 0xf840080cc8, 0xf8401f7a48, 0xf840073eb0, 0xf840080ef0, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

goroutine 20 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf840105160, 0xf840080cc8, 0xf8401f7a48, 0xf840073eb0, 0xf840080ef0, ...)
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd-master/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xe6c

Similar error? Ubuntu 12.04 64bit

matrog commented 10 years ago

same error with latest version

pi@raspberrypi ~/mega/megacmd $ /home/pi/mega/megacmd/megacmd put /media/nas/test.mkv mega:/share/ Copying /media/nas/test.mkv -> mega:/share/ # 0.00 % of 4.0GB at 0B/s 0 panic: runtime error: makeslice: len out of range

goroutine 15 [running]: github.com/t3rm1n4l/go-mega.func·005() /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:862 +0x2bc created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xed0

goroutine 1 [runnable]: github.com/t3rm1n4l/go-mega.(_Mega).UploadFile(0x10482240, 0xbea1a900, 0x13, 0x105948c0, 0xbea1a90b, ...) /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:846 +0x1e58 github.com/t3rm1n4l/megacmd/client.(_MegaClient).Put(0x104006a8, 0xbea1a900, 0x13, 0xbea1a914, 0xc, ...) /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x880 main.main() /home/pi/mega/megacmd/main.go:138 +0x1880

goroutine 2 [syscall]:

goroutine 4 [syscall]: created by os/signal.init·1 /home/pi/mega/go/src/pkg/os/signal/signal_unix.go:27 +0x44

goroutine 5 [chan receive]: main.func·002() /home/pi/mega/megacmd/main.go:105 +0xc4 created by main.main /home/pi/mega/megacmd/main.go:108 +0x760

goroutine 11 [select]: net/http.(_persistConn).roundTrip(0x10478780, 0x10617d30, 0x10478780, 0x0, 0x0, ...) /home/pi/mega/go/src/pkg/net/http/transport.go:857 +0x6c0 net/http.(_Transport).RoundTrip(0x104821e0, 0x1066e0e0, 0x2536a0, 0x0, 0x0, ...) /home/pi/mega/go/src/pkg/net/http/transport.go:186 +0x2f4 net/http.send(0x1066e0e0, 0x10456a00, 0x104821e0, 0x0, 0x0, ...) /home/pi/mega/go/src/pkg/net/http/client.go:166 +0x340 net/http.(_Client).send(0x10456f20, 0x1066e0e0, 0x6a, 0x2, 0x1066e076, ...) /home/pi/mega/go/src/pkg/net/http/client.go:100 +0x10c net/http.(_Client).doFollowingRedirects(0x10456f20, 0x1066e0e0, 0x263a08, 0x0, 0x0, ...) /home/pi/mega/go/src/pkg/net/http/client.go:282 +0x5c8 net/http.(_Client).Post(0x10456f20, 0x1066e070, 0x6a, 0x235590, 0xf, ...) /home/pi/mega/go/src/pkg/net/http/client.go:344 +0xe8 github.com/t3rm1n4l/go-mega.(_Mega).pollEvents(0x10482240) /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:1129 +0x2b4 created by github.com/t3rm1n4l/go-mega.(*Mega).getFileSystem /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:598 +0x3bc

goroutine 9 [IO wait]: net.runtime_pollWait(0xb6fe5f30, 0x72, 0x0) /home/pi/mega/go/src/pkg/runtime/znetpoll_linux_arm.c:118 +0x64 net.(_pollDesc).WaitRead(0x1047877c, 0xb, 0x10456360) /home/pi/mega/go/src/pkg/net/fd_poll_runtime.go:75 +0x34 net.(_netFD).Read(0x10478730, 0x104c6000, 0x1000, 0x1000, 0x0, ...) /home/pi/mega/go/src/pkg/net/fd_unix.go:195 +0x2fc net.(_conn).Read(0x104f83d8, 0x104c6000, 0x1000, 0x1000, 0x0, ...) /home/pi/mega/go/src/pkg/net/net.go:123 +0xc8 net.(_TCPConn).Read(0x104f83d8, 0x104c6000, 0x1000, 0x1000, 0x105b00e0, ...) /home/pi/mega/go/src/pkg/net/dial.go:0 +0x40 crypto/tls.(_block).readFromUntil(0x104c40a0, 0x104c4080, 0x104f83d8, 0x5, 0x104f83d8, ...) /home/pi/mega/go/src/pkg/crypto/tls/conn.go:401 +0xcc crypto/tls.(_Conn).readRecord(0x104ff000, 0x17, 0x0, 0x0) /home/pi/mega/go/src/pkg/crypto/tls/conn.go:481 +0x11c crypto/tls.(_Conn).Read(0x104ff000, 0x10554000, 0x1000, 0x1000, 0x0, ...) /home/pi/mega/go/src/pkg/crypto/tls/conn.go:796 +0x118 bufio.(_Reader).fill(0x105b73c0) /home/pi/mega/go/src/pkg/bufio/bufio.go:79 +0x144 bufio.(_Reader).Peek(0x105b73c0, 0x1, 0x0, 0x0, 0x0, ...) /home/pi/mega/go/src/pkg/bufio/bufio.go:107 +0xbc net/http.(_persistConn).readLoop(0x10478780) /home/pi/mega/go/src/pkg/net/http/transport.go:670 +0xc4 created by net/http.(*Transport).dialConn /home/pi/mega/go/src/pkg/net/http/transport.go:511 +0x568

goroutine 10 [runnable]: net/http.(_persistConn).writeLoop(0x10478780) /home/pi/mega/go/src/pkg/net/http/transport.go:774 +0x228 created by net/http.(_Transport).dialConn /home/pi/mega/go/src/pkg/net/http/transport.go:512 +0x590

goroutine 12 [select]: github.com/t3rm1n4l/megacmd/client.progressBar(0x105add80, 0x105bd400, 0xeee73928, 0x0, 0xbea1a900, ...) /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x564 created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x83c

goroutine 13 [IO wait]: net.runtime_pollWait(0xb6fe5ec4, 0x77, 0x0) /home/pi/mega/go/src/pkg/runtime/znetpoll_linux_arm.c:118 +0x64 net.(_pollDesc).WaitWrite(0x10612e0c, 0x73, 0x10456360) /home/pi/mega/go/src/pkg/net/fd_poll_runtime.go:80 +0x34 net.(_netFD).connect(0x10612dc0, 0x0, 0x0, 0x104eff00, 0x105bdea0, ...) /home/pi/mega/go/src/pkg/net/fd_unix.go:96 +0x23c net.socket(0x2266d0, 0x3, 0x2, 0x1, 0x0, ...) /home/pi/mega/go/src/pkg/net/sock_posix.go:60 +0x2d4 net.internetSocket(0x2266d0, 0x3, 0x0, 0x0, 0x104720c0, ...) /home/pi/mega/go/src/pkg/net/ipsock_posix.go:146 +0x304 net.dialTCP(0x2266d0, 0x3, 0x0, 0x105bde60, 0xcb863e30, ...) /home/pi/mega/go/src/pkg/net/tcpsock_posix.go:151 +0xd8 net.dial(0x2266d0, 0x3, 0x105bd800, 0x15, 0x0, ...) /home/pi/mega/go/src/pkg/net/dial.go:156 +0x334 net.resolveAndDial(0x2266d0, 0x3, 0x105bd800, 0x15, 0x0, ...) /home/pi/mega/go/src/pkg/net/fd_unix.go:49 +0xfc net.(_Dialer).Dial(0x105bda20, 0x2266d0, 0x3, 0x105bd800, 0x15, ...) /home/pi/mega/go/src/pkg/net/dial.go:146 +0xa4 net.DialTimeout(0x2266d0, 0x3, 0x105bd800, 0x15, 0x540be400, ...) /home/pi/mega/go/src/pkg/net/dial.go:138 +0x9c github.com/t3rm1n4l/go-mega.func·006(0x2266d0, 0x3, 0x105bd800, 0x15, 0x1049e0, ...) /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/utils.go:25 +0x54 net/http.(_Transport).dial(0x104821e0, 0x2266d0, 0x3, 0x105bd800, 0x15, ...) /home/pi/mega/go/src/pkg/net/http/transport.go:382 +0x78 net/http.(_Transport).dialConn(0x104821e0, 0x105bd820, 0x1, 0x0, 0x0, ...) /home/pi/mega/go/src/pkg/net/http/transport.go:427 +0x68 net/http.func·012() /home/pi/mega/go/src/pkg/net/http/transport.go:402 +0x40 created by net/http.(_Transport).getConn /home/pi/mega/go/src/pkg/net/http/transport.go:404 +0x114

goroutine 16 [runnable]: github.com/t3rm1n4l/go-mega.func·005() /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:849 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xed0

goroutine 17 [runnable]: github.com/t3rm1n4l/go-mega.func·005() /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:849 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/pi/mega/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:908 +0xed0

goroutine 18 [runnable]: net/http.func·013() /home/pi/mega/go/src/pkg/net/http/transport.go:417 created by net/http.(*Transport).getConn /home/pi/mega/go/src/pkg/net/http/transport.go:421 +0x1fc

file size

-rwxrwxrwx 1 1024 users 4008130856 ago 16 08:44 test.mkv

t3rm1n4l commented 10 years ago

I have fixed few bugs. Could you try it with latest code ? Please post details of crash if it exists again.

t3rm1n4l commented 10 years ago

Please reopen if it exists

cnbeining commented 10 years ago

Hi @t3rm1n4l ,

Not fixed.

I noticed that your last commit was 16 hours ago, which only edited the readme file... Can you check whether you had pushed the right file to Github?

Log:

#File size: 2.27 GiB
# megacmd put lp.mp4 mega:/
Copying lp.mp4 -> mega:/ # 0.00 % of 2.4GB at 0B/s 1s panic: runtime error: makeslice: len out of range

goroutine 15 [running]:
github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:869 +0x209
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 1 [runnable]:
github.com/t3rm1n4l/go-mega.(*Mega).UploadFile(0xf8400d1000, 0x7fff30cf966d, 0x6, 0xf840363500, 0x7fff30cf966d, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:939 +0x1ecc
----- stack segment boundary -----
github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put(0xf840072a00, 0x7fff30cf966d, 0x6, 0x7fff30cf9674, 0x6, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x977
main.main()
    /home/vnc/megacmd/main.go:176 +0x174d

goroutine 2 [syscall]:
created by runtime.main
    /build/buildd/golang-1/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1c
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 4 [chan receive]:
main._func_002()
    /home/vnc/megacmd/main.go:105 +0xb7
created by main.main
    /home/vnc/megacmd/main.go:108 +0x6ad

goroutine 5 [syscall]:
created by addtimer
    /build/buildd/golang-1/src/pkg/runtime/ztime_amd64.c:69

goroutine 8 [chan receive]:
net.(*pollServer).WaitRead(0xf8400c2c40, 0xf8400b6c60, 0xf840067840, 0xb, 0x1, ...)
    /usr/lib/go/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8400b6c60, 0xf8403c8000, 0x400000004000, 0x102ffffffff, 0xf8400650c0, ...)
    /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf8401235d8, 0xf8403c8000, 0x400000004000, 0x5edb00, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
crypto/tls.(*block).readFromUntil(0xf84010e240, 0xf840067720, 0xf8401235d8, 0xf800000005, 0xf8401235d8, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5
crypto/tls.(*Conn).readRecord(0xf840068240, 0x17, 0x0, 0x40a9df, 0xf8400ddef0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2
crypto/tls.(*Conn).Read(0xf840068240, 0xf840310000, 0x100000001000, 0xe9000000000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3
bufio.(*Reader).fill(0xf840243b00, 0xf8400ddeb0)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf840243b00, 0xf800000001, 0xf8401e4701, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf840125d80, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 7 [syscall]:
syscall.Syscall6()
    /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:40 +0x5
syscall.EpollWait(0xf800000007, 0xf84010f010, 0xa0000000a, 0xffffffff, 0xc, ...)
    /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1
net.(*pollster).WaitFD(0xf84010f000, 0xf8400c2c40, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110
net.(*pollServer).Run(0xf8400c2c40, 0x0)
    /usr/lib/go/src/pkg/net/fd.go:236 +0xe4
created by net.newPollServer
    /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382

goroutine 9 [chan receive]:
net/http.(*persistConn).roundTrip(0xf84023f000, 0xf8400da0c0, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/transport.go:652 +0x33a
net/http.(*Transport).RoundTrip(0xf8400c2840, 0xf8403450c0, 0x33, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/transport.go:160 +0x32f
net/http.send(0xf8403450c0, 0xf840065b70, 0xf8400c2840, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:133 +0x3ca
net/http.(*Client).doFollowingRedirects(0xf840067330, 0xf8403450c0, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:227 +0x5e2
net/http.(*Client).Get(0xf840067330, 0xf8403411c0, 0x33, 0xf8401f7330, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:176 +0xb8
github.com/t3rm1n4l/go-mega.(*Mega).pollEvents(0xf8400d1000, 0x0)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:1195 +0x966
created by github.com/t3rm1n4l/go-mega.(*Mega).getFileSystem
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:601 +0x41e

goroutine 10 [select]:
github.com/t3rm1n4l/megacmd/client.progressBar(0xf8401d1e10, 0xf8401ce020, 0x915c2ef1, 0x7fff30cf966d, 0x6, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x3ca
created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x912

goroutine 14 [syscall]:
syscall.Syscall()
    /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:15 +0x5
syscall.Read(0xf800000009, 0xf840167000, 0x100000001000, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2137 +0x78
net.(*netFD).Read(0xf8401efbd0, 0xf840167000, 0x100000001000, 0x10200000000, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd.go:424 +0x107
net.(*TCPConn).Read(0xf8402476c0, 0xf840167000, 0x100000001000, 0x5edb00, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
crypto/tls.(*block).readFromUntil(0xf8401de620, 0xf840067720, 0xf8402476c0, 0xf800000005, 0xf8402476c0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5
crypto/tls.(*Conn).readRecord(0xf840251480, 0x17, 0x0, 0x40a9df, 0xf84030fdb0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2
crypto/tls.(*Conn).Read(0xf840251480, 0xf8401f4000, 0x100000001000, 0xe3d00000000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3
bufio.(*Reader).fill(0xf84032dd40, 0xf84030fd70)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf84032dd40, 0xf800000001, 0xf840313801, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf8403403c0, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 13 [chan receive]:
net.(*pollServer).WaitRead(0xf8400c2c40, 0xf8400b6bd0, 0xf840067840, 0xb, 0x1, ...)
    /usr/lib/go/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8400b6bd0, 0xf8401d9000, 0x100000001000, 0xffffffff, 0xf8400650c0, ...)
    /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf84007fe70, 0xf8401d9000, 0x100000001000, 0x726f88, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
bufio.(*Reader).fill(0xf840341280, 0x100000001)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf840341280, 0xf800000001, 0x0, 0x0, 0x405692, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf84023f000, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 16 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 17 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 18 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 19 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 20 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc
root@la2:/home/vnc# megacmd put lp.mp4 mega:/
Quit!
root@la2:/home/vnc# megacmd put lp.mp4 mega:/
Copying lp.mp4 -> mega:/ # 0.00 % of 2.4GB at 0B/s 1s panic: runtime error: makeslice: len out of range

goroutine 15 [running]:
github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:869 +0x209
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 1 [runnable]:
github.com/t3rm1n4l/go-mega.(*Mega).UploadFile(0xf8400c0000, 0x7ffffe94a66d, 0x6, 0xf8402958c0, 0x7ffffe94a66d, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:939 +0x1ecc
----- stack segment boundary -----
github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put(0xf840072a00, 0x7ffffe94a66d, 0x6, 0x7ffffe94a674, 0x6, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x977
main.main()
    /home/vnc/megacmd/main.go:176 +0x174d

goroutine 2 [syscall]:
created by runtime.main
    /build/buildd/golang-1/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1c
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 4 [chan receive]:
main._func_002()
    /home/vnc/megacmd/main.go:105 +0xb7
created by main.main
    /home/vnc/megacmd/main.go:108 +0x6ad

goroutine 5 [syscall]:
created by addtimer
    /build/buildd/golang-1/src/pkg/runtime/ztime_amd64.c:69

goroutine 8 [chan receive]:
net.(*pollServer).WaitRead(0xf8400b1c40, 0xf8400a5c60, 0xf840067840, 0xb, 0x1, ...)
    /usr/lib/go/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8400a5c60, 0xf840139000, 0x400000004000, 0x102ffffffff, 0xf8400650c0, ...)
    /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf8400786d8, 0xf840139000, 0x400000004000, 0x5edb00, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
crypto/tls.(*block).readFromUntil(0xf8400f4260, 0xf840067720, 0xf8400786d8, 0xf800000005, 0xf8400786d8, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5
crypto/tls.(*Conn).readRecord(0xf840068240, 0x17, 0x0, 0x40a9df, 0xf8400d8c70, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2
crypto/tls.(*Conn).Read(0xf840068240, 0xf8401af000, 0x100000001000, 0xe9000000000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3
bufio.(*Reader).fill(0xf8403fa1c0, 0xf8400d8c30)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf8403fa1c0, 0xf800000001, 0xf8401e5401, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf8400f0d80, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 7 [syscall]:
syscall.Syscall6()
    /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:40 +0x5
syscall.EpollWait(0xf800000007, 0xf84010c010, 0xa0000000a, 0xffffffff, 0xc, ...)
    /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1
net.(*pollster).WaitFD(0xf84010c000, 0xf8400b1c40, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110
net.(*pollServer).Run(0xf8400b1c40, 0x0)
    /usr/lib/go/src/pkg/net/fd.go:236 +0xe4
created by net.newPollServer
    /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382

goroutine 9 [chan receive]:
net/http.(*persistConn).roundTrip(0xf840181ea0, 0xf8400c2a60, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/transport.go:652 +0x33a
net/http.(*Transport).RoundTrip(0xf8400b1840, 0xf8401930c0, 0x33, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/transport.go:160 +0x32f
net/http.send(0xf8401930c0, 0xf840065b70, 0xf8400b1840, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:133 +0x3ca
net/http.(*Client).doFollowingRedirects(0xf840067330, 0xf8401930c0, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:227 +0x5e2
net/http.(*Client).Get(0xf840067330, 0xf84018e9c0, 0x33, 0xf8401f87e0, 0x0, ...)
    /usr/lib/go/src/pkg/net/http/client.go:176 +0xb8
github.com/t3rm1n4l/go-mega.(*Mega).pollEvents(0xf8400c0000, 0x0)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:1195 +0x966
created by github.com/t3rm1n4l/go-mega.(*Mega).getFileSystem
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:601 +0x41e

goroutine 10 [select]:
github.com/t3rm1n4l/megacmd/client.progressBar(0xf8400d82d0, 0xf8401df460, 0x915c2ef1, 0x7ffffe94a66d, 0x6, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x3ca
created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x912

goroutine 14 [syscall]:
syscall.Syscall()
    /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:15 +0x5
syscall.Read(0xf800000009, 0xf84019e000, 0x100000001000, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2137 +0x78
net.(*netFD).Read(0xf840230090, 0xf84019e000, 0x100000001000, 0x10200000000, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd.go:424 +0x107
net.(*TCPConn).Read(0xf84025a518, 0xf84019e000, 0x100000001000, 0x5edb00, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
crypto/tls.(*block).readFromUntil(0xf8401d6520, 0xf840067720, 0xf84025a518, 0xf800000005, 0xf84025a518, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5
crypto/tls.(*Conn).readRecord(0xf84019c000, 0x17, 0x0, 0x40a9df, 0xf8402aa4a0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2
crypto/tls.(*Conn).Read(0xf84019c000, 0xf8402ab000, 0x100000001000, 0xe3d00000000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3
bufio.(*Reader).fill(0xf8403f70c0, 0xf8402aa460)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf8403f70c0, 0xf800000001, 0xf8401c3401, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf8401903c0, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 13 [chan receive]:
net.(*pollServer).WaitRead(0xf8400b1c40, 0xf8400a5bd0, 0xf840067840, 0xb, 0x1, ...)
    /usr/lib/go/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8400a5bd0, 0xf8401a1000, 0x100000001000, 0xffffffff, 0xf8400650c0, ...)
    /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf84025a598, 0xf8401a1000, 0x100000001000, 0x726f88, 0x0, ...)
    /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce
bufio.(*Reader).fill(0xf84018ea80, 0x100000001)
    /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).Peek(0xf84018ea80, 0xf800000001, 0x0, 0x0, 0x405692, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc
net/http.(*persistConn).readLoop(0xf840181ea0, 0x0)
    /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab
created by net/http.(*Transport).getConn
    /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 16 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 17 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 18 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 19 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 20 [runnable]:
github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...)
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926
created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile
    /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc
t3rm1n4l commented 10 years ago

Fixes are added in go-mega repository. I will try to reproduce this problem with a larger file and see.

t3rm1n4l commented 10 years ago

I just tried uploading a 4GB file and it worked file. mega:/test.img 4294967296 2014-08-21T08:04:49+05:30

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Thu, Aug 21, 2014 at 4:51 AM, David.Zhuang notifications@github.com wrote:

Hi @t3rm1n4l https://github.com/t3rm1n4l ,

Not fixed.

I noticed that your last commit was 16 hours ago, which only edited the readme file... Can you check whether you had pushed the right file to Github?

Log:

File size: 2.27 GiB

megacmd put lp.mp4 mega:/

Copying lp.mp4 -> mega:/ # 0.00 % of 2.4GB at 0B/s 1s panic: runtime error: makeslice: len out of range

goroutine 15 [running]:github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:869 +0x209 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 1 [runnable]:github.com/t3rm1n4l/go-mega.(_Mega).UploadFile(0xf8400d1000, 0x7fff30cf966d, 0x6, 0xf840363500, 0x7fff30cf966d, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:939 +0x1ecc ----- stack segment boundary -----github.com/t3rm1n4l/megacmd/client.(_MegaClient).Put(0xf840072a00, 0x7fff30cf966d, 0x6, 0x7fff30cf9674, 0x6, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x977 main.main() /home/vnc/megacmd/main.go:176 +0x174d

goroutine 2 [syscall]: created by runtime.main /build/buildd/golang-1/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]: os/signal.loop() /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1c created by os/signal.init·1 /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 4 [chan receive]: main._func_002() /home/vnc/megacmd/main.go:105 +0xb7 created by main.main /home/vnc/megacmd/main.go:108 +0x6ad

goroutine 5 [syscall]: created by addtimer /build/buildd/golang-1/src/pkg/runtime/ztime_amd64.c:69

goroutine 8 [chan receive]: net.(_pollServer).WaitRead(0xf8400c2c40, 0xf8400b6c60, 0xf840067840, 0xb, 0x1, ...) /usr/lib/go/src/pkg/net/fd.go:268 +0x73 net.(_netFD).Read(0xf8400b6c60, 0xf8403c8000, 0x400000004000, 0x102ffffffff, 0xf8400650c0, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec net.(_TCPConn).Read(0xf8401235d8, 0xf8403c8000, 0x400000004000, 0x5edb00, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce crypto/tls.(_block).readFromUntil(0xf84010e240, 0xf840067720, 0xf8401235d8, 0xf800000005, 0xf8401235d8, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5 crypto/tls.(_Conn).readRecord(0xf840068240, 0x17, 0x0, 0x40a9df, 0xf8400ddef0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2 crypto/tls.(_Conn).Read(0xf840068240, 0xf840310000, 0x100000001000, 0xe9000000000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3 bufio.(_Reader).fill(0xf840243b00, 0xf8400ddeb0) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf840243b00, 0xf800000001, 0xf8401e4701, 0x0, 0x0, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf840125d80, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab created by net/http.(_Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 7 [syscall]: syscall.Syscall6() /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:40 +0x5 syscall.EpollWait(0xf800000007, 0xf84010f010, 0xa0000000a, 0xffffffff, 0xc, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1 net.(_pollster).WaitFD(0xf84010f000, 0xf8400c2c40, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110 net.(_pollServer).Run(0xf8400c2c40, 0x0) /usr/lib/go/src/pkg/net/fd.go:236 +0xe4 created by net.newPollServer /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382

goroutine 9 [chan receive]: net/http.(_persistConn).roundTrip(0xf84023f000, 0xf8400da0c0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:652 +0x33a net/http.(_Transport).RoundTrip(0xf8400c2840, 0xf8403450c0, 0x33, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:160 +0x32f net/http.send(0xf8403450c0, 0xf840065b70, 0xf8400c2840, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:133 +0x3ca net/http.(_Client).doFollowingRedirects(0xf840067330, 0xf8403450c0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:227 +0x5e2 net/http.(_Client).Get(0xf840067330, 0xf8403411c0, 0x33, 0xf8401f7330, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:176 +0xb8github.com/t3rm1n4l/go-mega.(_Mega).pollEvents(0xf8400d1000, 0x0) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:1195 +0x966 created by github.com/t3rm1n4l/go-mega.(_Mega).getFileSystem /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:601 +0x41e

goroutine 10 [select]:github.com/t3rm1n4l/megacmd/client.progressBar(0xf8401d1e10, 0xf8401ce020, 0x915c2ef1, 0x7fff30cf966d, 0x6, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x3ca created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x912

goroutine 14 [syscall]: syscall.Syscall() /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:15 +0x5 syscall.Read(0xf800000009, 0xf840167000, 0x100000001000, 0x0, 0x0, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2137 +0x78 net.(_netFD).Read(0xf8401efbd0, 0xf840167000, 0x100000001000, 0x10200000000, 0x0, ...) /usr/lib/go/src/pkg/net/fd.go:424 +0x107 net.(_TCPConn).Read(0xf8402476c0, 0xf840167000, 0x100000001000, 0x5edb00, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce crypto/tls.(_block).readFromUntil(0xf8401de620, 0xf840067720, 0xf8402476c0, 0xf800000005, 0xf8402476c0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5 crypto/tls.(_Conn).readRecord(0xf840251480, 0x17, 0x0, 0x40a9df, 0xf84030fdb0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2 crypto/tls.(_Conn).Read(0xf840251480, 0xf8401f4000, 0x100000001000, 0xe3d00000000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3 bufio.(_Reader).fill(0xf84032dd40, 0xf84030fd70) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf84032dd40, 0xf800000001, 0xf840313801, 0x0, 0x0, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf8403403c0, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 13 [chan receive]: net.(_pollServer).WaitRead(0xf8400c2c40, 0xf8400b6bd0, 0xf840067840, 0xb, 0x1, ...) /usr/lib/go/src/pkg/net/fd.go:268 +0x73 net.(_netFD).Read(0xf8400b6bd0, 0xf8401d9000, 0x100000001000, 0xffffffff, 0xf8400650c0, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec net.(_TCPConn).Read(0xf84007fe70, 0xf8401d9000, 0x100000001000, 0x726f88, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce bufio.(_Reader).fill(0xf840341280, 0x100000001) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf840341280, 0xf800000001, 0x0, 0x0, 0x405692, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf84023f000, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 16 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 17 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 18 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 19 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 20 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8401be620, 0xf84007fb48, 0xf840247b60, 0xf8400b90e0, 0xf84007fb38, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc root@la2:/home/vnc# megacmd put lp.mp4 mega:/ Quit! root@la2:/home/vnc# megacmd put lp.mp4 mega:/ Copying lp.mp4 -> mega:/ # 0.00 % of 2.4GB at 0B/s 1s panic: runtime error: makeslice: len out of range

goroutine 15 [running]:github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:869 +0x209 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 1 [runnable]:github.com/t3rm1n4l/go-mega.(_Mega).UploadFile(0xf8400c0000, 0x7ffffe94a66d, 0x6, 0xf8402958c0, 0x7ffffe94a66d, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:939 +0x1ecc ----- stack segment boundary -----github.com/t3rm1n4l/megacmd/client.(_MegaClient).Put(0xf840072a00, 0x7ffffe94a66d, 0x6, 0x7ffffe94a674, 0x6, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:488 +0x977 main.main() /home/vnc/megacmd/main.go:176 +0x174d

goroutine 2 [syscall]: created by runtime.main /build/buildd/golang-1/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]: os/signal.loop() /usr/lib/go/src/pkg/os/signal/signal_unix.go:20 +0x1c created by os/signal.init·1 /usr/lib/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 4 [chan receive]: main._func_002() /home/vnc/megacmd/main.go:105 +0xb7 created by main.main /home/vnc/megacmd/main.go:108 +0x6ad

goroutine 5 [syscall]: created by addtimer /build/buildd/golang-1/src/pkg/runtime/ztime_amd64.c:69

goroutine 8 [chan receive]: net.(_pollServer).WaitRead(0xf8400b1c40, 0xf8400a5c60, 0xf840067840, 0xb, 0x1, ...) /usr/lib/go/src/pkg/net/fd.go:268 +0x73 net.(_netFD).Read(0xf8400a5c60, 0xf840139000, 0x400000004000, 0x102ffffffff, 0xf8400650c0, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec net.(_TCPConn).Read(0xf8400786d8, 0xf840139000, 0x400000004000, 0x5edb00, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce crypto/tls.(_block).readFromUntil(0xf8400f4260, 0xf840067720, 0xf8400786d8, 0xf800000005, 0xf8400786d8, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5 crypto/tls.(_Conn).readRecord(0xf840068240, 0x17, 0x0, 0x40a9df, 0xf8400d8c70, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2 crypto/tls.(_Conn).Read(0xf840068240, 0xf8401af000, 0x100000001000, 0xe9000000000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3 bufio.(_Reader).fill(0xf8403fa1c0, 0xf8400d8c30) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf8403fa1c0, 0xf800000001, 0xf8401e5401, 0x0, 0x0, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf8400f0d80, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab created by net/http.(_Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 7 [syscall]: syscall.Syscall6() /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:40 +0x5 syscall.EpollWait(0xf800000007, 0xf84010c010, 0xa0000000a, 0xffffffff, 0xc, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1 net.(_pollster).WaitFD(0xf84010c000, 0xf8400b1c40, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110 net.(_pollServer).Run(0xf8400b1c40, 0x0) /usr/lib/go/src/pkg/net/fd.go:236 +0xe4 created by net.newPollServer /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382

goroutine 9 [chan receive]: net/http.(_persistConn).roundTrip(0xf840181ea0, 0xf8400c2a60, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:652 +0x33a net/http.(_Transport).RoundTrip(0xf8400b1840, 0xf8401930c0, 0x33, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:160 +0x32f net/http.send(0xf8401930c0, 0xf840065b70, 0xf8400b1840, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:133 +0x3ca net/http.(_Client).doFollowingRedirects(0xf840067330, 0xf8401930c0, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:227 +0x5e2 net/http.(_Client).Get(0xf840067330, 0xf84018e9c0, 0x33, 0xf8401f87e0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:176 +0xb8github.com/t3rm1n4l/go-mega.(_Mega).pollEvents(0xf8400c0000, 0x0) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:1195 +0x966 created by github.com/t3rm1n4l/go-mega.(_Mega).getFileSystem /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:601 +0x41e

goroutine 10 [select]:github.com/t3rm1n4l/megacmd/client.progressBar(0xf8400d82d0, 0xf8401df460, 0x915c2ef1, 0x7ffffe94a66d, 0x6, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/utils.go:155 +0x3ca created by github.com/t3rm1n4l/megacmd/client.(*MegaClient).Put /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/megacmd/client/client.go:485 +0x912

goroutine 14 [syscall]: syscall.Syscall() /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:15 +0x5 syscall.Read(0xf800000009, 0xf84019e000, 0x100000001000, 0x0, 0x0, ...) /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2137 +0x78 net.(_netFD).Read(0xf840230090, 0xf84019e000, 0x100000001000, 0x10200000000, 0x0, ...) /usr/lib/go/src/pkg/net/fd.go:424 +0x107 net.(_TCPConn).Read(0xf84025a518, 0xf84019e000, 0x100000001000, 0x5edb00, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce crypto/tls.(_block).readFromUntil(0xf8401d6520, 0xf840067720, 0xf84025a518, 0xf800000005, 0xf84025a518, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:397 +0xa5 crypto/tls.(_Conn).readRecord(0xf84019c000, 0x17, 0x0, 0x40a9df, 0xf8402aa4a0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:477 +0xf2 crypto/tls.(_Conn).Read(0xf84019c000, 0xf8402ab000, 0x100000001000, 0xe3d00000000, 0x0, ...) /usr/lib/go/src/pkg/crypto/tls/conn.go:762 +0xe3 bufio.(_Reader).fill(0xf8403f70c0, 0xf8402aa460) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf8403f70c0, 0xf800000001, 0xf8401c3401, 0x0, 0x0, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf8401903c0, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 13 [chan receive]: net.(_pollServer).WaitRead(0xf8400b1c40, 0xf8400a5bd0, 0xf840067840, 0xb, 0x1, ...) /usr/lib/go/src/pkg/net/fd.go:268 +0x73 net.(_netFD).Read(0xf8400a5bd0, 0xf8401a1000, 0x100000001000, 0xffffffff, 0xf8400650c0, ...) /usr/lib/go/src/pkg/net/fd.go:428 +0x1ec net.(_TCPConn).Read(0xf84025a598, 0xf8401a1000, 0x100000001000, 0x726f88, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock_posix.go:87 +0xce bufio.(_Reader).fill(0xf84018ea80, 0x100000001) /usr/lib/go/src/pkg/bufio/bufio.go:77 +0xf0 bufio.(_Reader).Peek(0xf84018ea80, 0xf800000001, 0x0, 0x0, 0x405692, ...) /usr/lib/go/src/pkg/bufio/bufio.go:102 +0xbc net/http.(_persistConn).readLoop(0xf840181ea0, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:521 +0xab created by net/http.(*Transport).getConn /usr/lib/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 16 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 17 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 18 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 19 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

goroutine 20 [runnable]:github.com/t3rm1n4l/go-mega._func_005(0xf8402a9da0, 0xf84007fbc0, 0xf84025a958, 0xf8400eabe0, 0xf84007fdd0, ...) /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 created by github.com/t3rm1n4l/go-mega.(*Mega).UploadFile /home/vnc/megacmd/.gopath/src/github.com/t3rm1n4l/go-mega/mega.go:926 +0xecc

— Reply to this email directly or view it on GitHub https://github.com/t3rm1n4l/megacmd/issues/15#issuecomment-52859020.

cnbeining commented 10 years ago

Made tests, nothing worked for me.

"panic: runtime error: makeslice: len out of range"

I am using Ubuntu 12.04, with the latest golang available with apt-get.

However, it is true that megacmd works with my OSX 10.9.4, with golang retrieved with homebrew.

t3rm1n4l commented 10 years ago

Can you give more details. What is the size of file ? Golang version ? Put command ?

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Thu, Aug 21, 2014 at 9:05 AM, David.Zhuang notifications@github.com wrote:

Made tests, nothing worked for me.

"panic: runtime error: makeslice: len out of range"

I am using Ubuntu 12.04, with the latest golang available with apt-get.

However, it is true that megacmd works with my OSX 10.9.4, with golang retrieved with homebrew.

— Reply to this email directly or view it on GitHub https://github.com/t3rm1n4l/megacmd/issues/15#issuecomment-52874838.

cnbeining commented 10 years ago

The same file, 2.4G.

go version
go version go1

Command:

megacmd put lp.mp4 mega:/

Interesting, the problem was solved with the binary file provided.

在 2014年8月21日,上午12:59,Sarath Lakshman notifications@github.com 写道:

Can you give more details. What is the size of file ? Golang version ? Put command ?

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Thu, Aug 21, 2014 at 9:05 AM, David.Zhuang notifications@github.com wrote:

Made tests, nothing worked for me.

"panic: runtime error: makeslice: len out of range"

I am using Ubuntu 12.04, with the latest golang available with apt-get.

However, it is true that megacmd works with my OSX 10.9.4, with golang retrieved with homebrew.

— Reply to this email directly or view it on GitHub https://github.com/t3rm1n4l/megacmd/issues/15#issuecomment-52874838.

— Reply to this email directly or view it on GitHub.

t3rm1n4l commented 10 years ago

Please use go 1.2 or 1.3 and build from latest sources

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Thu, Aug 21, 2014 at 10:33 AM, David.Zhuang notifications@github.com wrote:

The same file, 2.4G.

go version
go version go1

Command:

megacmd put lp.mp4 mega:/

Interesting, the problem was solved with the binary file provided.

在 2014年8月21日,上午12:59,Sarath Lakshman notifications@github.com 写道:

Can you give more details. What is the size of file ? Golang version ? Put command ?

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Thu, Aug 21, 2014 at 9:05 AM, David.Zhuang notifications@github.com

wrote:

Made tests, nothing worked for me.

"panic: runtime error: makeslice: len out of range"

I am using Ubuntu 12.04, with the latest golang available with apt-get.

However, it is true that megacmd works with my OSX 10.9.4, with golang retrieved with homebrew.

— Reply to this email directly or view it on GitHub https://github.com/t3rm1n4l/megacmd/issues/15#issuecomment-52874838.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/t3rm1n4l/megacmd/issues/15#issuecomment-52878889.

matrog commented 10 years ago

same error, latest build of megacmd and go 1.3.1

go version go1.3.1 linux/arm

here's file size

pi@raspberrypi:~/mega/megacmd$ ls -ltr /media/nas/test.mkv -rwxrwxrwx 1 1024 users 2804954457 ago 20 18:47 /media/nas/test.mkv

Copying /media/nas/test.mkv -> mega:/share/test.mkv # 0.00 % of 2.8GB at 0B/s 0 panic: runtime error: makeslice: len out of range

nelg commented 10 years ago

for the people here testing, can you check if you go binary is 32 bit or 64 bit, and if your OS is 32 bit or 64 bit.

Can you run: which go | xargs file

that will show if it's the 64 bit version or the 32 bit version. Also, run: uname -a

nelg commented 10 years ago

the error sounds a lot to me like, go is trying to store the length into a 32 bit int. ie: 2804954457 bytes = 22439635656 bits = 10100111001100000011010101011001000 in base 2. This is 36 bits.. which is more than a 32 bit int will hold.

matrog commented 10 years ago

pi@raspberrypi:~/mega$ which go | xargs file /home/pi/mega/go/bin/go: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped pi@raspberrypi:~/mega$ uname -a Linux raspberrypi 3.12.23+ #692 PREEMPT Thu Jun 26 20:15:50 BST 2014 armv6l GNU/Linux

matrog commented 10 years ago

tested on a 64 bit env works fine /home/user/mega/go/bin//go: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

:~/mega/megacmd$ uname -a Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

nelg commented 10 years ago

t3rm1n4l: Could the problem be here: https://github.com/t3rm1n4l/go-mega/blob/master/utils.go#L52 ?

itbra commented 10 years ago

Same issue here:

file: 2216197393 the_file.zip
OS: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
dynamically linked (uses shared libs), not stripped
izdrail commented 9 years ago

i'm having the same issue with files larger than 2GB