fix(cuprate): seed XDG so Android parse does not poison LazyLock #128
Loading…
Reference in a new issue
No description provided.
Delete branch "onionwire/cuprate-android-xdg"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The red line
cuprate panicked: LazyLock instance has previously been poisonedis the second panic.Cuprate
#[serde(default)]fills missing nested structs viaDefault.ArtiConfig::defaultunwrapsdirs::data_dir(). On Androiddirs-syshas no getpwuid fallback andHOMEis unset, so that isNone, the first Start panics, and a retry poisons the process-wide LazyLock.XDG_DATA_HOME/XDG_CACHE_HOME/XDG_CONFIG_HOME(and a non-rootHOMEif missing or/) to the chain datadir beforetoml::from_str.[tor.arti] directory_pathin the TOML so serde never callsArtiConfig::default.Host tests:
cargo test --locked --target x86_64-unknown-linux-gnu --features cuprate-daemon --lib cuprate— 5 passed.After merge this needs a new APK. Force-stop the current install before retrying; a poisoned LazyLock lives until process death.