All of lore.kernel.org
 help / color / mirror / Atom feed
* systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed
@ 2020-01-23  9:42 Alex Kiernan
  2020-01-23 10:09 ` Andreas Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Kiernan @ 2020-01-23  9:42 UTC (permalink / raw)
  To: OpenEmbedded Devel List

On the offchance someone's tripped over this already/has pointers:

Around the time python2 dropped out, I'm now seeing boot failures with:

[  612.151548] systemd-journald[543]: Assertion
'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
src/basic/time-util.c:55, function now(). Aborting.

I suspect it's unrelated to py2, but that's delayed me getting to the problem.

The board I'm targetting is AM335x based, but without an RTC (which I
suspect may be relevant).

Anyone seen anything similar?

-- 
Alex Kiernan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed
  2020-01-23  9:42 systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed Alex Kiernan
@ 2020-01-23 10:09 ` Andreas Müller
  2020-01-24  0:13   ` Alex Kiernan
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Müller @ 2020-01-23 10:09 UTC (permalink / raw)
  To: Alex Kiernan; +Cc: OpenEmbedded Devel List

On Thu, Jan 23, 2020 at 10:43 AM Alex Kiernan <alex.kiernan@gmail.com> wrote:
>
> On the offchance someone's tripped over this already/has pointers:
>
> Around the time python2 dropped out, I'm now seeing boot failures with:
>
> [  612.151548] systemd-journald[543]: Assertion
> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> src/basic/time-util.c:55, function now(). Aborting.
>
> I suspect it's unrelated to py2, but that's delayed me getting to the problem.
>
> The board I'm targetting is AM335x based, but without an RTC (which I
> suspect may be relevant).
>
> Anyone seen anything similar?
>
> --
> Alex Kiernan
Hi Alex,

Have not seen that one yet. Will look for it once I can build images
in current environment (python2/Qt5.14 broke loads for me). What I
have seen were problems with timedatectl <-> ntp. Changing from local
time to ntp-sync did not work: Time remained un-synced on recent
images. Machine was Raspi so no RTC either.

Don't know if this is related to your finding...

Andreas


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed
  2020-01-23 10:09 ` Andreas Müller
@ 2020-01-24  0:13   ` Alex Kiernan
  2020-01-24  0:22     ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Kiernan @ 2020-01-24  0:13 UTC (permalink / raw)
  To: Andreas Müller; +Cc: OpenEmbedded Devel List

On Thu, Jan 23, 2020 at 10:09 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>
> On Thu, Jan 23, 2020 at 10:43 AM Alex Kiernan <alex.kiernan@gmail.com> wrote:
> >
> > On the offchance someone's tripped over this already/has pointers:
> >
> > Around the time python2 dropped out, I'm now seeing boot failures with:
> >
> > [  612.151548] systemd-journald[543]: Assertion
> > 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> > src/basic/time-util.c:55, function now(). Aborting.
> >
> > I suspect it's unrelated to py2, but that's delayed me getting to the problem.
> >
> > The board I'm targetting is AM335x based, but without an RTC (which I
> > suspect may be relevant).
> >
> > Anyone seen anything similar?
> >
> > --
> > Alex Kiernan
> Hi Alex,
>
> Have not seen that one yet. Will look for it once I can build images
> in current environment (python2/Qt5.14 broke loads for me). What I
> have seen were problems with timedatectl <-> ntp. Changing from local
> time to ntp-sync did not work: Time remained un-synced on recent
> images. Machine was Raspi so no RTC either.
>
> Don't know if this is related to your finding...
>

Looks like it's related to the glibc bump - reverting that changeset
gets it booting again. I struggle to figure out which of the myriad
wrappers are actually being used from inspecting the glibc source, but
if it's the one I think it is, there's clearly
clock_gettime/clock_gettime64 changes there which I doubt my kernel
has (we're currently using the TI 4.19.y kernel).

-- 
Alex Kiernan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed
  2020-01-24  0:13   ` Alex Kiernan
@ 2020-01-24  0:22     ` Khem Raj
  2020-01-27 15:14       ` Alex Kiernan
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2020-01-24  0:22 UTC (permalink / raw)
  To: Alex Kiernan, Andreas Müller; +Cc: OpenEmbedded Devel List

On 1/23/20 4:13 PM, Alex Kiernan wrote:
> On Thu, Jan 23, 2020 at 10:09 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>>
>> On Thu, Jan 23, 2020 at 10:43 AM Alex Kiernan <alex.kiernan@gmail.com> wrote:
>>>
>>> On the offchance someone's tripped over this already/has pointers:
>>>
>>> Around the time python2 dropped out, I'm now seeing boot failures with:
>>>
>>> [  612.151548] systemd-journald[543]: Assertion
>>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>>> src/basic/time-util.c:55, function now(). Aborting.
>>>
>>> I suspect it's unrelated to py2, but that's delayed me getting to the problem.
>>>
>>> The board I'm targetting is AM335x based, but without an RTC (which I
>>> suspect may be relevant).
>>>
>>> Anyone seen anything similar?
>>>
>>> --
>>> Alex Kiernan
>> Hi Alex,
>>
>> Have not seen that one yet. Will look for it once I can build images
>> in current environment (python2/Qt5.14 broke loads for me). What I
>> have seen were problems with timedatectl <-> ntp. Changing from local
>> time to ntp-sync did not work: Time remained un-synced on recent
>> images. Machine was Raspi so no RTC either.
>>
>> Don't know if this is related to your finding...
>>
> 
> Looks like it's related to the glibc bump - reverting that changeset
> gets it booting again. I struggle to figure out which of the myriad
> wrappers are actually being used from inspecting the glibc source, but
> if it's the one I think it is, there's clearly
> clock_gettime/clock_gettime64 changes there which I doubt my kernel
> has (we're currently using the TI 4.19.y kernel).

Is it possible for you to try 5.x for tests ? I know there were 64bit 
time_t related errors I saw with 4.19/rpi3-32bit but it was with musl, 
since musl enabled 64bit time_t by default, that might be different 
issue too

Try applying [1] to glibc as well, currrently, its only applied to musl 
case, perhaps that might help.

[1] 
https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/systemd/systemd/0022-Use-INT_MAX-instead-of-TIME_T_MAX-for-timerfd_settim.patch



> 



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed
  2020-01-24  0:22     ` Khem Raj
@ 2020-01-27 15:14       ` Alex Kiernan
  2020-02-03 22:17         ` Stefan Agner
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Kiernan @ 2020-01-27 15:14 UTC (permalink / raw)
  To: Khem Raj; +Cc: OpenEmbedded Devel List

On Fri, Jan 24, 2020 at 12:22 AM Khem Raj <raj.khem@gmail.com> wrote:
>
> On 1/23/20 4:13 PM, Alex Kiernan wrote:
> > On Thu, Jan 23, 2020 at 10:09 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
> >>
> >> On Thu, Jan 23, 2020 at 10:43 AM Alex Kiernan <alex.kiernan@gmail.com> wrote:
> >>>
> >>> On the offchance someone's tripped over this already/has pointers:
> >>>
> >>> Around the time python2 dropped out, I'm now seeing boot failures with:
> >>>
> >>> [  612.151548] systemd-journald[543]: Assertion
> >>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> >>> src/basic/time-util.c:55, function now(). Aborting.
> >>>
> >>> I suspect it's unrelated to py2, but that's delayed me getting to the problem.
> >>>
> >>> The board I'm targetting is AM335x based, but without an RTC (which I
> >>> suspect may be relevant).
> >>>
> >>> Anyone seen anything similar?
> >>>
> >>> --
> >>> Alex Kiernan
> >> Hi Alex,
> >>
> >> Have not seen that one yet. Will look for it once I can build images
> >> in current environment (python2/Qt5.14 broke loads for me). What I
> >> have seen were problems with timedatectl <-> ntp. Changing from local
> >> time to ntp-sync did not work: Time remained un-synced on recent
> >> images. Machine was Raspi so no RTC either.
> >>
> >> Don't know if this is related to your finding...
> >>
> >
> > Looks like it's related to the glibc bump - reverting that changeset
> > gets it booting again. I struggle to figure out which of the myriad
> > wrappers are actually being used from inspecting the glibc source, but
> > if it's the one I think it is, there's clearly
> > clock_gettime/clock_gettime64 changes there which I doubt my kernel
> > has (we're currently using the TI 4.19.y kernel).
>
> Is it possible for you to try 5.x for tests ?

That's where I went first, though I need to bring up the newer TI 5.4
branch first (which has its own problems as there's some patch which
was in the 4.9.y hsmmc driver which isn't in the latest which causes
random timeouts on some of our board samples).

> I know there were 64bit
> time_t related errors I saw with 4.19/rpi3-32bit but it was with musl,
> since musl enabled 64bit time_t by default, that might be different
> issue too
>
> Try applying [1] to glibc as well, currrently, its only applied to musl
> case, perhaps that might help.
>
> [1]
> https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/systemd/systemd/0022-Use-INT_MAX-instead-of-TIME_T_MAX-for-timerfd_settim.patch
>

It looks like it's something that's now in the call path which is
tripping the seccomp filter on systemd-journald - if I comment
SystemCallFilter=@system-service then I can boot.

Just trying to figure out what syscall it is we're tripping over. What
I don't understand is why booting linux-yocto 4.19 inside qemu w/
systemd doesn't see this problem.


--
Alex Kiernan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed
  2020-01-27 15:14       ` Alex Kiernan
@ 2020-02-03 22:17         ` Stefan Agner
  2020-02-03 22:37           ` Alex Kiernan
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Agner @ 2020-02-03 22:17 UTC (permalink / raw)
  To: Alex Kiernan; +Cc: liu.ming50, OpenEmbedded Devel List

Hi All,

On 2020-01-27 16:14, Alex Kiernan wrote:
> On Fri, Jan 24, 2020 at 12:22 AM Khem Raj <raj.khem@gmail.com> wrote:
>>
>> On 1/23/20 4:13 PM, Alex Kiernan wrote:
>> > On Thu, Jan 23, 2020 at 10:09 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>> >>
>> >> On Thu, Jan 23, 2020 at 10:43 AM Alex Kiernan <alex.kiernan@gmail.com> wrote:
>> >>>
>> >>> On the offchance someone's tripped over this already/has pointers:
>> >>>
>> >>> Around the time python2 dropped out, I'm now seeing boot failures with:
>> >>>
>> >>> [  612.151548] systemd-journald[543]: Assertion
>> >>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>> >>> src/basic/time-util.c:55, function now(). Aborting.
>> >>>
>> >>> I suspect it's unrelated to py2, but that's delayed me getting to the problem.
>> >>>
>> >>> The board I'm targetting is AM335x based, but without an RTC (which I
>> >>> suspect may be relevant).
>> >>>
>> >>> Anyone seen anything similar?
>> >>>
>> >>> --
>> >>> Alex Kiernan
>> >> Hi Alex,
>> >>
>> >> Have not seen that one yet. Will look for it once I can build images
>> >> in current environment (python2/Qt5.14 broke loads for me). What I
>> >> have seen were problems with timedatectl <-> ntp. Changing from local
>> >> time to ntp-sync did not work: Time remained un-synced on recent
>> >> images. Machine was Raspi so no RTC either.
>> >>
>> >> Don't know if this is related to your finding...
>> >>
>> >
>> > Looks like it's related to the glibc bump - reverting that changeset
>> > gets it booting again. I struggle to figure out which of the myriad
>> > wrappers are actually being used from inspecting the glibc source, but
>> > if it's the one I think it is, there's clearly
>> > clock_gettime/clock_gettime64 changes there which I doubt my kernel
>> > has (we're currently using the TI 4.19.y kernel).
>>
>> Is it possible for you to try 5.x for tests ?
> 
> That's where I went first, though I need to bring up the newer TI 5.4
> branch first (which has its own problems as there's some patch which
> was in the 4.9.y hsmmc driver which isn't in the latest which causes
> random timeouts on some of our board samples).
> 

I am seeing this on master branch too on a Toradex Apalis iMX6 (i.MX
6Dual to be specfic) running a mainline kernel 5.4.2.

We do have a RTC and according to dmesg the time has been read from it
successfully and correctly. We do have a second (the SoC internal) which
actually might be not correctly set, I haven't checked.

It seems systemd-journald which is tripping, but later also
systemd-udevd:
[    5.749612] systemd-journald[510]: Assertion
'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
src/basic/time-util.c:55, function now(). Aborting.
[    6.433771] systemd-journald[534]: Assertion
'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
src/basic/time-util.c:55, function now(). Aborting.
[    6.934304] systemd-journald[536]: Assertion
'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
src/basic/time-util.c:55, function now(). Aborting.
[    7.379449] systemd-journald[538]: Assertion
'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
src/basic/time-util.c:55, function now(). Aborting.
[    7.763130] systemd-journald[539]: Assertion
'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
src/basic/time-util.c:55, function now(). Aborting.
...
[    8.402258] systemd-udevd[542]: Assertion
'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
src/basic/time-util.c:55, function now(). Aborting.

We do have +SECCOMP, and also here commenting out
"SystemCallFilter=@system-service" seems to help.

strace seems to point to clock_gettime64:

connect(17, {sa_family=AF_UNIX, sun_path="/run/systemd/notify"}, 22) = 0
epoll_ctl(7, EPOLL_CTL_ADD, 17, {EPOLLOUT, {u32=18865912,
u64=18865912}}) = 0
getuid32()                              = 0
getgid32()                              = 0
openat(AT_FDCWD, "/proc/meminfo", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18
fstat64(18, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(18, "MemTotal:        1023560 kB\nMemF"..., 1024) = 1024
ioctl(18, TCGETS, 0xbeef46f4)           = -1 ENOTTY (Inappropriate ioctl
for device)
ioctl(18, TCGETS, 0xbeef46f4)           = -1 ENOTTY (Inappropriate ioctl
for device)
close(18)                               = 0
ugetrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) =
0
clock_gettime64(CLOCK_MONOTONIC, 0xbeef47b0) = -1 EPERM (Operation not
permitted)
ioctl(2, TCGETS, 0xbeef472c)            = -1 ENOTTY (Inappropriate ioctl
for device)
writev(6, [{iov_base="<42>", iov_len=4}, {iov_base="systemd-journald",
iov_len=16}, {iov_base="[1007]: ", iov_len=8}, {iov_base="Assertion
'clock_gettime(map_clo"..., iov_len=121}, {iov_base="\n", iov_len=1}],
5) = 150
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT USR1 USR2 TERM RT_3], 8) =
0

--
Stefan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed
  2020-02-03 22:17         ` Stefan Agner
@ 2020-02-03 22:37           ` Alex Kiernan
  2020-02-04  9:00             ` Stefan Agner
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Kiernan @ 2020-02-03 22:37 UTC (permalink / raw)
  To: Stefan Agner; +Cc: Ming Liu, OpenEmbedded Devel List

On Mon, Feb 3, 2020 at 10:17 PM Stefan Agner <stefan@agner.ch> wrote:
>
> Hi All,
>
> On 2020-01-27 16:14, Alex Kiernan wrote:
> > On Fri, Jan 24, 2020 at 12:22 AM Khem Raj <raj.khem@gmail.com> wrote:
> >>
> >> On 1/23/20 4:13 PM, Alex Kiernan wrote:
> >> > On Thu, Jan 23, 2020 at 10:09 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
> >> >>
> >> >> On Thu, Jan 23, 2020 at 10:43 AM Alex Kiernan <alex.kiernan@gmail.com> wrote:
> >> >>>
> >> >>> On the offchance someone's tripped over this already/has pointers:
> >> >>>
> >> >>> Around the time python2 dropped out, I'm now seeing boot failures with:
> >> >>>
> >> >>> [  612.151548] systemd-journald[543]: Assertion
> >> >>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> >> >>> src/basic/time-util.c:55, function now(). Aborting.
> >> >>>
> >> >>> I suspect it's unrelated to py2, but that's delayed me getting to the problem.
> >> >>>
> >> >>> The board I'm targetting is AM335x based, but without an RTC (which I
> >> >>> suspect may be relevant).
> >> >>>
> >> >>> Anyone seen anything similar?
> >> >>>
> >> >>> --
> >> >>> Alex Kiernan
> >> >> Hi Alex,
> >> >>
> >> >> Have not seen that one yet. Will look for it once I can build images
> >> >> in current environment (python2/Qt5.14 broke loads for me). What I
> >> >> have seen were problems with timedatectl <-> ntp. Changing from local
> >> >> time to ntp-sync did not work: Time remained un-synced on recent
> >> >> images. Machine was Raspi so no RTC either.
> >> >>
> >> >> Don't know if this is related to your finding...
> >> >>
> >> >
> >> > Looks like it's related to the glibc bump - reverting that changeset
> >> > gets it booting again. I struggle to figure out which of the myriad
> >> > wrappers are actually being used from inspecting the glibc source, but
> >> > if it's the one I think it is, there's clearly
> >> > clock_gettime/clock_gettime64 changes there which I doubt my kernel
> >> > has (we're currently using the TI 4.19.y kernel).
> >>
> >> Is it possible for you to try 5.x for tests ?
> >
> > That's where I went first, though I need to bring up the newer TI 5.4
> > branch first (which has its own problems as there's some patch which
> > was in the 4.9.y hsmmc driver which isn't in the latest which causes
> > random timeouts on some of our board samples).
> >
>
> I am seeing this on master branch too on a Toradex Apalis iMX6 (i.MX
> 6Dual to be specfic) running a mainline kernel 5.4.2.
>
> We do have a RTC and according to dmesg the time has been read from it
> successfully and correctly. We do have a second (the SoC internal) which
> actually might be not correctly set, I haven't checked.
>
> It seems systemd-journald which is tripping, but later also
> systemd-udevd:
> [    5.749612] systemd-journald[510]: Assertion
> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> src/basic/time-util.c:55, function now(). Aborting.
> [    6.433771] systemd-journald[534]: Assertion
> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> src/basic/time-util.c:55, function now(). Aborting.
> [    6.934304] systemd-journald[536]: Assertion
> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> src/basic/time-util.c:55, function now(). Aborting.
> [    7.379449] systemd-journald[538]: Assertion
> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> src/basic/time-util.c:55, function now(). Aborting.
> [    7.763130] systemd-journald[539]: Assertion
> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> src/basic/time-util.c:55, function now(). Aborting.
> ...
> [    8.402258] systemd-udevd[542]: Assertion
> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
> src/basic/time-util.c:55, function now(). Aborting.
>
> We do have +SECCOMP, and also here commenting out
> "SystemCallFilter=@system-service" seems to help.
>
> strace seems to point to clock_gettime64:
>

That fits with systemd-243.4 fixing it - there's a commit in there
which adds clock_gettime64 to @system-service.

-- 
Alex Kiernan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed
  2020-02-03 22:37           ` Alex Kiernan
@ 2020-02-04  9:00             ` Stefan Agner
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Agner @ 2020-02-04  9:00 UTC (permalink / raw)
  To: Alex Kiernan; +Cc: Ming Liu, OpenEmbedded Devel List

On 2020-02-03 23:37, Alex Kiernan wrote:
> On Mon, Feb 3, 2020 at 10:17 PM Stefan Agner <stefan@agner.ch> wrote:
>>
>> Hi All,
>>
>> On 2020-01-27 16:14, Alex Kiernan wrote:
>> > On Fri, Jan 24, 2020 at 12:22 AM Khem Raj <raj.khem@gmail.com> wrote:
>> >>
>> >> On 1/23/20 4:13 PM, Alex Kiernan wrote:
>> >> > On Thu, Jan 23, 2020 at 10:09 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>> >> >>
>> >> >> On Thu, Jan 23, 2020 at 10:43 AM Alex Kiernan <alex.kiernan@gmail.com> wrote:
>> >> >>>
>> >> >>> On the offchance someone's tripped over this already/has pointers:
>> >> >>>
>> >> >>> Around the time python2 dropped out, I'm now seeing boot failures with:
>> >> >>>
>> >> >>> [  612.151548] systemd-journald[543]: Assertion
>> >> >>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>> >> >>> src/basic/time-util.c:55, function now(). Aborting.
>> >> >>>
>> >> >>> I suspect it's unrelated to py2, but that's delayed me getting to the problem.
>> >> >>>
>> >> >>> The board I'm targetting is AM335x based, but without an RTC (which I
>> >> >>> suspect may be relevant).
>> >> >>>
>> >> >>> Anyone seen anything similar?
>> >> >>>
>> >> >>> --
>> >> >>> Alex Kiernan
>> >> >> Hi Alex,
>> >> >>
>> >> >> Have not seen that one yet. Will look for it once I can build images
>> >> >> in current environment (python2/Qt5.14 broke loads for me). What I
>> >> >> have seen were problems with timedatectl <-> ntp. Changing from local
>> >> >> time to ntp-sync did not work: Time remained un-synced on recent
>> >> >> images. Machine was Raspi so no RTC either.
>> >> >>
>> >> >> Don't know if this is related to your finding...
>> >> >>
>> >> >
>> >> > Looks like it's related to the glibc bump - reverting that changeset
>> >> > gets it booting again. I struggle to figure out which of the myriad
>> >> > wrappers are actually being used from inspecting the glibc source, but
>> >> > if it's the one I think it is, there's clearly
>> >> > clock_gettime/clock_gettime64 changes there which I doubt my kernel
>> >> > has (we're currently using the TI 4.19.y kernel).
>> >>
>> >> Is it possible for you to try 5.x for tests ?
>> >
>> > That's where I went first, though I need to bring up the newer TI 5.4
>> > branch first (which has its own problems as there's some patch which
>> > was in the 4.9.y hsmmc driver which isn't in the latest which causes
>> > random timeouts on some of our board samples).
>> >
>>
>> I am seeing this on master branch too on a Toradex Apalis iMX6 (i.MX
>> 6Dual to be specfic) running a mainline kernel 5.4.2.
>>
>> We do have a RTC and according to dmesg the time has been read from it
>> successfully and correctly. We do have a second (the SoC internal) which
>> actually might be not correctly set, I haven't checked.
>>
>> It seems systemd-journald which is tripping, but later also
>> systemd-udevd:
>> [    5.749612] systemd-journald[510]: Assertion
>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>> src/basic/time-util.c:55, function now(). Aborting.
>> [    6.433771] systemd-journald[534]: Assertion
>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>> src/basic/time-util.c:55, function now(). Aborting.
>> [    6.934304] systemd-journald[536]: Assertion
>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>> src/basic/time-util.c:55, function now(). Aborting.
>> [    7.379449] systemd-journald[538]: Assertion
>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>> src/basic/time-util.c:55, function now(). Aborting.
>> [    7.763130] systemd-journald[539]: Assertion
>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>> src/basic/time-util.c:55, function now(). Aborting.
>> ...
>> [    8.402258] systemd-udevd[542]: Assertion
>> 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at
>> src/basic/time-util.c:55, function now(). Aborting.
>>
>> We do have +SECCOMP, and also here commenting out
>> "SystemCallFilter=@system-service" seems to help.
>>
>> strace seems to point to clock_gettime64:
>>
> 
> That fits with systemd-243.4 fixing it - there's a commit in there
> which adds clock_gettime64 to @system-service.

Confirmed, the bump to 243.4 fixes it for me too.

--
Stefan


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-02-04  9:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23  9:42 systemd failing in master with Assertion clock_gettime(map_clock_id(clock_id), &ts) failed Alex Kiernan
2020-01-23 10:09 ` Andreas Müller
2020-01-24  0:13   ` Alex Kiernan
2020-01-24  0:22     ` Khem Raj
2020-01-27 15:14       ` Alex Kiernan
2020-02-03 22:17         ` Stefan Agner
2020-02-03 22:37           ` Alex Kiernan
2020-02-04  9:00             ` Stefan Agner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.