Assertion in malloc.c for 4.7.99.2

Paul Black paul.black at oxsemi.com
Mon Aug 20 14:26:43 UTC 2007


Whilst playing with RTEMS, I'm trying the following code to play with
the monitor functionality:
#include <rtems.h>
#include <rtems/cpuuse.h>
#include <rtems/monitor.h>
#include <stdio.h>

rtems_task Init(rtems_task_argument argument)
{
    printf("Starting ...\n" );

    printf("Compiled %s %s\n",__TIME__,  __DATE__);

    rtems_monitor_init(0);

    sleep (5000);
}

#define CONFIGURE_INIT
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS            5
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE

#include <rtems/confdefs.h>

The code works fine with 4.7.1 but fails with an assert at line 478 of
cpukit/libcsupport/src/malloc.c; I'm using the PC386 BSP and linking
with "MANAGERS=all".

Does anything different need to be done for running on 4.7.99.2 compared
to 4.7.1?

-- 
Paul




More information about the users mailing list