Assertion in malloc.c for 4.7.99.2

Joel Sherrill joel.sherrill at oarcorp.com
Wed Aug 22 07:51:41 CDT 2007


Paul Black wrote:
> Chris Johns wrote:
>   
>> Paul Black wrote:
>>     
>>> Does anything different need to be done for running on 4.7.99.2 compared
>>> to 4.7.1?
>>>
>>>       
>> You need this patch:
>>
>> http://www.rtems.org/cgi-bin/viewcvs.cgi/rtems/cpukit/score/include/rtems/score/object.h.diff?r2=1.52&r1=1.51&diff_format=u
>>     
>
> The assertion at line 478 of malloc.c has returned.
>
> This time I'm trying to include ATA/IDE code:
> <---Start
> #include <stdio.h>
> #include <rtems.h>
>
> rtems_task Init(rtems_task_argument argument)
> {
>     printf("Starting ...\n" );
>
>     printf("Compiled %s %s\n",__TIME__,  __DATE__);
> }
>
> #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
> #define CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER
> #define CONFIGURE_INIT
> #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
> #define CONFIGURE_MAXIMUM_TASKS             10
> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
>
> #include <rtems/confdefs.h>
> <---End
>
> It goes away if CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER is not defined.
>
>   
My guess is that this indicates that an address is being freed
that doesn't match the one allocated.

--joel



More information about the rtems-users mailing list