|
From: Fred S. <fs...@co...> - 2012-09-11 17:16:15
|
File descriptors 0, 1, and 2 are respectively: standard input, standard output, and standard error. Programs generally tend to exit without closing them, so it's natural that they would still be open at exit, as Valgrind diagnoses. I'm guessing it's telling you that because of the --track-fds=yes option you used, or else because of the verbose (-v) option. Fred Smith Senior Applications Programmer/Analyst Computrition, Inc. 175 Middlesex Turnpike Bedford, MA 01730 ph: 781-275-4488 x5013 fax: 781-357-4100 From: Martin Ichilevici de Oliveira [mailto:mar...@gm...] Sent: Tuesday, September 11, 2012 1:05 PM To: val...@li... Subject: [Valgrind-users] Understanding open file descriptor at exit Hello, When I ran valgrind, I got the following message, which I'm having trouble understand. ==21285== FILE DESCRIPTORS: 3 open at exit. ==21285== Open file descriptor 2: /dev/pts/1 ==21285== <inherited from parent> ==21285== ==21285== Open file descriptor 1: /dev/pts/1 ==21285== <inherited from parent> ==21285== ==21285== Open file descriptor 0: /dev/pts/1 ==21285== <inherited from parent> Isn't /dev/pts/1 my terminal? I don't know if matters for this question, but I used the following options for valgrind: --tool=memcheck --leak-check=full --show-reachable=yes --num-callers=20 --track-fds=yes -v Thank you, Martin This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email |