- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- fs_get_dom_list() opens file but never closes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 08:29 PM
тАО03-28-2006 08:29 PM
fs_get_dom_list() opens file but never closes
To confirm this, below is the sample program...
#include
#include
#include
#include
#include "fs_config.h"
#include
#include
#include
#include
extern int errno;
main()
{
int i=0;
while(1)
{
char *domlist=NULL,*err_buf=NULL;
domlist = fs_get_dom_list(&err_buf);
cout<
cout< delete domlist;
delete err_buf;
}
}
/*To compile: cxx -g grp.cpp -D__USE_STD_IOSTREAM -L. -lmsfs -lstocfg -lxerces-c1_4 -llsm -lrt -lc -lpthread -lstor */
//libstocfg.a & libxerces-c1_4.a might not be available by default in Tru64v5.1B. you may find it in Tru64v5.1A.
//It stops after printing 4091. 4096 being the default max file descriptor.
Let me know if this is a bug. If yes, is there any place where we can log the same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 09:22 PM
тАО03-28-2006 09:22 PM
Re: fs_get_dom_list() opens file but never closes
Did you try using lsof on the process to see what is the file that is opened?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 09:28 PM
тАО03-28-2006 09:28 PM
Re: fs_get_dom_list() opens file but never closes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 09:39 PM
тАО03-28-2006 09:39 PM
Re: fs_get_dom_list() opens file but never closes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 09:44 PM
тАО03-28-2006 09:44 PM
Re: fs_get_dom_list() opens file but never closes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 10:00 PM
тАО03-28-2006 10:00 PM
Re: fs_get_dom_list() opens file but never closes
[Also, as you appear new to this forum, I would suggest that you check out
http://forums1.itrc.hp.com/service/forums/helptips.do?#28 link to learn about member points system.]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2006 12:16 AM
тАО03-29-2006 12:16 AM
Re: fs_get_dom_list() opens file but never closes
Thanks a ton for the lsof utility. I didn't know about this useful stuff lying around.
However, the question remains: "Where do we log the bug?"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2006 02:27 PM
тАО03-29-2006 02:27 PM
Re: fs_get_dom_list() opens file but never closes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2006 08:04 PM
тАО03-29-2006 08:04 PM
Re: fs_get_dom_list() opens file but never closes
each program has at least three file descriptors of its own.
0=stdin, 1=stdout, 2=stderr
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2006 07:23 PM
тАО04-07-2006 07:23 PM