Paul Irofti:

> >   b) Revert _timekeep init (breaks naddy@'s machine)
> 
> Robert helped properly track down this issue to a silly null-ref.

If that was indeed the problem...

> --- lib/libc/dlfcn/init.c
> +++ lib/libc/dlfcn/init.c
> @@ -105,6 +107,14 @@ _libc_preinit(int argc, char **argv, char **envp, 
> dl_cb_cb *cb)
>                       phnum = aux->au_v;
>                       break;
>  #endif /* !PIC */
> +             case AUX_openbsd_timekeep:
> +                     if (_tc_get_timecount) {
> +                             _timekeep = (void *)aux->au_v;
> +                             if (_timekeep &&
> +                                 _timekeep->tk_version != TK_VERSION)
> +                                     _timekeep = NULL;
> +                     }
> +                     break;
>               }
>       }
>  

... how could aux->au_v be NULL here?

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to