[RTEMS Project] #2069: [CBS Scheduler] Memory leak and enqueue problem

RTEMS trac trac at rtems.org
Sun Nov 23 00:18:19 UTC 2014


#2069: [CBS Scheduler] Memory leak and enqueue problem
----------------------------+-----------------------
 Reporter:  andreas.heinig  |       Owner:  gedare
     Type:  defect          |      Status:  assigned
 Priority:  normal          |   Milestone:  4.11
Component:  cpukit          |     Version:  HEAD
 Severity:  major           |  Resolution:
 Keywords:                  |
----------------------------+-----------------------
Changes (by joel.sherrill):

 * owner:  joel.sherrill => gedare
 * status:  new => assigned


Old description:

> Setup:
> =====
>
> RTEMS 4.11 (git -> master)
>
> Configure: /home/heandr/Projects/FEHLER/workingset/fame-
> dev/trunk/rtems/configure --target=arm-softfloat-rtems4.11
> --prefix=/home/heandr/Projects/FEHLER-work/fame-dev-tk71/install/arm-
> softfloat-rtems4.11/rtems --with-fame-install=/home/heandr/Projects
> /FEHLER-work/fame-dev-tk71/install/arm-none-eabi --enable-rtemsbsp=fame-
> tk71 --disable-multiprocessing --enable-networking
>
> => ARM926
> => TK71-Board (Marvell Kirkwood)
>
> Application: a simple shell application
>
> system.h:
> vvvv BEGIN vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> #include <rtems.h>
> #include <rtems/shell.h>
> #include <bsp.h>
>
> #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
> #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
> #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
> #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
> #define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
>
> #define CONFIGURE_MAXIMUM_TASKS                         32
> #define CONFIGURE_MAXIMUM_SEMAPHORES                    20
> #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES                20
>
> #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS        20
>
> #define CONFIGURE_FILESYSTEM_NFS
> #define CONFIGURE_MAXIMUM_DRIVERS                       20
>
> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
>
> #define CONFIGURE_MAXIMUM_POSIX_THREADS                 8
> #define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES              32
>
> #define CONFIGURE_MAXIMUM_PERIODS                       10
> #define CONFIGURE_SCHEDULER_CBS
> #define CONFIGURE_CBS_MAXIMUM_SERVERS                   10
>
> #include <rtems/confdefs.h>
> ^^^^ END ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Remarks:
> ========
>
> I simply start a shell within the Init task without usage of the CBS
> scheduler. This renders the shell as a background task.

New description:

 Setup:
 =====

 RTEMS 4.11 (git -> master)

 Configure: /home/heandr/Projects/FEHLER/workingset/fame-
 dev/trunk/rtems/configure --target=arm-softfloat-rtems4.11
 --prefix=/home/heandr/Projects/FEHLER-work/fame-dev-tk71/install/arm-
 softfloat-rtems4.11/rtems --with-fame-install=/home/heandr/Projects
 /FEHLER-work/fame-dev-tk71/install/arm-none-eabi --enable-rtemsbsp=fame-
 tk71 --disable-multiprocessing --enable-networking

 => ARM926
 => TK71-Board (Marvell Kirkwood)

 Application: a simple shell application

 system.h:
 vvvv BEGIN vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
 #include <rtems.h>
 #include <rtems/shell.h>
 #include <bsp.h>

 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
 #define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER

 #define CONFIGURE_MAXIMUM_TASKS                         32
 #define CONFIGURE_MAXIMUM_SEMAPHORES                    20
 #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES                20

 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS        20

 #define CONFIGURE_FILESYSTEM_NFS
 #define CONFIGURE_MAXIMUM_DRIVERS                       20

 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE

 #define CONFIGURE_MAXIMUM_POSIX_THREADS                 8
 #define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES              32

 #define CONFIGURE_MAXIMUM_PERIODS                       10
 #define CONFIGURE_SCHEDULER_CBS
 #define CONFIGURE_CBS_MAXIMUM_SERVERS                   10

 #include <rtems/confdefs.h>
 ^^^^ END ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 Remarks:
 ========

 I simply start a shell within the Init task without usage of the CBS
 scheduler. This renders the shell as a background task.

--

Comment:

 Gedare.. is this still an issue? Does it need work still? Was the patch
 OK?

--
Ticket URL: <http://devel.rtems.org/ticket/2069#comment:10>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list