View Issue Details

IDProjectCategoryView StatusLast Update
0002104GNUnetcadet servicepublic2012-02-28 11:05
ReporterChristian Grothoff Assigned ToBart Polot  
PriorityimmediateSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.2Fixed in Version0.9.2 
Summary0002104: Assertion failed at mesh_api.c:780
DescriptionBeginning HTTP download from `http://10.11.58.43:48080/hello_world'
Jan 25 09:30:16-535788 gnunet-daemon-exit-2471 ERROR Assertion failed at mesh_api.c:780.
Jan 25 09:30:16-535823 gnunet-daemon-exit-2471 ERROR Assertion failed at mesh_api.c:954.
Jan 25 09:30:19-536161 gnunet-daemon-exit-2471 ERROR Assertion failed at mesh_api.c:954.
Jan 25 09:30:25-544160 gnunet-daemon-exit-2471 ERROR Assertion failed at mesh_api.c:954.
^CFAIL: test_gnunet_vpn
Additional InformationI got this this morning on pixel. The problem did not occur last night on my system at home, where the test passed (!?).
TagsNo tags attached.

Relationships

child of 0002064 closedChristian Grothoff new VPN service (working with new exit/dns services) needs to be fully implemented and tested 

Activities

Bart Polot

2012-01-25 11:14

manager   ~0005370

I don't that the mesh API is to blame here, the problem lies in the mesh service, giving a wrong tunnel ID to the clients for an incoming tunnel.

Bart Polot

2012-01-25 11:52

manager   ~0005371

This is what I get when trying to run the test:

Core was generated by `gnunet-daemon-exit -c /home/bart/tum/svn/gnunet/src/vpn/test_gnunet_vpn.conf'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000000000 in ?? ()
(gdb) bt full
#0 0x0000000000000000 in ?? ()
No symbol table info available.
#1 0x00007f326187714b in GNUNET_HELPER_stop (h=0xd16db0) at helper.c:390
        qe = 0xd195e0
        __FUNCTION__ = "GNUNET_HELPER_stop"
#2 0x00000000004065f6 in cleanup (cls=<optimized out>, tskctx=<optimized out>) at gnunet-daemon-exit.c:2724
        i = <optimized out>
        __FUNCTION__ = "cleanup"
#3 0x00007f32618823c6 in run_ready (ws=0xd16070, rs=0xd15fe0) at scheduler.c:684
        p = <optimized out>
        pos = 0xd16880
        tc = {reason = GNUNET_SCHEDULER_REASON_SHUTDOWN, read_ready = 0xd15fe0, write_ready = 0xd16070}
#4 GNUNET_SCHEDULER_run (task=<optimized out>, task_cls=<optimized out>) at scheduler.c:874
        rs = 0xd15fe0
        ws = <optimized out>
        timeout = <optimized out>
        ret = <optimized out>
        shc_int = 0xd162b0
        shc_term = 0xd16360
        shc_quit = 0xd16650
        shc_hup = 0xd16700
        shc_pipe = 0xd16410
        last_tr = 37
        busy_wait_warning = 0
        pr = <optimized out>
        c = 0 '\000'
        __FUNCTION__ = "GNUNET_SCHEDULER_run"
#5 0x00007f326187d4e4 in GNUNET_PROGRAM_run (argc=3, argv=0x7fff9a163628, binaryName=0x40958b "gnunet-daemon-exit", binaryHelp=<optimized out>, options=<optimized out>,
    task=0x402c70 <run>, task_cls=0x0) at program.c:250
        cc = {args = 0x7fff9a163640, cfgfile = 0xd16270 "/home/bart/tum/svn/gnunet/src/vpn/test_gnunet_vpn.conf", task = 0x402c70 <run>, task_cls = 0x0, cfg = 0xd14f40}
        path = <optimized out>
        loglev = 0x0
        logfile = 0x0
        ret = 3
        cnt = <optimized out>
        skew_offset = 140735778534944
        skew_variance = 139854370036693
        clock_offset = <optimized out>
        cfg = 0xd14f40
        defoptions = {{shortName = 99 'c', name = 0x7f3261890247 "config", argumentHelp = 0x7f326189024e "FILENAME",
            description = 0x7f32618902f8 "use configuration file FILENAME", require_argument = 1, processor = 0x7f3261876440 <GNUNET_GETOPT_set_string>, scls = 0x7fff9a163498}, {
            shortName = 104 'h', name = 0x7f3261890262 "help", argumentHelp = 0x0, description = 0x7f3261890257 "print this help", require_argument = 0,
            processor = 0x7f32618760c0 <GNUNET_GETOPT_format_help_>, scls = 0x40a1d8}, {shortName = 76 'L', name = 0x7f3261890267 "log", argumentHelp = 0x7f326189026b "LOGLEVEL",
            description = 0x7f3261890318 "configure logging to use LOGLEVEL", require_argument = 1, processor = 0x7f3261876440 <GNUNET_GETOPT_set_string>, scls = 0x7fff9a1634c0},
          {shortName = 108 'l', name = 0x7f3261890274 "logfile", argumentHelp = 0x7f326188da5e "LOGFILE",
            description = 0x7f3261890340 "configure logging to write logs to LOGFILE", require_argument = 1, processor = 0x7f3261876440 <GNUNET_GETOPT_set_string>,
            scls = 0x7fff9a1634c8}, {shortName = 118 'v', name = 0x7f326189027c "version", argumentHelp = 0x0, description = 0x7f3261890284 "print the version number",
            require_argument = 0, processor = 0x7f3261876090 <GNUNET_GETOPT_print_version_>, scls = 0x7f326189029d}}
        allopts = 0xd15fe0
        gargs = 0x5 <Address 0x5 out of bounds>
        lpfx = 0xd16160 "p", <incomplete sequence \321>
        spc = <optimized out>
---Type <return> to continue, or q <return> to quit---
#6 0x0000000000402b77 in main (argc=<optimized out>, argv=<optimized out>) at gnunet-daemon-exit.c:3149
        options = {{shortName = 0 '\000', name = 0x0, argumentHelp = 0x0, description = 0x0, require_argument = 0, processor = 0, scls = 0x0}}

Bart Polot

2012-01-25 17:43

manager   ~0005372

Cannot reproduce, the only potential source of problems was fixed in r19396.

Christian Grothoff

2012-01-25 21:24

manager   ~0005373

I just got it again, ONCE, after about 30 runs. Now, it also (re)appeared after I made the VPN (re)connect faster, so maybe it now happens more often. But in any case, the issue is non-deterministic.

Christian Grothoff

2012-01-25 21:25

manager   ~0005374

Here is some output to give you an idea about the frequency I have now:

grothoff@spec:~/svn/gnunet/src/vpn$ make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
  CCLD test_gnunet_vpn
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.122.213:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
PASS: test_gnunet_vpn
=============
1 test passed
=============
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
grothoff@spec:~/svn/gnunet/src/vpn$ time make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.74.99:48080/hello_world'
Jan 25 21:23:17-188504 gnunet-daemon-exit-32539 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:23:17-188533 gnunet-daemon-exit-32539 ERROR Assertion failed at mesh_api.c:957.
Jan 25 21:23:20-185219 gnunet-daemon-exit-32539 ERROR Assertion failed at mesh_api.c:957.
Jan 25 21:23:26-185165 gnunet-daemon-exit-32539 ERROR Assertion failed at mesh_api.c:957.
^C
FAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt


real 0m12.599s
user 0m0.996s
sys 0m0.076s
grothoff@spec:~/svn/gnunet/src/vpn$
grothoff@spec:~/svn/gnunet/src/vpn$ time make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.47.153:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
PASS: test_gnunet_vpn
=============
1 test passed
=============
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'

real 0m2.343s
user 0m0.344s
sys 0m0.052s
grothoff@spec:~/svn/gnunet/src/vpn$ time make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.107.185:48080/hello_world'
Jan 25 21:24:42-287868 gnunet-daemon-exit-32675 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:24:42-287905 gnunet-daemon-exit-32675 ERROR Assertion failed at mesh_api.c:957.
Jan 25 21:24:45-285289 gnunet-daemon-exit-32675 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt


real 0m7.415s
user 0m0.492s
sys 0m0.060s
grothoff@spec:~/svn/gnunet/src/vpn$ time make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.174.49:48080/hello_world'
Jan 25 21:24:50-469843 vpn-32747 ERROR Assertion failed at client.c:1059.
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
Jan 25 21:24:50-470478 vpn-32747 ERROR Assertion failed at client.c:1059.
PASS: test_gnunet_vpn
=============
1 test passed
=============
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'

real 0m2.236s
user 0m0.240s
sys 0m0.048s
grothoff@spec:~/svn/gnunet/src/vpn$ time make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.142.245:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
PASS: test_gnunet_vpn
=============
1 test passed
=============
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'

real 0m2.159s
user 0m0.144s
sys 0m0.064s
grothoff@spec:~/svn/gnunet/src/vpn$ time make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.62.159:48080/hello_world'
Jan 25 21:24:57-242677 vpn-412 ERROR Assertion failed at client.c:1059.
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
PASS: test_gnunet_vpn
=============
1 test passed
=============
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'

real 0m2.410s
user 0m0.412s
sys 0m0.044s
grothoff@spec:~/svn/gnunet/src/vpn$ time make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.218.9:48080/hello_world'
Jan 25 21:25:00-418370 gnunet-daemon-exit-470 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:25:00-418404 gnunet-daemon-exit-470 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================

Christian Grothoff

2012-01-25 21:51

manager   ~0005375

Now, this is interesting. On pixel, I seem to get this error every time now:

make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.26.183:48080/hello_world'
Jan 25 21:50:04-577182 gnunet-daemon-exit-4745 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:50:04-577214 gnunet-daemon-exit-4745 ERROR Assertion failed at mesh_api.c:957.
Jan 25 21:50:07-584289 gnunet-daemon-exit-4745 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt

grothoff@pixel:~/svn/gnunet/src/vpn$ make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.90.203:48080/hello_world'
Jan 25 21:50:10-595677 gnunet-daemon-exit-4864 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:50:10-595718 gnunet-daemon-exit-4864 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt

grothoff@pixel:~/svn/gnunet/src/vpn$ make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.142.117:48080/hello_world'
Jan 25 21:50:14-978943 gnunet-daemon-exit-4983 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:50:14-978976 gnunet-daemon-exit-4983 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt

grothoff@pixel:~/svn/gnunet/src/vpn$ make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.42.219:48080/hello_world'
Jan 25 21:50:18-639801 gnunet-daemon-exit-5100 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:50:18-639834 gnunet-daemon-exit-5100 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt

grothoff@pixel:~/svn/gnunet/src/vpn$ make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.154.235:48080/hello_world'
Jan 25 21:50:21-667902 gnunet-daemon-exit-5220 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:50:21-667945 gnunet-daemon-exit-5220 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt

grothoff@pixel:~/svn/gnunet/src/vpn$ make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.110.185:48080/hello_world'
Jan 25 21:50:24-995767 gnunet-daemon-exit-5338 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:50:24-995800 gnunet-daemon-exit-5338 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt

grothoff@pixel:~/svn/gnunet/src/vpn$ make check
make test_gnunet_vpn
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
make[1]: `test_gnunet_vpn' is up to date.
make[1]: Leaving directory `/home/grothoff/svn/gnunet/src/vpn'
make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://10.11.254.87:48080/hello_world'
Jan 25 21:50:27-743792 gnunet-daemon-exit-5460 ERROR Assertion failed at mesh_api.c:780.
Jan 25 21:50:27-743835 gnunet-daemon-exit-5460 ERROR Assertion failed at mesh_api.c:957.
^CFAIL: test_gnunet_vpn
===================================
1 of 1 test failed
Please report to bug-gnunet@gnu.org
===================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Interrupt

Christian Grothoff

2012-01-26 00:23

manager   ~0005376

I now get this consistently everywhere:

make check-TESTS
make[1]: Entering directory `/home/grothoff/svn/gnunet/src/vpn'
Beginning HTTP download from `http://169.254.20.225:48080/hello_world'
Jan 26 00:21:14-926634 gnunet-daemon-exit-15271 ERROR Assertion failed at mesh_api.c:780.
Jan 26 00:21:14-926662 gnunet-daemon-exit-15271 ERROR Assertion failed at mesh_api.c:957.
Jan 26 00:21:17-925170 gnunet-daemon-exit-15271 ERROR Assertion failed at mesh_api.c:957.
Jan 26 00:21:23-925130 gnunet-daemon-exit-15271 ERROR Assertion failed at mesh_api.c:957.
curl_multi_perform failed at test_gnunet_vpn.c:229: `Timeout was reached'
Download complete, shutting down!
FAIL: test_gnunet_vpn-4_to_6
Beginning HTTP download from `http://fc2d:fdaa:6a26:0:89ef:c75d:8f73:c02b:48080/hello_world'
Jan 26 00:21:30-502291 gnunet-daemon-exit-15328 ERROR Assertion failed at mesh_api.c:780.
Jan 26 00:21:30-502327 gnunet-daemon-exit-15328 ERROR Assertion failed at mesh_api.c:957.
Jan 26 00:21:33-501312 gnunet-daemon-exit-15328 ERROR Assertion failed at mesh_api.c:957.
Jan 26 00:21:39-501260 gnunet-daemon-exit-15328 ERROR Assertion failed at mesh_api.c:957.
curl_multi_perform failed at test_gnunet_vpn.c:229: `Timeout was reached'
Download complete, shutting down!
FAIL: test_gnunet_vpn-6_to_4
Beginning HTTP download from `http://fc2d:fdaa:6a26:0:d4a:aff6:5222:1705:48080/hello_world'
Jan 26 00:21:47-770057 gnunet-daemon-exit-15387 ERROR Assertion failed at mesh_api.c:780.
Jan 26 00:21:47-770092 gnunet-daemon-exit-15387 ERROR Assertion failed at mesh_api.c:957.
Jan 26 00:21:50-769086 gnunet-daemon-exit-15387 ERROR Assertion failed at mesh_api.c:957.
Jan 26 00:21:56-769076 gnunet-daemon-exit-15387 ERROR Assertion failed at mesh_api.c:957.
curl_multi_perform failed at test_gnunet_vpn.c:229: `Timeout was reached'
Download complete, shutting down!
FAIL: test_gnunet_vpn-6_over
Beginning HTTP download from `http://169.254.20.19:48080/hello_world'
Jan 26 00:22:05-042748 gnunet-daemon-exit-15445 ERROR Assertion failed at mesh_api.c:780.
Jan 26 00:22:05-042783 gnunet-daemon-exit-15445 ERROR Assertion failed at mesh_api.c:957.
Jan 26 00:22:08-041228 gnunet-daemon-exit-15445 ERROR Assertion failed at mesh_api.c:957.
Jan 26 00:22:14-041277 gnunet-daemon-exit-15445 ERROR Assertion failed at mesh_api.c:957.
curl_multi_perform failed at test_gnunet_vpn.c:229: `Timeout was reached'
Download complete, shutting down!
FAIL: test_gnunet_vpn-4_over
===================================
4 of 4 tests failed
Please report to bug-gnunet@gnu.org
===================================

Bart Polot

2012-01-26 02:30

manager   ~0005378

This is what I get:

[dmesg]
[180401.119562] tun: Universal TUN/TAP device driver, 1.6
[180401.119570] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
Beginning HTTP download from `http://169.254.20.163:48080/hello_world'
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
^C[bart@ranger ~/g/src/vpn]$


Running the 3 separate process works.

Christian Grothoff

2012-01-26 10:53

manager   ~0005380

I get the device or resource busy always if there is already an existing gnunet-helper-exit/vpn process running. Please try to make sure that that is not the case.

Bart Polot

2012-01-26 11:40

manager   ~0005382

Really weird:

[bart@ranger ~/g/src/vpn]$ pkill -9 gnunet
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_to_6
Beginning HTTP download from `http://169.254.20.227:48080/hello_world'
Jan 26 11:38:36-069054 gnunet-daemon-exit-19049 ERROR Assertion failed at tun.c:150.
Jan 26 11:38:36-075899 mesh-19051 ERROR Assertion failed at server_nc.c:420.
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
^C[bart@ranger ~/g/src/vpn]$ ^C
[bart@ranger ~/g/src/vpn]$ ^C
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Beginning HTTP download from `http://169.254.20.95:48080/hello_world'
Jan 26 11:38:40-265985 vpn-19096 ERROR Assertion failed at client.c:1059.
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_to_6
Beginning HTTP download from `http://169.254.20.23:48080/hello_world'
Jan 26 11:38:42-912542 gnunet-daemon-exit-19128 ERROR Assertion failed at tun.c:150.
Jan 26 11:38:42-917179 mesh-19130 ERROR Assertion failed at server_nc.c:420.
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
^C[bart@ranger ~/g/src/vpn]$ ^C
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Beginning HTTP download from `http://169.254.20.79:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_to_6
Beginning HTTP download from `http://169.254.20.217:48080/hello_world'
Jan 26 11:38:55-869013 gnunet-daemon-exit-19216 ERROR Assertion failed at tun.c:150.
Jan 26 11:38:55-873975 mesh-19218 ERROR Assertion failed at server_nc.c:420.
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
Error with ioctl on `/dev/net/tun': Device or resource busy
Fatal: could not initialize tun-interface
^C[bart@ranger ~/g/src/vpn]$ ^C
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Beginning HTTP download from `http://169.254.20.229:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Beginning HTTP download from `http://169.254.20.39:48080/hello_world'
Jan 26 11:37:35-373719 vpn-18770 ERROR Assertion failed at client.c:1059.
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Beginning HTTP download from `http://169.254.20.107:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Beginning HTTP download from `http://169.254.20.41:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Beginning HTTP download from `http://169.254.20.3:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
[bart@ranger ~/g/src/vpn]$ ./test_gnunet_vpn-4_over
Beginning HTTP download from `http://169.254.20.91:48080/hello_world'
MHD sends respose for request to URL `/hello_world'
Download complete, shutting down!
[bart@ranger ~/g/src/vpn]$

Bart Polot

2012-01-26 11:52

manager   ~0005383

It happens for 6_over and 4_to_6, looks like my system doesn't like IPv6 exits. On other news, I have been able to reproduce it once fo 4_over.

Bart Polot

2012-01-26 15:03

manager   ~0005385

Fixed in r19436.

Issue History

Date Modified Username Field Change
2012-01-25 09:32 Christian Grothoff New Issue
2012-01-25 09:32 Christian Grothoff Status new => assigned
2012-01-25 09:32 Christian Grothoff Assigned To => Bart Polot
2012-01-25 11:14 Bart Polot Note Added: 0005370
2012-01-25 11:52 Bart Polot Note Added: 0005371
2012-01-25 17:43 Bart Polot Note Added: 0005372
2012-01-25 17:43 Bart Polot Status assigned => feedback
2012-01-25 21:24 Christian Grothoff Note Added: 0005373
2012-01-25 21:24 Christian Grothoff Status feedback => assigned
2012-01-25 21:25 Christian Grothoff Note Added: 0005374
2012-01-25 21:51 Christian Grothoff Note Added: 0005375
2012-01-26 00:23 Christian Grothoff Note Added: 0005376
2012-01-26 00:23 Christian Grothoff Priority urgent => immediate
2012-01-26 00:23 Christian Grothoff Relationship added child of 0002064
2012-01-26 02:30 Bart Polot Note Added: 0005378
2012-01-26 10:53 Christian Grothoff Note Added: 0005380
2012-01-26 11:40 Bart Polot Note Added: 0005382
2012-01-26 11:52 Bart Polot Note Added: 0005383
2012-01-26 15:03 Bart Polot Note Added: 0005385
2012-01-26 15:03 Bart Polot Status assigned => resolved
2012-01-26 15:03 Bart Polot Fixed in Version => Git master
2012-01-26 15:03 Bart Polot Resolution open => fixed
2012-01-31 13:09 Christian Grothoff Fixed in Version Git master => 0.9.2
2012-02-28 11:05 Christian Grothoff Status resolved => closed
2014-05-09 18:34 Christian Grothoff Category mesh service => cadet service