Skip to content

Unset TZDIR will cause crash without /usr/share/zoneinfo #1577

@scdub

Description

@scdub

When using ORC on a platform that doesn't have /usr/share/zoneinfo defined nor the TZDIR environment variable set, the library will crash. Specifically on Windows, the DEFAULT_TZDIR location is an invalid path, but even on Linux the file is not present on minimal images like the default alpine container. It looks like the TZDATA is downloaded during the build and is referenced during the C++ tests of ORC, but this change won't affect the runtime DLLs. Perhaps a relative location or option to configure a TZDATA location would make sense? In my case working with conda, I patched the routine to locate the tzdata that is included within the conda environment, but that wouldn't be applicable to all use cases.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions