From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2425 invoked by alias); 29 Mar 2013 14:53:42 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 2375 invoked by uid 48); 29 Mar 2013 14:53:35 -0000 From: "dhatch at ilm dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/15311] _dl_sort_fini static deps can be violated by dynamic ones Date: Fri, 29 Mar 2013 14:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dhatch at ilm dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-03/txt/msg00186.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15311 --- Comment #9 from Don Hatch 2013-03-29 14:53:34 UTC --- (In reply to comment #7) > My original alg. was > 1. topsort dynamic and static, get order o. > 2. do dfs on static, get tree and repeately output and remove leaf minimal in o. So it's like mine except your second pass is a topsort by simple dfs (reverse postordering) rather than an SCC-coherent topsort like Kosaraju's or Tarjan's, for some reason. SCC-coherent is better. For example, say the edges are 0 <-> 1 -> 2, then dfs can produce 1 2 0... we'd prefer either of 0 1 2 or 1 0 2 instead, since we'd like 0 to come before 2. In general whenever (A ->* B and not B ->* A), A should come before B in the output order. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.