[PATCH v5 2/2] psxtests: Add a mmap dedicated test case

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jul 18 12:24:17 UTC 2017


This test case fails with RTEMS_DEBUG:

*** BEGIN OF TEST PSX MMAP01 ***
Init: mmap - map at zero

Breakpoint 1, __assert_func (file=file at entry=0x2027fc8 
"../../cpukit/../../../erc32/lib/include/rtems/score/chainimpl.h", 
line=line at entry=686, func=func at entry=0x2029198 <__func__.2359> 
"_Chain_Append_unprotected", failedexpr=failedexpr at entry=0x20286e0 
"_Chain_Is_node_off_chain( the_node )") at 
../../../../../../rtems/c/src/../../cpukit/libcsupport/src/__assert.c:37
37      {
(gdb) bt
#0  __assert_func (file=file at entry=0x2027fc8 
"../../cpukit/../../../erc32/lib/include/rtems/score/chainimpl.h", 
line=line at entry=686, func=func at entry=0x2029198 <__func__.2359> 
"_Chain_Append_unprotected", failedexpr=failedexpr at entry=0x20286e0 
"_Chain_Is_node_off_chain( the_node )") at 
../../../../../../rtems/c/src/../../cpukit/libcsupport/src/__assert.c:37
#1  0x0200d688 in _Chain_Append_unprotected (the_node=0x2039450, 
the_chain=0x202f650 <mmap_mappings>) at 
../../cpukit/../../../erc32/lib/include/rtems/score/chainimpl.h:686
#2  0x0200d720 in _Chain_Append_unprotected (the_node=0x2039450, 
the_chain=0x202f650 <mmap_mappings>) at 
../../../../../../rtems/c/src/../../cpukit/sapi/src/chainprotected.c:74
#3  rtems_chain_append (chain=chain at entry=0x202f650 <mmap_mappings>, 
node=node at entry=0x2039450) at 
../../../../../../rtems/c/src/../../cpukit/sapi/src/chainprotected.c:72
#4  0x0200a634 in mmap (addr=addr at entry=0xfffff000, len=len at entry=4096, 
prot=prot at entry=7, flags=<optimized out>, flags at entry=4114, 
fildes=fildes at entry=-1, off=<optimized out>) at 
../../../../../../rtems/c/src/../../cpukit/posix/src/mmap.c:373
#5  0x020014cc in mmap_map_at_zero () at 
../../../../../../../rtems/c/src/../../testsuites/psxtests/psxmmap01/init.c:100
#6  POSIX_Init (argument=<optimized out>) at 
../../../../../../../rtems/c/src/../../testsuites/psxtests/psxmmap01/init.c:324
#7  0x0201be58 in _Thread_Entry_adaptor_pointer (executing=0x20318d8) at 
../../../../../../rtems/c/src/../../cpukit/score/src/threadentryadaptorpointer.c:25
#8  0x0201bed4 in _Thread_Handler () at 
../../../../../../rtems/c/src/../../cpukit/score/src/threadhandler.c:88
#9  0x0201be6c in _Thread_Handler () at 
../../../../../../rtems/c/src/../../cpukit/score/src/threadhandler.c:38
(gdb) frame 3
#3  rtems_chain_append (chain=chain at entry=0x202f650 <mmap_mappings>, 
node=node at entry=0x2039450) at 
../../../../../../rtems/c/src/../../cpukit/sapi/src/chainprotected.c:72
72        _Chain_Append_unprotected( chain, node );
(gdb) p *node
$1 = {
   next = 0x202f654 <mmap_mappings+4>,
   previous = 0x202f650 <mmap_mappings>
}
(gdb) quit


-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list