[#3419] Valgrind analysis of [BUG] unknown node type 0 — Andrew Walrond <andrew@...>

Hello list,

19 messages 2004/09/17
[#3422] Re: Valgrind analysis of [BUG] unknown node type 0 — ts <decoux@...> 2004/09/17

>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:

[#3423] Re: Valgrind analysis of [BUG] unknown node type 0 — Andrew Walrond <andrew@...> 2004/09/17

On Friday 17 Sep 2004 12:01, ts wrote:

[#3424] Re: Valgrind analysis of [BUG] unknown node type 0 — ts <decoux@...> 2004/09/17

>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:

[#3425] Re: Valgrind analysis of [BUG] unknown node type 0 — Andrew Walrond <andrew@...> 2004/09/17

On Friday 17 Sep 2004 12:37, ts wrote:

[#3426] Re: Valgrind analysis of [BUG] unknown node type 0 — ts <decoux@...> 2004/09/17

>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:

[#3428] Re: Valgrind analysis of [BUG] unknown node type 0 — Andrew Walrond <andrew@...> 2004/09/17

On Friday 17 Sep 2004 13:05, ts wrote:

[#3429] Re: Valgrind analysis of [BUG] unknown node type 0 — ts <decoux@...> 2004/09/17

>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:

Re: [PATCH] dir.c (II)

From: Yukihiro Matsumoto <matz@...>
Date: 2004-09-18 05:09:33 UTC
List: ruby-core #3450
Hi,

In message "Johan Holmberg <holmberg@iar.se>"
    on Sat, 18 Sep 2004 07:19:18 +0900, nil writes:

|I noticed today that dir.c was updated in the CVS archives to fix
|the problem I described in my original mail. But after looking at
|the change, I think it can be improved in some ways:
|
|1) the "dir_chdir" call in "chdir_restore" is done
|   even if the first call failed. I don't think this is
|   "logically correct" to do: one shouldn't undo something that was
|   never done. See the end of the mail for a weird example (taken
|   from a testcase I added to the Rubytests on Rubyforge).
|
|2) the memory leak that was mentioned in the previous thread doesn't
|   seem to have been fixed in the change commited today.
|
|Below is a new patch that I think solves these issues. I have also
|reorganized the code somewhat, so that "chdir_yield" and
|"chdir_restore" are more symmetric, and renamed some variables so
|the code becomes easier to read (hopefully).
|
|I hope the change can be useful.

It's useful.  Thank you.

							matz.

In This Thread