[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #24622] $$(eval) creating new targets causes segmentation fault

From: Lars S. Jessen
Subject: [bug #24622] $$(eval) creating new targets causes segmentation fault
Date: Tue, 21 Oct 2008 19:23:09 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; da-DK; rv: Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3

Follow-up Comment #1, bug #24622 (project make):

The crash happens when update_file() gets called with the "proj1.c" target.
It seems that expand_deps() was newer called on the "proj1.c" target

The problem seems to lie inside snap_deps() in the loop that expands target
dependencies, using expand_deps(). The problem is that snap_deps() only
iterates through targets known in advance, and since the "proj1.c" target gets
born when expand_deps() on "proj1.exe" is called, this target is newer

A possible solution to this problem is to continue iterating through all
targets until we are sure that all targets have had their dependencies
expanded. I've attached a patch that fixes the problem using this approach.

(file #16718)

Additional Item Attachment:

File name: fix24622.patch                 Size:3 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]