Comments (14)
Same here.
from eternalterminal.
from eternalterminal.
change this line:
CLIENT_BINARY="etclient"
to this:
CLIENT_BINARY="lldb -- etclient"
then rerun with lldb and when it crashes, type "bt" to give me the stack trace
from eternalterminal.
(lldb) r
Process 2007 launched: '/usr/local/bin/etclient' (x86_64)
Process 2007 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x00007fffc8fdcb52 libsystem_c.dylib`strlen + 18
libsystem_c.dylib`strlen:
-> 0x7fffc8fdcb52 <+18>: pcmpeqb (%rdi), %xmm0
0x7fffc8fdcb56 <+22>: pmovmskb %xmm0, %esi
0x7fffc8fdcb5a <+26>: andq $0xf, %rcx
0x7fffc8fdcb5e <+30>: orq $-0x1, %rax
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0: 0x00007fffc8fdcb52 libsystem_c.dylib`strlen + 18
frame #1: 0x0000000100011e77
etclient`et::UnixSocketHandler::connect(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) + 2355
frame #2: 0x000000010000da32 etclient`et::ClientConnection::connect() + 272
frame #3: 0x00000001000038fd etclient`createClient() + 2375
frame #4: 0x0000000100004579 etclient`main + 147
frame #5: 0x00007fffc8fa6235 libdyld.dylib`start + 1
from eternalterminal.
Are you running the latest homebrew version? Those addresses don't line up for me:
(lldb) target create --no-dependents --arch x86_64 /usr/local/bin/etclient
Current executable set to '/usr/local/bin/etclient' (x86_64).
(lldb) image list
[ 0] C6084147-6006-33B2-AEC7-3E411FECE663 0x0000000100000000 /usr/local/bin/etclient
(lldb) image lookup --address 0x0000000100011e77
Address: etclient[0x0000000100011e77] (etclient.__TEXT.__text + 62311)
Summary: etclient`et::UnixSocketHandler::connect(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) + 1407
from eternalterminal.
Either way I think I found the problem. Going to patch now.
from eternalterminal.
@gramster Please build the latest master and verify that the problem is fixed, thanks!
from eternalterminal.
BTW: This is a client only bug so you don't have to change the server binary
from eternalterminal.
built master on OSX, no more above error but can't connect to host.
Could not make initial connection to $ip: Could not connect to host
from eternalterminal.
Validated that ssh with same user@ip works.
from eternalterminal.
@yixizhang Are you using ssh_config aliases? These aren't supported yet. If not, can you post the whole command in context?
from eternalterminal.
Sorry, I forgot that I used ssh-agent
and ssh-add
when I validated ssh
and et
yesterday.
The command I used for ssh is ssh -i .ssh/google_compute_engine user@host
. I tried to use the corresponding et command, in format of et -s "-i .ssh/google_compute_engine user@host:port"
but it complains format:
Usage: ET (options) [user@]hostname[:port]
from eternalterminal.
@MisterTea I can confirm that building the latest version on Mac fixes the segmentation fault. All is working for me now.
macOS 10.12.5, et
initially installed with brew, then etclient
built from source and original overwritten.
from eternalterminal.
Fixed in https://github.com/MisterTea/EternalTCP/releases/tag/et-v3.1.0
from eternalterminal.
Related Issues (20)
- build error: "/usr/bin/ld: cannot find -lstdc++fs: No such file or directory" HOT 2
- Build failure with protobuf 23.3 HOT 2
- Dependency/Readme clean up HOT 1
- Reverse tunnel listen interface HOT 9
- 100% CPU Usage 😢 HOT 8
- Using a different ssh port HOT 1
- Building et on AL2 HOT 11
- "Error handling new client: Failed a call to readAll" HOT 4
- Starting multiple sessions for the same host in parallel leads to crash HOT 3
- Why does 6.2.8 install header and cmake files? HOT 6
- `--ssh-option=ControlPath=...` does not create any filesystem objects
- `et -t` does not accept IP address HOT 3
- APT-KEY is deprecated, update instructions for install HOT 3
- Segfault starting etserver on raspberry pi zero HOT 3
- package for pkgx HOT 1
- GCP IAP proxy HOT 3
- Ubuntu mantic et package (et_6.2.8-mantic1_amd64.deb) broken (bad dep on libtinfo5) HOT 9
- Need a good way to kill off ET sessions HOT 5
- A way to prevent sourcing the shell's configs twice HOT 1
- et needs ssh's -t option to support running tmux with et HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eternalterminal.