Bug 208097 - Invalid file descriptor in pwd(1)
Summary: Invalid file descriptor in pwd(1)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: valgrind
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-26 13:32 UTC by Kjartan Maraas
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version: 3.2.1-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-13 13:24:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kjartan Maraas 2006-09-26 13:32:55 UTC
Description of problem:

Valgrind reports this:

==26071== Warning: invalid file descriptor -100 in syscall openat()
==26071==    at 0x3E17B6: __openat64_nocancel (openat.c:95)
==26071==    by 0x3E18EC: openat64 (openat.c:164)
==26071==    by 0x804B242: rpl_getcwd (getcwd.c:218)
==26071==    by 0x804AD1A: xgetcwd (xgetcwd.c:39)
==26071==    by 0x804925A: main (pwd.c:322)
--26071-- Caught __NR_exit; running __libc_freeres()
--26071-- REDIR: 0x3914A0 (memset) redirected to 0x4006580 (memset)

When running evolution. Could be that this is just a matter of teaching valgrind
about the special case of using -100 as a file descriptor in the openat case?
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tim Waugh 2006-09-26 13:37:21 UTC
No idea.  Jakub?

Comment 2 Jim Meyering 2006-09-26 13:41:11 UTC
Anyone know how to reproduce this?

Comment 3 Kjartan Maraas 2006-09-26 17:25:10 UTC
'valgrind -v -v --leak-check=full --num-callers=30 pwd' will do it here at least.

Comment 4 Tim Waugh 2006-12-13 13:16:54 UTC
I can't reproduce this.  Does it still happen?

Changing component to valgrind since that's most likely where the problem is/was.

Comment 5 Jakub Jelinek 2006-12-13 13:24:27 UTC
* Tue Sep 26 2006 Jakub Jelinek <jakub> 3.2.1-2
- fix openat handling (#208097)



Note You need to log in before you can comment on or make changes to this bug.