-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Unable to send packets with UDP sock #8457
Copy link
Copy link
Closed
Labels
Area: networkArea: NetworkingArea: NetworkingType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
Hi people,
Description
I was working with a simple sock UDP client/server code when I noticed I lost the ability to send UDP messages. Though, the gcoap example is working fine.
As I was unable to determine the source of my problem, I run test/gnrc_sock_udp in the current master and got errors. Can anyone else confirm this behavior?
Steps to reproduce the issue
tests/gnrc_sock_udp$ BOARD=native make all test
Expected results
Execution of the test with the release 2017.10:
./tests/01-run.py
/home/rfuentess/Projects/RIOT/tests/gnrc_sock_udp/bin/native/tests_gnrc_sock_udp.elf
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2017.10-bigboss-HEAD)
Calling test_sock_udp_create__EADDRINUSE()
Calling test_sock_udp_create__EAFNOSUPPORT()
Calling test_sock_udp_create__EINVAL_addr()
Calling test_sock_udp_create__EINVAL_netif()
Calling test_sock_udp_create__no_endpoints()
Calling test_sock_udp_create__only_local()
Calling test_sock_udp_create__only_local_reuse_ep()
Calling test_sock_udp_create__only_remote()
Calling test_sock_udp_create__full()
Calling test_sock_udp_recv__EADDRNOTAVAIL()
Calling test_sock_udp_recv__EAGAIN()
Calling test_sock_udp_recv__ENOBUFS()
Calling test_sock_udp_recv__EPROTO()
Calling test_sock_udp_recv__ETIMEDOUT()
* Calling sock_udp_recv()
* (timed out with timeout 1000000)
Calling test_sock_udp_recv__socketed()
Calling test_sock_udp_recv__socketed_with_remote()
Calling test_sock_udp_recv__unsocketed()
Calling test_sock_udp_recv__unsocketed_with_remote()
Calling test_sock_udp_recv__with_timeout()
Calling test_sock_udp_recv__non_blocking()
Calling test_sock_udp_send__EAFNOSUPPORT()
Calling test_sock_udp_send__EINVAL_addr()
Calling test_sock_udp_send__EINVAL_netif()
Calling test_sock_udp_send__EINVAL_port()
Calling test_sock_udp_send__ENOTCONN()
Calling test_sock_udp_send__socketed_no_local_no_netif()
Calling test_sock_udp_send__socketed_no_netif()
Calling test_sock_udp_send__socketed_no_local()
Calling test_sock_udp_send__socketed()
Calling test_sock_udp_send__socketed_other_remote()
Calling test_sock_udp_send__unsocketed_no_local_no_netif()
Calling test_sock_udp_send__unsocketed_no_netif()
Calling test_sock_udp_send__unsocketed_no_local()
Calling test_sock_udp_send__unsocketed()
Calling test_sock_udp_send__no_sock_no_netif()
Calling test_sock_udp_send__no_sock()
ALL TESTS SUCCESSFUL
Actual results
Execution of the test with current master (2018.04-devel-46-g8ab83):
./tests/01-run.py
/home/rfuentess/Projects/RIOT/tests/gnrc_sock_udp/bin/native/tests_gnrc_sock_udp.elf
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2018.04-devel-46-g8ab83-bigboss)
Calling test_sock_udp_create__EADDRINUSE()
Calling test_sock_udp_create__EAFNOSUPPORT()
Calling test_sock_udp_create__EINVAL_addr()
Calling test_sock_udp_create__EINVAL_netif()
Calling test_sock_udp_create__no_endpoints()
Calling test_sock_udp_create__only_local()
Calling test_sock_udp_create__only_local_reuse_ep()
Calling test_sock_udp_create__only_remote()
Calling test_sock_udp_create__full()
Calling test_sock_udp_recv__EADDRNOTAVAIL()
Calling test_sock_udp_recv__EAGAIN()
Calling test_sock_udp_recv__ENOBUFS()
Calling test_sock_udp_recv__EPROTO()
Calling test_sock_udp_recv__ETIMEDOUT()
* Calling sock_udp_recv()
* (timed out with timeout 1000000)
Calling test_sock_udp_recv__socketed()
Calling test_sock_udp_recv__socketed_with_remote()
Calling test_sock_udp_recv__unsocketed()
Calling test_sock_udp_recv__unsocketed_with_remote()
Calling test_sock_udp_recv__with_timeout()
Calling test_sock_udp_recv__non_blocking()
Calling test_sock_udp_send__EAFNOSUPPORT()
Calling test_sock_udp_send__EINVAL_addr()
Calling test_sock_udp_send__EINVAL_netif()
Calling test_sock_udp_send__EINVAL_port()
Calling test_sock_udp_send__ENOTCONN()
Calling test_sock_udp_send__socketed_no_local_no_netif()
tests/gnrc_sock_udp/main.c:454 => 0x804ca20
*** RIOT kernel panic:
FAILED ASSERTION.
pid | name | state Q | pri | stack ( used) | base addr | current
- | isr_stack | - - | - | 8192 ( -1) | 0x806b800 | 0x806b800
1 | idle | pending Q | 15 | 8192 ( 568) | 0x8069600 | 0x806b474
2 | main | running Q | 7 | 12288 ( 2756) | 0x8066600 | 0x8069474
3 | ipv6 | bl rx _ | 4 | 8192 ( 1184) | 0x8074800 | 0x8076674
4 | udp | bl rx _ | 5 | 8192 ( 1248) | 0x80727c0 | 0x8074634
| SUM | | | 45056 ( 5756)
*** halted.
Versions
~/RIOT$ ./dist/tools/ci/print_toolchain_versions.sh
Installed toolchain versions
----------------------------
native gcc: gcc (Debian 4.9.2-10) 4.9.2
msp430-gcc: msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
avr-gcc: avr-gcc (GCC) 4.8.1
arm-none-eabi-gcc: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
mips-mti-elf-gcc: missing/error
./dist/tools/ci/print_toolchain_versions.sh: 81: ./dist/tools/ci/print_toolchain_versions.sh: clang: not found
arm-none-eabi-newlib: "2.5.0"
mips-mti-elf-newlib: missing/error
avr-libc: "1.8.0svn" ("20111229")
cppcheck: Cppcheck 1.67
coccinelle: spatch version 1.0.0-rc22 with Python support and with PCRE support
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: networkArea: NetworkingArea: NetworkingType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)