From: Henry Bausley <hbausley@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Posix Memory Leak w/ sem_open
Date: Tue, 28 Jun 2011 11:25:51 -0700 [thread overview]
Message-ID: <1309285551.669.35.camel@domain.hid> (raw)
Using the program below the used main heap continues to grow forever.
int main(void)
{
sem_t *mutex;
mutex = sem_open(SEM_NAME,O_CREAT,0644,1);
sem_close(mutex);
sem_unlink(SEM_NAME);
return 0;
}
I am using xenomai 2.5.6 with the ipipe-2.6.35.9-powerpc-2.12-02
kernel. Below you can see the used heap continually grow when
executing the above program.
root@domain.hid# uname -a
Linux powerpmac 2.6.35.9 #4 Tue Jun 28 08:45:19 PDT 2011 ppc GNU/Linux
root@domain.hid# cat /proc/xenomai/version
2.5.6
root@domain.hid# test/test && cat /proc/xenomai/heap | grep
main
size=520192:used=9600:pagesz=512 (main heap)
root@domain.hid# test/test && cat /proc/xenomai/heap | grep
main
size=520192:used=9632:pagesz=512 (main heap)
root@domain.hid# test/test && cat /proc/xenomai/heap | grep
main
size=520192:used=9664:pagesz=512 (main heap)
root@domain.hid# test/test && cat /proc/xenomai/heap | grep
main
size=520192:used=9696:pagesz=512 (main heap)
root@domain.hid# test/test && cat /proc/xenomai/heap | grep
main
size=520192:used=9728:pagesz=512 (main heap)
root@domain.hid# test/test && cat /proc/xenomai/heap | grep
main
size=520192:used=9760:pagesz=512 (main heap)
Outbound scan for Spam or Virus by Barracuda at Delta Tau
next reply other threads:[~2011-06-28 18:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 18:25 Henry Bausley [this message]
2011-06-28 18:59 ` [Xenomai-help] Posix Memory Leak w/ sem_open Gilles Chanteperdrix
2011-06-29 14:53 ` Henry Bausley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1309285551.669.35.camel@domain.hid \
--to=hbausley@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.