[BUG] Unable to run unittests: catch_assert(configASSERT(0)) = SIGABRT

Aperta
#1,339 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@alter-mage ci sta già lavorando.

Dal 25/11/2026.

  • #1348 di @anordal — aperta
  • #1394 di @alter-mage — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c

Direzione di ricerca

Start with the build and run steps in test/unit-test/README.md, then look at the catch_assert(configASSERT(0)) helper that the minimal repro uses, and at test_xCheckRequiresARPResolution_AssertInvalidFrameType in FreeRTOS_ARP_utest. Check linked pull request #1348 first, since work is already open against this issue. Done means the affected unit test binaries stop aborting with SIGABRT when the suite is run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

I used to be able to run the unittests, but now, a lot of them are dying of SIGABRT:

The following tests FAILED:
	  1 - FreeRTOS_ARP_utest (Subprocess aborted)
	  4 - FreeRTOS_DHCP_utest (Subprocess aborted)
	  5 - FreeRTOS_DHCPv6_utest (Subprocess aborted)
	  6 - FreeRTOS_TCP_WIN_utest (Subprocess aborted)
	  8 - FreeRTOS_DNS_utest (Subprocess aborted)
	 13 - FreeRTOS_DNS_Parser_utest (Subprocess aborted)
	 14 - FreeRTOS_IP_utest (Subprocess aborted)
	 21 - FreeRTOS_IP_Utils_utest (Subprocess aborted)
	 24 - FreeRTOS_IPv6_Utils_utest (Subprocess aborted)
	 30 - FreeRTOS_ND_utest (Subprocess aborted)
	 31 - FreeRTOS_Sockets_GenericAPI_utest (Subprocess aborted)
	 33 - FreeRTOS_Sockets_UDP_API_utest (Subprocess aborted)
	 34 - FreeRTOS_Sockets_privates_utest (Subprocess aborted)
	 39 - FreeRTOS_Sockets_DiffConfig1_privates_utest (Subprocess aborted)
	 41 - FreeRTOS_RA_utest (Subprocess aborted)
	 42 - FreeRTOS_UDP_IP_utest (Subprocess aborted)
	 43 - FreeRTOS_UDP_IPv4_utest (Subprocess aborted)
	 44 - FreeRTOS_UDP_IPv6_utest (Subprocess aborted)
	 46 - FreeRTOS_TCP_IP_utest (Subprocess aborted)
	 51 - FreeRTOS_TCP_Transmission_utest (Subprocess aborted)
	 52 - FreeRTOS_TCP_Transmission_IPv6_utest (Subprocess aborted)
	 57 - FreeRTOS_Sockets_IPv6_utest (Subprocess aborted)
	 58 - FreeRTOS_Routing_utest (Subprocess aborted)
	 60 - FreeRTOS_Routing_ConfigCompatibleWithSingle_utest (Subprocess aborted)

The first failure is test_xCheckRequiresARPResolution_AssertInvalidFrameType() in FreeRTOS_ARP_utest.
After reducing it to the minimal failing testcase, I have this:

void test_catch_assert()
{
    catch_assert(configASSERT(0));
}

Which leaves this backtrace in GDB:

Program received signal SIGABRT, Aborted.
0x00007ffff7c9dc9c in __pthread_kill_implementation () from /lib64/libc.so.6
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.42-3.3.x86_64
(gdb) bt
#0  0x00007ffff7c9dc9c in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007ffff7c42786 in raise () from /lib64/libc.so.6
#2  0x00007ffff7c2934b in abort () from /lib64/libc.so.6
#3  0x00007ffff7c29295 in __assert_fail_base.cold () from /lib64/libc.so.6
#4  0x00000000004082c9 in test_catch_assert ()
#5  0x000000000040c4b5 in run_test ()
#6  0x000000000040c7f4 in main ()

Target

  • Instruction Set Architecture: x86-64 (native compilation)
  • Toolchain and version: gcc 15.2.1 20260202

Host

  • Host OS: openSUSE Tumbleweed
  • Version: 20260408

To Reproduce

  • Run the script embedded in test/unit-test/README.md

Additional context

I don't suspect this to be relevant, but I had to update the submodule tools/CMock/vendor/unity to the latest origin/HEAD in order to get a fix for a Ruby 4 incompatibility before I could build the tests.

Lingua principale
C
Stelle
215
Fork
222
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FreeRTOS/FreeRTOS-Plus-TCP

Tutte le issue di FreeRTOS/FreeRTOS-Plus-TCP

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.