Comment 6 for bug 1613602

Revision history for this message
You-Sheng Yang (vicamo) wrote :

So _NL_CURRENT_LOCALE expands to `__libc_tsd_get(__locale_t, LOCALE)`, which expands to __libc_tsd_LOCALE. That __libc_tsd_LOCALE variable is only set with __libc_tsd_set macro, which is only called by uselocale(). repowerd does calls uselocale during the startup, twice. One with a valid pointer value, the other with 0xFFFFFFFFFFFFFFFF. However, neither case changes value of __libc_tsd_LOCALE at locale/uselocale.c line 37. So even we try to set a another value TZ env var, actually it's using glibc default "UTC0" if unset, repowerd still gets segfault.