Code Monkey home page Code Monkey logo

Comments (6)

andrewmunsell avatar andrewmunsell commented on May 17, 2024

I was able to get this to work with specifying -d utun7, without the equals

from iodine.

yarrick avatar yarrick commented on May 17, 2024

Since a904570 it is supposed to try utun automatically. Can you try running it inside gdb and try to get a stack trace or core dump?

Try this:

$ sudo gdb ./iodine
(gdb) r -f -P password t1.mydomain.com

then a stack trace can be shown by typing where once it stops on the segfault. It is probably some missing error handling in open_utun() if I have to guess.

from iodine.

andrewmunsell avatar andrewmunsell commented on May 17, 2024

Result:

➜  bin sudo gdb ./iodine
Password:
GNU gdb (GDB) 10.2
...
Reading symbols from ./iodine...
(gdb) r -f -P password t1.mydomain.com
Starting program: /Users/andrew/Downloads/iodine-master/bin/iodine -f -P password t1.mydomainc.om
[New Thread 0x2003 of process 13668]
[New Thread 0x2503 of process 13668]
warning: unhandled dyld version (17)
No tun devices found, trying utun

Thread 2 received signal SIGSEGV, Segmentation fault.
0x0000000100003241 in utun_unit (dev=0x0) at tun.c:344
344		while (*unit_str != '\0' && !isdigit(*unit_str))

from iodine.

yarrick avatar yarrick commented on May 17, 2024

Thanks, I spotted an error causing NULL to be passed to the utun setup. Can you try again with the latest code?

It will probably work better now but might log a bit while testing devices in use.

from iodine.

andrewmunsell avatar andrewmunsell commented on May 17, 2024

LGTM, works great now:

➜  bin sudo ./iodine -f -P password t1.mydomain.com
No tun devices found, trying utun
iodine: open_utun: connect: Resource busy
iodine: open_utun: connect: Resource busy
iodine: open_utun: connect: Resource busy
iodine: open_utun: connect: Resource busy
iodine: open_utun: connect: Resource busy
iodine: open_utun: connect: Resource busy
iodine: open_utun: connect: Resource busy
Opened utun7
Opened IPv4 UDP socket
...

from iodine.

yarrick avatar yarrick commented on May 17, 2024

Thanks for the quick test!

from iodine.

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.