unsub
Best Regards
Rahul Singh
Continental Automotive Singapore Pte Ltd
3 Kallang Sector, #04-05
Singapore 349278
DID : (65) 6848 6548
Email:rahul.si...@continental-corporation.com
http://www.continental-corporation.com
From: Tom Hughes <t...@compton.nu>
To: daniel.jan...@edgeware.tv
Cc: valgrind-users@lists.sourceforge.net
Date: 07/18/2012 05:28 PM
Subject: Re: [Valgrind-users] Invalid file descriptor 1019
On 18/07/12 10:03, daniel.jan...@edgeware.tv wrote:
> Thanks, running "ulimit -n 100000" seems to fix my problem. It's strange
> though since the program under test sets its own limit RLIMIT_NOFILE
with
> setrlimit().
Does it check the return value? I suspect it doesn't ;-)
To explain, because valgrind reserves some file descriptors for itself
at the top end of the range it also refuses attempts to change the limit
because to do so it would have to move it's own descriptors.
So you should find that the setrlimit call returns EPERM if you try and
change the hard limit when under valgrind.
Tom
--
Tom Hughes (t...@compton.nu)
http://compton.nu/
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users