[cc'ing Wolfgang, faketime upstream] re: https://bugs.debian.org/753460, which reports faketime 0.9.6 segfaults on systems with older libc (2.13-38+deb7u2):
On 07/02/2014 01:16 AM, Charles Evans wrote:
>
> Package: faketime
> Version: 0.9.6-1
> Severity: important
>
> faketime with no args gives usage.
> faketime -f "+1s" date -> segfault:
>
> [Tue Jul 1 19:47:36 2014] date[2872]: segfault at 0 ip (null) sp bfc7d3dc
> error 4 in date[8048000+f000]
> [Tue Jul 1 19:47:55 2014] date[3010]: segfault at 0 ip (null) sp bfba081c
> error 4 in date[8048000+f000]
> [Tue Jul 1 19:54:44 2014] date[6663]: segfault at 0 ip (null) sp bfe9957c
> error 4 in date[8048000+f000]
> (faketime stable works, but breaks iceweasel)
Interesting, this appears to be due to real_clock_gettime being set to
NULL, which then causes a segfault in system_time_from_system() at at
src/libfaketime.c:312.
I note that clock_gettime() tests for a NULL-valued real_clock_gettime
(due to dlsym() failure) and fails in that case.
But system_time_from_system returns void, so there's no way to report a
failure there. I'm not sure why dlsym(RTLD_NEXT, "clock_gettime");
would be returning NULL on debian stable.
Any thoughts, Wolfgang? Any experiments i can run to help sort it out?
--dkg
signature.asc
Description: OpenPGP digital signature

