[riot-notifications] [RIOT-OS/RIOT] nrfmin is broken when DEVELHELP is activated (#11162)

Alexandre Abadie notifications at github.com
Tue Mar 12 15:21:26 CET 2019

please submit it to the security mailing-list security at riot-os.org.

If your issue is a question related to the usage of RIOT, please submit it to
the user mailing-list users at riot-os.org or to the developer mailing-list
devel at riot-os.org.

#### Description
Example: Cannot build gnrc_networking application for samr21-xpro board.

While testing master (at f7cdbdaab0c6454afc522d7b084d1e314e09fcbd) on a micro:bit, I noticed that the `examples/default` was crashing: no shell available, no output.

After bisecting, it appears that 7d8f6abd45b23cc74e9f1ca5746853e9c7484f4a introduced the regression.

After looking at the diff of the culprit commit, it seems that some assertion checks with options with nrfmin are failing but I don't which, since this happens very early at boot (maybe before UART is initialized ?).

Disabling DEVELHELP in `examples/default` make the application usable again.

The problem also happens on a nrf51dk board (tested this on IoT-LAB).

#### Steps to reproduce the issue
Try to describe as precisely as possible here the steps required to reproduce
the issue. Here you can also describe your hardware configuration, the network
setup, etc.

- Build and flash `examples/default` for microbit or nrf51dk (or any other nrf51 based boards)
- Try to play with the shell

#### Expected results
Example: The gnrc_networking application builds on samr21-xpro.

Shell is working, messages can be exchanged via nrfmin

#### Actual results
Please paste or specifically describe the actual output.

A failed assertion occurs very early during, no shell available

#### Versions
Operating system: Mac OSX, Linux, Vagrant VM
Build environment: GCC, CLang versions (you can run the following command from
the RIOT base directory: ./dist/tools/ci/print_toolchain_versions.sh).

Operating System Environment
       Operating System: "Ubuntu" "18.10 (Cosmic Cuttlefish)"
                 Kernel: Linux 4.18.0-16-generic x86_64 x86_64

Installed compiler toolchains
             native gcc: gcc (Ubuntu 8.2.0-7ubuntu1) 8.2.0
      arm-none-eabi-gcc: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
                avr-gcc: avr-gcc (GCC) 5.4.0
       mips-mti-elf-gcc: mips-mti-elf-gcc (Codescape GNU Tools 2016.05-03 for MIPS MTI Bare Metal) 4.9.2
             msp430-gcc: msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
   riscv-none-embed-gcc: missing
   xtensa-esp32-elf-gcc: xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 5.2.0
   xtensa-lx106-elf-gcc: missing
                  clang: clang version 7.0.0-3 (tags/RELEASE_700/final)

Installed compiler libs
   arm-none-eabi-newlib: "3.0.0"
    mips-mti-elf-newlib: "2.1.0"
riscv-none-embed-newlib: missing
xtensa-esp32-elf-newlib: "2.2.0"
xtensa-lx106-elf-newlib: missing
               avr-libc: "2.0.0" ("20150208")

Installed development tools
                  cmake: cmake version 3.12.1
               cppcheck: Cppcheck 1.84
                doxygen: 1.8.13
                 flake8: 3.6.0 (mccabe: 0.6.1, pycodestyle: 2.4.0, pyflakes: 2.0.0) CPython 3.6.7 on Linux
                    git: git version 2.19.1
                   make: GNU Make 4.2.1
                openocd: Open On-Chip Debugger 0.10.0+dev-00629-g46325790 (2018-12-20-16:53)
                 python: Python 2.7.15+
                python2: Python 2.7.15+
                python3: Python 3.6.7
             coccinelle: spatch version 1.0.4 with Python support and with PCRE support

<!-- Thanks for contributing! -->

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190312/8cb83072/attachment-0001.html>

More information about the notifications mailing list