[PATCH v3 1/2] BZ #17645, fix slow DSO sorting behavior in dynamic loader
Florian Weimer
fweimer@redhat.com
Mon Jul 27 10:12:33 GMT 2020
* Chung-Lin Tang:
> I understand the need to support timeouts, but actually, because of
> the nature of the ld.so sorting tests, where a lot of the action
> happens before/after main(), making the testcase executables use
> support/test-driver.c isn't really that meaningful. In terms of the
> relations, you would need to wrap the entire ld.so into a testcase for
> that to work.
Agreed. I think having a test without that protection should be fine,
if it indeed runs in a few seconds now.
> Do we already have some support program that embeds
> support/test-driver.c (like a testcase) and allows forking of a
> generic program + command-line? That should allow running the entire
> ld.so with a timeout I suppose. Another method would be to do
> something in the generated shell script wrapper to implement a
> timeout.
Historically, we have used shell tests for that.
Thanks,
Florian
More information about the Libc-alpha
mailing list