Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg: tests: RELIC unittests fail on iotlab-m3 #4512

Closed
miri64 opened this issue Dec 18, 2015 · 35 comments
Closed

pkg: tests: RELIC unittests fail on iotlab-m3 #4512

miri64 opened this issue Dec 18, 2015 · 35 comments
Assignees
Labels
Area: pkg Area: External package ports Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Comments

@miri64
Copy link
Member

miri64 commented Dec 18, 2015

Both when building in one bulk and singular as tests-relic.

@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: pkg Area: External package ports labels Dec 18, 2015
@miri64 miri64 added this to the Release 2015.12 milestone Dec 18, 2015
@miri64
Copy link
Member Author

miri64 commented Dec 18, 2015

(it crashes for samr21-xpro too)

@OlegHahm OlegHahm assigned tfar and unassigned OlegHahm Dec 18, 2015
@OlegHahm
Copy link
Member

On SAMR21-xpro:

2015-12-18 22:10:14,118 - INFO # main(): This is RIOT! (Version: 2016.03-devel-51-g16e11-fireflower)
2015-12-18 22:10:14,161 - INFO # ...............................................................................................................................................................................................................................
2015-12-18 22:10:14,171 - INFO # crypto_tripledes_tests.test_crypto_tripledes_encrypt (tests/unittests/tests-crypto/tests-crypto-3des.c 49) exp 1 was -1
2015-12-18 22:10:14,172 - INFO # .
2015-12-18 22:10:14,182 - INFO # crypto_tripledes_tests.test_crypto_tripledes_decrypt (tests/unittests/tests-crypto/tests-crypto-3des.c 71) exp 1 was -1
2015-12-18 22:10:14,182 - INFO # .
2015-12-18 22:10:14,193 - INFO # crypto_twofish_tests.test_crypto_twofish_encrypt (tests/unittests/tests-crypto/tests-crypto-twofish.c 53) exp 1 was -1
2015-12-18 22:10:14,193 - INFO # .
2015-12-18 22:10:14,203 - INFO # crypto_twofish_tests.test_crypto_twofish_decrypt (tests/unittests/tests-crypto/tests-crypto-twofish.c 75) exp 1 was -1

Looking into it with the debugger attached, it turns out that malloc is failing.

@miri64
Copy link
Member Author

miri64 commented Dec 18, 2015

Then what do I wrong, that it crashes for me?

@OlegHahm
Copy link
Member

That malloc fails is not surprising for the SAMR21. The test consumes already most of its memory for the stack and leaves little room for the heap.

@OlegHahm
Copy link
Member

It crashes here, too. After that.

@OlegHahm
Copy link
Member

I thought I already commented on that somewhere yesterday, but couldn't find it any more. Setting the stack size to something really big (I tried successfully with 16kB), the test is no more crashing on Cortex-M3. Maybe @tfar has an idea how to improve memory usage to something reasonable.

@miri64
Copy link
Member Author

miri64 commented Dec 19, 2015

You told me this on Jabber ;)

@OlegHahm
Copy link
Member

OlegHahm commented Feb 3, 2016

No, I commented here: #4511 (comment)

Edit:
s/No, /And /

@miri64 miri64 modified the milestones: Release 2016.07, Release 2015.12 Apr 20, 2016
@miri64
Copy link
Member Author

miri64 commented Apr 20, 2016

I don't see the relic tests anymore. Is this still an issue?

@OlegHahm
Copy link
Member

Became a unittest.

@miri64
Copy link
Member Author

miri64 commented Apr 20, 2016

But they are not included when building for e.g. samr21-xpro:

BOARD=samr21-xpro make -C tests/unittests/ flash term
make: Entering directory '/home/martine/Repositories/RIOT-OS/RIOT/tests/unittests'
Building application "unittests" for "samr21-xpro" with MCU "samd21".

touch /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/main.c
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/boards/samr21-xpro
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/core
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/cpu/samd21
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/cpu/cortexm_common
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/cpu/sam21_common
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/cpu/sam21_common/periph
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/cpu/samd21/periph
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/drivers
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/drivers/periph_common
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/drivers/saul
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/base64
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/bitfield
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/bloom
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/cbor
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/checksum
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/color
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/crypto
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/crypto/modes
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/ecc/hamming256
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/embunit
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/fmt
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/hashes
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/crosslayer/inet_csum
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/crosslayer/netopt
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/netapi
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/netif
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/netif/hdr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/netreg
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/icmpv6
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/ipv6
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/ipv6/hdr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/ipv6/nc
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/ipv6/netif
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/ndp
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/ndp/internal
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/ndp/node
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/sixlowpan
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/sixlowpan/ctx
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/sixlowpan/nd
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/network_layer/sixlowpan/netif
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/pkt
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/pktbuf_static
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/routing/rpl/srh
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/gnrc/transport_layer/udp
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/link_layer/ieee802154
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/network_layer/fib
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/network_layer/ipv4/addr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/network_layer/ipv6/addr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/network_layer/ipv6/ext
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/network_layer/ipv6/ext/rh
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/network_layer/ipv6/hdr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/network_layer/sixlowpan
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/net/transport_layer/udp
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/newlib
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/od
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/phydat
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/pipe
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/random
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/random/tinymt32
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/saul_reg
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/seq
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/timex
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/tsrb
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/uart_stdio
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/ubjson
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/universal_address
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/sys/xtimer
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-base64
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-bitfield
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-bloom
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-cbor
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-checksum
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-color
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-core
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-crypto
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-div
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-ecc
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-fib
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-fib_sr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-fmt
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-gnrc_ipv6_hdr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-gnrc_udp
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-hashes
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-ieee802154
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-inet_csum
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-ipv4_addr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-ipv6_addr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-ipv6_hdr
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-ipv6_nc
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-ipv6_netif
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-netif
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-netopt
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-netreg
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-pkt
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-pktbuf
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-pktqueue
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-rpl_srh
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-saul_reg
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-seq
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-sixlowpan
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-sixlowpan_ctx
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-timex
"make" -C /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/tests-ubjson
   text    data     bss     dec     hex filename
 236416    1592   22480  260488   3f988 /home/martine/Repositories/RIOT-OS/RIOT/tests/unittests/bin/samr21-xpro/unittests.elf

@miri64
Copy link
Member Author

miri64 commented Apr 20, 2016

Ah, because of #4514 m)

@miri64
Copy link
Member Author

miri64 commented Apr 20, 2016

(still an issue)

@kYc0o
Copy link
Contributor

kYc0o commented Jul 11, 2016

still an issue?

@kYc0o
Copy link
Contributor

kYc0o commented Jul 26, 2016

Ok well, let's move it for the next release.

@kYc0o kYc0o modified the milestones: Release 2016.10, Release 2016.07 Jul 26, 2016
miri64 added a commit that referenced this issue Nov 11, 2016
RIOT-2016.10 - Release Notes
============================
RIOT is a real-time multi-threading operating system that supports a range of
devices that are typically found in the Internet of Things: 8-bit
microcontrollers, 16-bit microcontrollers and light-weight 32-bit processors.

RIOT is based on the following design principles: energy-efficiency, real-time
capabilities, small memory footprint, modularity, and uniform API access,
independent of the underlying hardware (this API offers partial POSIX
compliance).

RIOT is developed by an international open source community which is
independent of specific vendors (e.g. similarly to the Linux community) and is
licensed with a non-viral copyleft license (LGPLv2.1), which allows indirect
business models around the free open-source software platform provided by
RIOT.

About this release:
===================
This release provides a lot of new features as well as it  fixes several major
bugs. Among these new features are the new simplified network socket API
called sock, the GNRC specific CoAP implementation gcoap and several new
packages: TinyDTLS, the Aversive++ microcontroller library for robotics, the
u8g2 graphic library, and nanocoap.
Using the new sock API an implementation of the Simple Time Network Protocol
(SNTP) was also introduced, allowing for time synchronization between nodes.
New platforms include the Arduino Uno, the Arduino Duemilanove, the Arduino
Zero, SODAQ Autonomo, and the Zolertia remote (rev. B).
The most significant bug fix was done in native which led to a significantly
more robust handling of ISRs and now allows for at least 1,000 native
instances running stably on one machine.

About 263 pull requests with about 398 commits have been merged since the last
release and about 42 issues have been solved. 37 people contributed with code
in 100 days. 1006 files have been touched with 166500 insertions and 26926
deletions.

Notations used below:
=====================
+ means new feature/item
* means modified feature/item
- means removed feature/item

New features and changes
========================
General
-------
* Verbose behavior for assert() macro

Core
----
+ MPU support for Cortex-M

API changes
-----------
+ Socket-like sock API (replacing conn)
* netdev2: Add Testmodes and CCA modes
* IEEE 802.15.4: clean-up Intra-PAN behavior
* IEEE 802.15.4: centralize default values
* gnrc_pktbuf: allow for 0-sized snips
+ gnrc_netapi: mbox and arbitrary callback support

System libraries
----------------
No new features or changes

Networking
----------
+ Provide sock-port for GNRC
+ gcoap: a GNRC-based CoAP implementation
+ Simple Network Time Protocol (RFC 5905, section 14)
+ Priority Queue for packet snips
+ IPv4 header definitions

Packages
--------
+ nanocoap: CoAP header parser/builder
+ TinyDTLS: DTLS library
+ tiny-asn1: asn.1/der decoder
+ Aversive++ microcontroller programming library
+ u8g2 graphic library

Platforms
---------
+ Support for stm32f2xx MCU family
+ Low power modes for samd21 CPUs
+ More Arduino-based platforms:
    + Arduino Uno
    + Arduino Duemilanove
    + Arduino Zero
+ More boards of ST's Nucleo platforms:
    + ST Nucleo F030 board support
    + ST Nucleo F070 board support
    + ST Nucleo F446 board support
+ SODAQ Automono
+ Zolertia remote rev. B

Drivers
-------
+ W5100 Ethernet device
+ Atmel IO1 Xplained extension
+ LPD8808 LED strips
* at86rf2xx: provide capability to access the RND_VALUE random value register

Build System
------------
+ static-tests build target for easy local execution of CI's static tests

Other
-----
+ Provide Arduino API to Nucleo boards
+ Packer configuration file to build vagrant boxes
+ CC2650STK Debugger Support
+ ethos: add Ethos over TCP support

Fixed Issues from the last release
==================================
 #534:  native debugging on osx fails
 #2071: native: *long* overdue fixes
 #3341: netdev2_tap crashes when hammered
 #5007: gnrc icmpv6: Ping reply goes out the wrong interface
 #5432: native: valgrind fails

Known Issues
============
Networking related issues
-------------------------
 #3075: nhdp: unnecessary microsecond precision: NHDP works with timer values
       of microsecond precision which is not required. Changing to lower
       precision would save some memory.
 #4048: potential racey memory leak: According to the packet buffer stats,
       flood-pinging a multicast destination may lead to a memory leak due to
       a race condition. However, it seems to be a rare case and a completely
       filled up packet buffer was not observed.
 #4388: POSIX sockets: open socket is bound to a specific thread: This was an
       inherit problem of the conn API under GNRC. Since the POSIX sockets are
       still based on conn for this release, this issue persists
 #4527: gnrc_ipv6: Multicast is not forwarded if routing node listens to the
       address (might still be fixable for release, see #5729, #5230: gnrc
       ipv6: multicast packets are not dispatched to the upper layers)
 #5016: gnrc_rpl: Rejoining RPL instance as root after reboot messes up routing
 #5055: cpuid: multiple radios will get same EUI-64 Nodes with multiple
       interfaces might get the same EUI-64 for them since they are generated
       from the same CPU ID.
 #5656: Possible Weakness with locking in the GNRC network stack: For some
       operations mutexes to the network interfaces need to get unlocked in
       the current implementation to not get deadlocked. Recursive mutexes as
       provided in #5731 might help to solve this problem.
 #5748: gnrc: nodes crashing with too small packet buffer: A packet buffer of
       size ~512 B might lead to crashes. The issue describes this for several
       hundret nodes, but agressive flooding with just two nodes was also
       shown to lead to this problem.
 #5858: gnrc: 6lo: potential problem with reassembly of fragments: If one frame
       gets lost the reassembly state machine might get out of sync

 ### NDP is not working properly
 #4499: handle of l2src_len in gnrc_ndp_rtr_sol_handle: Reception of a router
       solicitation might lead to invalid zero-length link-layer addresses in
       neighbor cache.
 #5005: ndp: router advertisement sent with global address: Under some
       circumstances a router might send RAs with GUAs. While they are ignored
       on receive (as RFC 4861 specifies), RAs should have link-local
       addresses and not even be send out this way.
 #5122: NDP: global unicast address on non-6LBR nodes disappears after a while:
       Several issues (also see #5760) lead to a global unicast address
       effectively being banned from the network (disappears from neighbor
       cache, is not added again)
 #5467: ipv6 address vanishes when ARO (wrongly) indicates DUP caused by
       outdated ncache at router
 #5539: Border Router: packet not forwarded from ethos to interface 6
 #5790: ND: Lost of Global IPV6 on node after sending lot of UDP frame from BR

Timer related issues
--------------------
 #4841: xtimer: timer already in the list: Under some conditions an xtimer can
       end up twice in the internal list of the xtimer module
 #4902: xtimer: xtimer_set: xtimer_set does not handle integer overflows well
 #5338: xtimer: xtimer_now() not ISR safe for non-32-bit platforms.
 #5928: xtimer: usage in board_init() crashes: some boards use the xtimer in
       there board_init() function. The xtimer is however first initialized in
       the auto_init module which is executed after board_init()
 #6052: tests: xtimer_drift gets stuck: xtimer_drift application freezes after
       ~30-200 seconds

native related issues
---------------------
 #495:  native not float safe: When the FPU is used when an asynchronous context
       switch occurs, either the stack gets corrupted or a floating point
       exception occurs.
 #2175: ubjson: valgind registers "Invalid write of size 4" in unittests
 #4590: pkg: building relic with clang fails.
 #5796: native: tlsf: early malloc will lead to a crash: TLSF needs pools to be
       initialized (which is currently expected to be done in an application).
       If a malloc is needed before an application's main started (e.g. driver
       initialization) the node can crash, since no pool is allocated yet.

other platform related issues
-----------------------------
 #1891: newlib-nano: Printf formatting does not work properly for some numberic
       types: PRI[uxdi]64, PRI[uxdi]8 and float are not parsed in newlib-nano
 #2006: cpu/nrf51822: timer callback may be fired too early
 #2143: unittests: tests-core doesn't compile for all platforms: GCC build-ins
       were used in the unittests which are not available with msp430-gcc
 #2300: qemu unittest fails because of a page fault
 #4512: pkg: tests: RELIC unittests fail on iotlab-m3
 #4522: avsextrem: linker sometimes doesn't find `bl_init_clks()`
 #4560: make: clang is more pedantic than gcc oonf_api is not building with
       clang. (Partly solved by #4593)
 #4694: drivers/lm75a: does not build
 #4737: cortex-m: Hard fault after a thread exits (under some circumstances)
 #4822: kw2xrf: packet loss when packets get fragmented
 #4876: at86rf2xx: Simultaneous use of different transceiver types is not
       supported
 #4954: chronos: compiling with -O0 breaks
 #4866: not all GPIO driver implementations are thread safe: Due to non-atomic
       operations in the drivers some pin configurations might get lost.
 #5009: RIOT is saw-toothing in energy consumption (even when idling)
 #5103: xtimer: weird behavior of tests/xtimer_drift: xtimer_drift randomly
       jumps a few seconds on nrf52
 #5361: cpu/cc26x0: timer broken
 #5405: Eratic timings on iotlab-m3 with compression context activated
 #5460: cpu/samd21: i2c timing with compiler optimization
 #5486: at86rf2xx: lost interrupts
 #5489: cpu/lpc11u34: ADC broken
 #5603: atmega boards second UART issue
 #5678: at86rf2xx: failed assertion in _isr
 #5719: cc2538: rf driver doesn't handle large packets
 #5799: kw2x: 15.4 duplicate transmits
 #5944: msp430: ipv6_hdr unittests fail
 #5848: arduino: Race condition in sys/arduino/Makefile.include
 #5954: nRF52 uart_write get stuck
 #6018: nRF52 gnrc 6lowpan ble memory leak

other issues
------------
 #1263: TLSF implementation contains (a) read-before-write error(s).
 #3256: make: Setting constants on compile time doesn't really set them
       everywhere
 #3366: periph/i2c: handle NACK
 #4488: Making the newlib thread-safe: When calling puts/printf after
       thread_create(), the CPU hangs for DMA enabled uart drivers.
 #4866: periph: GPIO drivers are not thread safe
 #5128: make: buildtest breaks when exporting FEATURES_PROVIDED var
 #5207: make: buildest fails with board dependent application Makefiles
 #5390: pkg: OpenWSN does not compile: This package still uses deprecated
       modules and was not tested for a long time.
 #5520: tests/periph_uart not working
 #5561: C++11 extensions in header files
 #5776: make: Predefining CFLAGS are parsed weirdly
 #5863: OSX +  SAMR21-xpro: shell cannot handle command inputs larger than 64
       chars
 #5962: Makefile: UNDEF variable is not working as documented
 #6022: pkg: build order issue

Special Thanks
==============
We like to give our special thanks to all the companies that provided us with
their hardware for porting and testing, namely the people from (in
alphabeticalorder): Atmel, Freescale, Imagination Technologies, Limifrog,
Nordic, OpenMote, Phytec, SiLabs, UDOO,and Zolertia; and also companies that
directly sponsored development time: Cisco Systems, Eistec, Ell-i, Enigeering
Spirit, Nordic, FreshTemp LLC, OTAkeys and Phytec.

More information
================
http://www.riot-os.org

Mailing lists
-------------
* RIOT OS kernel developers list
  [email protected] (http://lists.riot-os.org/mailman/listinfo/devel)
* RIOT OS users list
  [email protected] (http://lists.riot-os.org/mailman/listinfo/users)
* RIOT commits
  [email protected] (http://lists.riot-os.org/mailman/listinfo/commits)
* Github notifications
  [email protected] (http://lists.riot-os.org/mailman/listinfo/notifications)

IRC
---
* Join the RIOT IRC channel at: irc.freenode.net, #riot-os

License
=======
* Most of the code developed by the RIOT community is licensed under the GNU
  Lesser General Public License (LGPL) version 2.1 as published by the Free
  Software Foundation.
* Some external sources are published under a separate, LGPL compatible
  license (e.g. some files developed by SICS).

All code files contain licensing information.
miri64 added a commit that referenced this issue Nov 11, 2016
RIOT-2016.10 - Release Notes
============================
RIOT is a real-time multi-threading operating system that supports a range of
devices that are typically found in the Internet of Things: 8-bit
microcontrollers, 16-bit microcontrollers and light-weight 32-bit processors.

RIOT is based on the following design principles: energy-efficiency, real-time
capabilities, small memory footprint, modularity, and uniform API access,
independent of the underlying hardware (this API offers partial POSIX
compliance).

RIOT is developed by an international open source community which is
independent of specific vendors (e.g. similarly to the Linux community) and is
licensed with a non-viral copyleft license (LGPLv2.1), which allows indirect
business models around the free open-source software platform provided by
RIOT.

About this release:
===================
This release provides a lot of new features as well as it  fixes several major
bugs. Among these new features are the new simplified network socket API
called sock, the GNRC specific CoAP implementation gcoap and several new
packages: TinyDTLS, the Aversive++ microcontroller library for robotics, the
u8g2 graphic library, and nanocoap.
Using the new sock API an implementation of the Simple Time Network Protocol
(SNTP) was also introduced, allowing for time synchronization between nodes.
New platforms include the Arduino Uno, the Arduino Duemilanove, the Arduino
Zero, SODAQ Autonomo, and the Zolertia remote (rev. B).
The most significant bug fix was done in native which led to a significantly
more robust handling of ISRs and now allows for at least 1,000 native
instances running stably on one machine.

About 263 pull requests with about 398 commits have been merged since the last
release and about 42 issues have been solved. 37 people contributed with code
in 100 days. 1006 files have been touched with 166500 insertions and 26926
deletions.

Notations used below:
=====================
+ means new feature/item
* means modified feature/item
- means removed feature/item

New features and changes
========================
General
-------
* Verbose behavior for assert() macro

Core
----
+ MPU support for Cortex-M

API changes
-----------
+ Socket-like sock API (replacing conn)
* netdev2: Add Testmodes and CCA modes
* IEEE 802.15.4: clean-up Intra-PAN behavior
* IEEE 802.15.4: centralize default values
* gnrc_pktbuf: allow for 0-sized snips
+ gnrc_netapi: mbox and arbitrary callback support

System libraries
----------------
No new features or changes

Networking
----------
+ Provide sock-port for GNRC
+ gcoap: a GNRC-based CoAP implementation
+ Simple Network Time Protocol (RFC 5905, section 14)
+ Priority Queue for packet snips
+ IPv4 header definitions

Packages
--------
+ nanocoap: CoAP header parser/builder
+ TinyDTLS: DTLS library
+ tiny-asn1: asn.1/der decoder
+ Aversive++ microcontroller programming library
+ u8g2 graphic library

Platforms
---------
+ Support for stm32f2xx MCU family
+ Low power modes for samd21 CPUs
+ More Arduino-based platforms:
    + Arduino Uno
    + Arduino Duemilanove
    + Arduino Zero
+ More boards of ST's Nucleo platforms:
    + ST Nucleo F030 board support
    + ST Nucleo F070 board support
    + ST Nucleo F446 board support
+ SODAQ Automono
+ Zolertia remote rev. B

Drivers
-------
+ W5100 Ethernet device
+ Atmel IO1 Xplained extension
+ LPD8808 LED strips
* at86rf2xx: provide capability to access the RND_VALUE random value register

Build System
------------
+ static-tests build target for easy local execution of CI's static tests

Other
-----
+ Provide Arduino API to Nucleo boards
+ Packer configuration file to build vagrant boxes
+ CC2650STK Debugger Support
+ ethos: add Ethos over TCP support

Fixed Issues from the last release
==================================
 #534:  native debugging on osx fails
 #2071: native: *long* overdue fixes
 #3341: netdev2_tap crashes when hammered
 #5007: gnrc icmpv6: Ping reply goes out the wrong interface
 #5432: native: valgrind fails

Known Issues
============
Networking related issues
-------------------------
 #3075: nhdp: unnecessary microsecond precision: NHDP works with timer values
       of microsecond precision which is not required. Changing to lower
       precision would save some memory.
 #4048: potential racey memory leak: According to the packet buffer stats,
       flood-pinging a multicast destination may lead to a memory leak due to
       a race condition. However, it seems to be a rare case and a completely
       filled up packet buffer was not observed.
 #4388: POSIX sockets: open socket is bound to a specific thread: This was an
       inherit problem of the conn API under GNRC. Since the POSIX sockets are
       still based on conn for this release, this issue persists
 #4527: gnrc_ipv6: Multicast is not forwarded if routing node listens to the
       address (might still be fixable for release, see #5729, #5230: gnrc
       ipv6: multicast packets are not dispatched to the upper layers)
 #5016: gnrc_rpl: Rejoining RPL instance as root after reboot messes up routing
 #5055: cpuid: multiple radios will get same EUI-64 Nodes with multiple
       interfaces might get the same EUI-64 for them since they are generated
       from the same CPU ID.
 #5656: Possible Weakness with locking in the GNRC network stack: For some
       operations mutexes to the network interfaces need to get unlocked in
       the current implementation to not get deadlocked. Recursive mutexes as
       provided in #5731 might help to solve this problem.
 #5748: gnrc: nodes crashing with too small packet buffer: A packet buffer of
       size ~512 B might lead to crashes. The issue describes this for several
       hundret nodes, but agressive flooding with just two nodes was also
       shown to lead to this problem.
 #5858: gnrc: 6lo: potential problem with reassembly of fragments: If one frame
       gets lost the reassembly state machine might get out of sync

 ### NDP is not working properly
 #4499: handle of l2src_len in gnrc_ndp_rtr_sol_handle: Reception of a router
       solicitation might lead to invalid zero-length link-layer addresses in
       neighbor cache.
 #5005: ndp: router advertisement sent with global address: Under some
       circumstances a router might send RAs with GUAs. While they are ignored
       on receive (as RFC 4861 specifies), RAs should have link-local
       addresses and not even be send out this way.
 #5122: NDP: global unicast address on non-6LBR nodes disappears after a while:
       Several issues (also see #5760) lead to a global unicast address
       effectively being banned from the network (disappears from neighbor
       cache, is not added again)
 #5467: ipv6 address vanishes when ARO (wrongly) indicates DUP caused by
       outdated ncache at router
 #5539: Border Router: packet not forwarded from ethos to interface 6
 #5790: ND: Lost of Global IPV6 on node after sending lot of UDP frame from BR

Timer related issues
--------------------
 #4841: xtimer: timer already in the list: Under some conditions an xtimer can
       end up twice in the internal list of the xtimer module
 #4902: xtimer: xtimer_set: xtimer_set does not handle integer overflows well
 #5338: xtimer: xtimer_now() not ISR safe for non-32-bit platforms.
 #5928: xtimer: usage in board_init() crashes: some boards use the xtimer in
       there board_init() function. The xtimer is however first initialized in
       the auto_init module which is executed after board_init()
 #6052: tests: xtimer_drift gets stuck: xtimer_drift application freezes after
       ~30-200 seconds

native related issues
---------------------
 #495:  native not float safe: When the FPU is used when an asynchronous context
       switch occurs, either the stack gets corrupted or a floating point
       exception occurs.
 #2175: ubjson: valgind registers "Invalid write of size 4" in unittests
 #4590: pkg: building relic with clang fails.
 #5796: native: tlsf: early malloc will lead to a crash: TLSF needs pools to be
       initialized (which is currently expected to be done in an application).
       If a malloc is needed before an application's main started (e.g. driver
       initialization) the node can crash, since no pool is allocated yet.

other platform related issues
-----------------------------
 #1891: newlib-nano: Printf formatting does not work properly for some numberic
       types: PRI[uxdi]64, PRI[uxdi]8 and float are not parsed in newlib-nano
 #2006: cpu/nrf51822: timer callback may be fired too early
 #2143: unittests: tests-core doesn't compile for all platforms: GCC build-ins
       were used in the unittests which are not available with msp430-gcc
 #2300: qemu unittest fails because of a page fault
 #4512: pkg: tests: RELIC unittests fail on iotlab-m3
 #4522: avsextrem: linker sometimes doesn't find `bl_init_clks()`
 #4560: make: clang is more pedantic than gcc oonf_api is not building with
       clang. (Partly solved by #4593)
 #4694: drivers/lm75a: does not build
 #4737: cortex-m: Hard fault after a thread exits (under some circumstances)
 #4822: kw2xrf: packet loss when packets get fragmented
 #4876: at86rf2xx: Simultaneous use of different transceiver types is not
       supported
 #4954: chronos: compiling with -O0 breaks
 #4866: not all GPIO driver implementations are thread safe: Due to non-atomic
       operations in the drivers some pin configurations might get lost.
 #5009: RIOT is saw-toothing in energy consumption (even when idling)
 #5103: xtimer: weird behavior of tests/xtimer_drift: xtimer_drift randomly
       jumps a few seconds on nrf52
 #5361: cpu/cc26x0: timer broken
 #5405: Eratic timings on iotlab-m3 with compression context activated
 #5460: cpu/samd21: i2c timing with compiler optimization
 #5486: at86rf2xx: lost interrupts
 #5489: cpu/lpc11u34: ADC broken
 #5603: atmega boards second UART issue
 #5678: at86rf2xx: failed assertion in _isr
 #5719: cc2538: rf driver doesn't handle large packets
 #5799: kw2x: 15.4 duplicate transmits
 #5944: msp430: ipv6_hdr unittests fail
 #5848: arduino: Race condition in sys/arduino/Makefile.include
 #5954: nRF52 uart_write get stuck
 #6018: nRF52 gnrc 6lowpan ble memory leak

other issues
------------
 #1263: TLSF implementation contains (a) read-before-write error(s).
 #3256: make: Setting constants on compile time doesn't really set them
       everywhere
 #3366: periph/i2c: handle NACK
 #4488: Making the newlib thread-safe: When calling puts/printf after
       thread_create(), the CPU hangs for DMA enabled uart drivers.
 #4866: periph: GPIO drivers are not thread safe
 #5128: make: buildtest breaks when exporting FEATURES_PROVIDED var
 #5207: make: buildest fails with board dependent application Makefiles
 #5390: pkg: OpenWSN does not compile: This package still uses deprecated
       modules and was not tested for a long time.
 #5520: tests/periph_uart not working
 #5561: C++11 extensions in header files
 #5776: make: Predefining CFLAGS are parsed weirdly
 #5863: OSX +  SAMR21-xpro: shell cannot handle command inputs larger than 64
       chars
 #5962: Makefile: UNDEF variable is not working as documented
 #6022: pkg: build order issue

Special Thanks
==============
We like to give our special thanks to all the companies that provided us with
their hardware for porting and testing, namely the people from (in
alphabeticalorder): Atmel, Freescale, Imagination Technologies, Limifrog,
Nordic, OpenMote, Phytec, SiLabs, UDOO,and Zolertia; and also companies that
directly sponsored development time: Cisco Systems, Eistec, Ell-i, Enigeering
Spirit, Nordic, FreshTemp LLC, OTAkeys and Phytec.

More information
================
http://www.riot-os.org

Mailing lists
-------------
* RIOT OS kernel developers list
  [email protected] (http://lists.riot-os.org/mailman/listinfo/devel)
* RIOT OS users list
  [email protected] (http://lists.riot-os.org/mailman/listinfo/users)
* RIOT commits
  [email protected] (http://lists.riot-os.org/mailman/listinfo/commits)
* Github notifications
  [email protected] (http://lists.riot-os.org/mailman/listinfo/notifications)

IRC
---
* Join the RIOT IRC channel at: irc.freenode.net, #riot-os

License
=======
* Most of the code developed by the RIOT community is licensed under the GNU
  Lesser General Public License (LGPL) version 2.1 as published by the Free
  Software Foundation.
* Some external sources are published under a separate, LGPL compatible
  license (e.g. some files developed by SICS).

All code files contain licensing information.
@miri64 miri64 removed this from the Release 2016.10 milestone Nov 11, 2016
@aabadie aabadie modified the milestone: Release 2017.10 Jul 14, 2017
@kYc0o
Copy link
Contributor

kYc0o commented Oct 20, 2017

Well for me it just complains at build time:

/Users/facosta/git/RIOT-OS/RIOT/sys/cbor/cbor.c: In function 'cbor_deserialize_date_time':
/Users/facosta/git/RIOT-OS/RIOT/sys/cbor/cbor.c:769:9: error: implicit declaration of function 'strptime' [-Werror=implicit-function-declaration]
     if (strptime(buffer, format, val) == 0) {
         ^~~~~~~~
cc1: all warnings being treated as errors

@kYc0o
Copy link
Contributor

kYc0o commented Oct 24, 2017

With #7783 and #7785 it now compiles for me, however it keeps rebooting when I force this test on any ARM platform.

I suggest to change the name of this issue and also state explicitly that the unittest for relic in ARM are disabled by default.

@smlng
Copy link
Member

smlng commented Jan 30, 2018

tests-relic is blacklisted for ARM cortex M platforms see https://github.com/RIOT-OS/RIOT/blob/master/tests/unittests/Makefile#L167

@smlng
Copy link
Member

smlng commented Jan 30, 2018

so close this?

@miri64
Copy link
Member Author

miri64 commented Jan 30, 2018

I think blacklisting a test doesn't fix it.

@kYc0o
Copy link
Contributor

kYc0o commented Jul 17, 2018

But who's willing to fix it? I'd say we close as memo and we have it in the release notes as a known issue.

@miri64
Copy link
Member Author

miri64 commented Jul 17, 2018

If it is a known issue for the release then this issue shouldn't be closed..

@kYc0o
Copy link
Contributor

kYc0o commented Jul 17, 2018

Ok, I just wanted to find a way to pile more efficiently very old issues, but yeah, I agree closing is not a good way to do it. I thought about a special milestone (like FIXME First which existed some time ago) which might help.

@miri64
Copy link
Member Author

miri64 commented Jul 17, 2018

Maybe a project instead so they can get some kind of staging?

@tcschmidt
Copy link
Member

@tfar any proposal for resolving the issue?

@tfar
Copy link
Contributor

tfar commented Jul 18, 2018

In general RELIC works on ARM, if you have enough RAM and flash memory. So maybe it makes more sense to whitelist boards with enough memory or something like that.

@stale
Copy link

stale bot commented Aug 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

@stale stale bot added the State: stale State: The issue / PR has no activity for >185 days label Aug 10, 2019
@stale stale bot closed this as completed Sep 10, 2019
@aabadie aabadie reopened this Sep 21, 2019
@stale stale bot removed the State: stale State: The issue / PR has no activity for >185 days label Sep 21, 2019
@aabadie
Copy link
Contributor

aabadie commented Sep 29, 2019

This one was probably fixed by #10189. I just tested tests/pkg_relic on iotlab-m3 and samr21-xpro and both are working.

@miri64
Copy link
Member Author

miri64 commented Sep 29, 2019

Yepp, we should still remove all the hacks that were added to the unittests because of that.

@aabadie
Copy link
Contributor

aabadie commented Oct 16, 2019

Can we consider #12456 and/or #12455 fixed the hacks added to the unittests and close this issue ?

@miri64
Copy link
Member Author

miri64 commented Oct 16, 2019

The linked PRs don't seem related.... So I'm not sure what you are asking.

@miri64
Copy link
Member Author

miri64 commented Oct 16, 2019

However:

Yepp, we should still remove all the hacks that were added to the unittests because of that.

This happened in 1e0ca7c (#12040), so we can close this issue indeed.

@miri64 miri64 closed this as completed Oct 16, 2019
@miri64
Copy link
Member Author

miri64 commented Oct 16, 2019

It was even part of the release, so I add the milestone, so it can be marked in the release notes as resolved. Are you ok with that @kb2ma?

@miri64 miri64 added this to the Release 2019.10 milestone Oct 16, 2019
@aabadie
Copy link
Contributor

aabadie commented Oct 16, 2019

Thanks @miri64. Normally the dump-issues sub command of the release manager script will handle this automatically: it doesn't use the milestone but the last update date to track the closed bugs (known issues) since the last release.

@kb2ma
Copy link
Member

kb2ma commented Oct 16, 2019

Sure @miri64, since #12040 is part of 2019.10, then it's fine to mark this issue as resolved with that same release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: pkg Area: External package ports Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

No branches or pull requests

9 participants