Many tests fail when RT malloc is enabled

Hello,

When enabling RT malloc on RTT-2.2.0, i.e.:

OS_RT_MALLOC : ON
OS_RT_MALLOC_DEBUG : OFF
OS_RT_MALLOC_MMAP : OFF
OS_RT_MALLOC_SBRK : OFF
OS_RT_MALLOC_STATS : ON

these tests fail:

6 - corba-test (Failed)
7 - corba-ipc-test (Failed)
10 - method_test (Failed)
11 - remote_method_test (Failed)
12 - functors_test (Failed)
13 - service_test (Failed)
23 - program_test (Failed)
28 - property_loader_test (Failed)

The test #7 and #28 are also failing with the default config:

OS_RT_MALLOC : ON
OS_RT_MALLOC_DEBUG : OFF
OS_RT_MALLOC_MMAP : ON
OS_RT_MALLOC_SBRK : ON
OS_RT_MALLOC_STATS : ON

Tested on Ubuntu lucid 32 bits. Does someone else can reproduce that?

Philippe

Many tests fail when RT malloc is enabled

On Friday 04 February 2011 19:22:33 Philippe Hamelin wrote:
> Hello,
>
> When enabling RT malloc on RTT-2.2.0, i.e.:
>
> OS_RT_MALLOC : ON
> OS_RT_MALLOC_DEBUG : OFF
> OS_RT_MALLOC_MMAP : OFF
> OS_RT_MALLOC_SBRK : OFF
> OS_RT_MALLOC_STATS : ON
>
> these tests fail:
>
> 6 - corba-test (Failed)
> 7 - corba-ipc-test (Failed)
> 10 - method_test (Failed)
> 11 - remote_method_test (Failed)
> 12 - functors_test (Failed)
> 13 - service_test (Failed)
> 23 - program_test (Failed)
> 28 - property_loader_test (Failed)

Yeah, we're cheeting. We assume SBRK is on, which does the necessary mallocs
for TLSF during the unit tests. In 'real life', you can set the initial pool
when using the deployer, which offers command line options to manipulate that
size, or need to call the Orocos tlsf initialisation functions yourself.

>
> The test #7 and #28 are also failing with the default config:
>
> OS_RT_MALLOC : ON
> OS_RT_MALLOC_DEBUG : OFF
> OS_RT_MALLOC_MMAP : ON
> OS_RT_MALLOC_SBRK : ON
> OS_RT_MALLOC_STATS : ON
>
> Tested on Ubuntu lucid 32 bits. Does someone else can reproduce that?

Afaikt, the failure in #28 is a known bug the test exercises. I think I
removed it in 2.2.1. Failure in #7 might be due to the corba-ipc-server
process not being started (we start it from the CMakeLists.txt script when
make check is run).

Peter