大道至简,简即是繁
- 个人网站: https://colobu.com
- 最好的Go微服务框架: https://rpcx.io
- rpcx官方博客: https://blog.rpcx.io
a tcpdump-like tool to capture rpcx tcp packets
License: Apache License 2.0
大道至简,简即是繁
Hello,
I keep getting the following errrors:
# command-line-arguments
./xdump.go:28:21: undefined: connection
./xdump.go:60:27: undefined: connection
I tried running my application first, so there was a connection, I tried it without a connection being present, kept getting that same error, though.
I tried also using:
go run xdump.go -c 127.0.0.1:14555 -p -color
./xdump would not work as I was not able to get it to build when I tried that first. Now that I look at it, trying to build gave the exact same error.
I made sure I have libpcap-dev installed as well.
My system:
///////////// mosthated@mosthated-pc
///////////////////// ----------------------
///////*767//////////////// OS: Pop!_OS 19.04 x86_64
//////7676767676*////////////// Host: MS-7B79 2.0
/////76767//7676767////////////// Kernel: 5.0.0-15-generic
/////767676///*76767/////////////// Uptime: 9 hours, 50 mins
///////767676///76767.///7676*/////// Packages: 3201 (dpkg), 9 (flatpak), 8 (snap)
/////////767676//76767///767676//////// Shell: zsh 5.5.1
//////////76767676767////76767///////// Resolution: 1920x1080, 2560x1080, 1920x1080
///////////76767676//////7676////////// DE: Unity
////////////,7676,///////767/////////// WM: GNOME Shell
/////////////*7676///////76//////////// WM Theme: Adwaita
///////////////7676//////////////////// Theme: Pop-slim-dark [GTK2/3]
///////////////7676///767//////////// Icons: Adwaita [GTK2/3]
//////////////////////'//////////// Terminal: extraterm
//////.7676767676767676767,////// CPU: AMD Ryzen 5 2600 (12) @ 3.400GHz
/////767676767676767676767///// GPU: NVIDIA GeForce RTX 2070
/////////////////////////// Memory: 8764MiB / 32175MiB
/////////////////////
/////////////
Thanks,
-MH
我在mac下一运行,直接就crash掉了
runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff20432c9e
stack: frame={sp:0x7ffeefbff3b8, fp:0x7ffeefbff408} stack=[0x7ffeefb80458,0x7ffeefbff4c0)
0x00007ffeefbff2b8: 0x01007ffeefbff2d8 0x0000000000000004
0x00007ffeefbff2c8: 0x000000000000001f 0x00007fff20432c9e
0x00007ffeefbff2d8: 0x0b01dfacedebac1e 0x0000000000000001
0x00007ffeefbff2e8: 0x0000000004034451 <runtime.throw+0x0000000000000071> 0x00007ffeefbff388
0x00007ffeefbff2f8: 0x0000000004196714 0x00007ffeefbff340
0x00007ffeefbff308: 0x0000000004034708 <runtime.fatalthrow.func1+0x0000000000000048> 0x00000000042f09e0
0x00007ffeefbff318: 0x0000000000000001 0x0000000000000001
0x00007ffeefbff328: 0x00007ffeefbff388 0x0000000004034451 <runtime.throw+0x0000000000000071>
0x00007ffeefbff338: 0x00000000042f09e0 0x00007ffeefbff378
0x00007ffeefbff348: 0x0000000004034690 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbff358
0x00007ffeefbff358: 0x00000000040346c0 <runtime.fatalthrow.func1+0x0000000000000000> 0x00000000042f09e0
0x00007ffeefbff368: 0x0000000004034451 <runtime.throw+0x0000000000000071> 0x00007ffeefbff388
0x00007ffeefbff378: 0x00007ffeefbff3a8 0x0000000004034451 <runtime.throw+0x0000000000000071>
0x00007ffeefbff388: 0x00007ffeefbff390 0x0000000004034480 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff398: 0x0000000004199c2d 0x000000000000002a
0x00007ffeefbff3a8: 0x00007ffeefbff3f8 0x0000000004049c76 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff3b8: <0x0000000004199c2d 0x000000000401a285 <runtime.(*fixalloc).alloc+0x0000000000000085>
0x00007ffeefbff3c8: 0x00007ffeefbff438 0x0000000004027826 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff3d8: 0x000000c00012c000 0x0000000000002000
0x00007ffeefbff3e8: 0x000000c000000008 0x0000000000000000
0x00007ffeefbff3f8: 0x00007ffeefbff440 !0x00007fff20432c9e
0x00007ffeefbff408: >0x00007ffeefbff440 0x00000000042d4000
0x00007ffeefbff418: 0x0000000000000154 0x00000000040b8825 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff428: 0x000000000406481f <runtime.syscall+0x000000000000001f> 0x000000c000117bf0
0x00007ffeefbff438: 0x00007ffeefbff480 0x000000c000117bc0
0x00007ffeefbff448: 0x0000000004062690 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001
0x00007ffeefbff458: 0x000000c000062600 0x260000000419d538
0x00007ffeefbff468: 0x0000000000000010 0x000000000414b420
0x00007ffeefbff478: 0x0000000000000468 0x000000c0000001a0
0x00007ffeefbff488: 0x00000000040607a9 <runtime.systemstack+0x0000000000000049> 0x0000000000000004
0x00007ffeefbff498: 0x00000000041c01d8 0x00000000042f09e0
0x00007ffeefbff4a8: 0x00007ffeefbff4f0 0x00000000040606a5 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff4b8: 0x000000000406065d <runtime.rt0_go+0x000000000000013d>
runtime.throw({0x4199c2d, 0x401a285})
/usr/local/go/src/runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff20432c9e
stack: frame={sp:0x7ffeefbff3b8, fp:0x7ffeefbff408} stack=[0x7ffeefb80458,0x7ffeefbff4c0)
0x00007ffeefbff2b8: 0x01007ffeefbff2d8 0x0000000000000004
0x00007ffeefbff2c8: 0x000000000000001f 0x00007fff20432c9e
0x00007ffeefbff2d8: 0x0b01dfacedebac1e 0x0000000000000001
0x00007ffeefbff2e8: 0x0000000004034451 <runtime.throw+0x0000000000000071> 0x00007ffeefbff388
0x00007ffeefbff2f8: 0x0000000004196714 0x00007ffeefbff340
0x00007ffeefbff308: 0x0000000004034708 <runtime.fatalthrow.func1+0x0000000000000048> 0x00000000042f09e0
0x00007ffeefbff318: 0x0000000000000001 0x0000000000000001
0x00007ffeefbff328: 0x00007ffeefbff388 0x0000000004034451 <runtime.throw+0x0000000000000071>
0x00007ffeefbff338: 0x00000000042f09e0 0x00007ffeefbff378
0x00007ffeefbff348: 0x0000000004034690 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbff358
0x00007ffeefbff358: 0x00000000040346c0 <runtime.fatalthrow.func1+0x0000000000000000> 0x00000000042f09e0
0x00007ffeefbff368: 0x0000000004034451 <runtime.throw+0x0000000000000071> 0x00007ffeefbff388
0x00007ffeefbff378: 0x00007ffeefbff3a8 0x0000000004034451 <runtime.throw+0x0000000000000071>
0x00007ffeefbff388: 0x00007ffeefbff390 0x0000000004034480 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff398: 0x0000000004199c2d 0x000000000000002a
0x00007ffeefbff3a8: 0x00007ffeefbff3f8 0x0000000004049c76 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff3b8: <0x0000000004199c2d 0x000000000401a285 <runtime.(*fixalloc).alloc+0x0000000000000085>
0x00007ffeefbff3c8: 0x00007ffeefbff438 0x0000000004027826 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff3d8: 0x000000c00012c000 0x0000000000002000
0x00007ffeefbff3e8: 0x000000c000000008 0x0000000000000000
0x00007ffeefbff3f8: 0x00007ffeefbff440 !0x00007fff20432c9e
0x00007ffeefbff408: >0x00007ffeefbff440 0x00000000042d4000
0x00007ffeefbff418: 0x0000000000000154 0x00000000040b8825 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff428: 0x000000000406481f <runtime.syscall+0x000000000000001f> 0x000000c000117bf0
0x00007ffeefbff438: 0x00007ffeefbff480 0x000000c000117bc0
0x00007ffeefbff448: 0x0000000004062690 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001
0x00007ffeefbff458: 0x000000c000062600 0x260000000419d538
0x00007ffeefbff468: 0x0000000000000010 0x000000000414b420
0x00007ffeefbff478: 0x0000000000000468 0x000000c0000001a0
0x00007ffeefbff488: 0x00000000040607a9 <runtime.systemstack+0x0000000000000049> 0x0000000000000004
0x00007ffeefbff498: 0x00000000041c01d8 0x00000000042f09e0
0x00007ffeefbff4a8: 0x00007ffeefbff4f0 0x00000000040606a5 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff4b8: 0x000000000406065d <runtime.rt0_go+0x000000000000013d>
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:719 +0x396
goroutine 1 [syscall, locked to thread]:
syscall.syscall(0x40b8820, 0x1, 0x40487413, 0xc000117c80)
/usr/local/go/src/runtime/sys_darwin.go:22 +0x3b fp=0xc000117bf0 sp=0xc000117bd0 pc=0x405f4bb
syscall.syscall(0x406a106, 0x0, 0xc000117ca8, 0x406a038)
<autogenerated>:1 +0x26 fp=0xc000117c38 sp=0xc000117bf0 pc=0x4064f46
golang.org/x/sys/unix.ioctl(0x417f4cd, 0x4, 0x1000004d00108)
/Users/tang_ke/GoCode/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:690 +0x39 fp=0xc000117c68 sp=0xc000117c38 pc=0x40b84b9
golang.org/x/sys/unix.IoctlGetTermios(...)
/Users/tang_ke/GoCode/pkg/mod/golang.org/x/[email protected]/unix/ioctl.go:73
github.com/mattn/go-isatty.IsTerminal(0x417f4cd)
/Users/tang_ke/GoCode/pkg/mod/github.com/mattn/[email protected]/isatty_bsd.go:10 +0x50 fp=0xc000117cd8 sp=0xc000117c68 pc=0x40b88d0
github.com/fatih/color.init()
/Users/tang_ke/GoCode/pkg/mod/github.com/fatih/[email protected]/color.go:21 +0x7a fp=0xc000117d10 sp=0xc000117cd8 pc=0x40b921a
runtime.doInit(0x42d76c0)
/usr/local/go/src/runtime/proc.go:6498 +0x123 fp=0xc000117e48 sp=0xc000117d10 pc=0x4043aa3
runtime.doInit(0x42d86c0)
/usr/local/go/src/runtime/proc.go:6475 +0x71 fp=0xc000117f80 sp=0xc000117e48 pc=0x40439f1
runtime.main()
/usr/local/go/src/runtime/proc.go:238 +0x1e6 fp=0xc000117fe0 sp=0xc000117f80 pc=0x4036aa6
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000117fe8 sp=0xc000117fe0 pc=0x4062981
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.