Coder Social home page Coder Social logo

Comments (14)

yixizhang avatar yixizhang commented on May 24, 2024

Same here.

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

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.

gramster avatar gramster commented on May 24, 2024
(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.

MisterTea avatar MisterTea commented on May 24, 2024

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.

MisterTea avatar MisterTea commented on May 24, 2024

Either way I think I found the problem. Going to patch now.

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

@gramster Please build the latest master and verify that the problem is fixed, thanks!

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

BTW: This is a client only bug so you don't have to change the server binary

from eternalterminal.

yixizhang avatar yixizhang commented on May 24, 2024

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.

yixizhang avatar yixizhang commented on May 24, 2024

Validated that ssh with same user@ip works.

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

@yixizhang Are you using ssh_config aliases? These aren't supported yet. If not, can you post the whole command in context?

from eternalterminal.

yixizhang avatar yixizhang commented on May 24, 2024

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.

CallumDenby avatar CallumDenby commented on May 24, 2024

@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.

MisterTea avatar MisterTea commented on May 24, 2024

Fixed in https://github.com/MisterTea/EternalTCP/releases/tag/et-v3.1.0

from eternalterminal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.