Skip to content

Fix the @debug_ccall test on Julia 1.14 - #22

Open
maleadt wants to merge 1 commit into
mainfrom
tb/julia-1.14
Open

maleadt wants to merge 1 commit into
mainfrom
tb/julia-1.14

Conversation

@maleadt

@maleadt maleadt commented Sep 25, 2026

Copy link
Copy Markdown
Member

The @debug_ccall test called libc's time without its time_t * argument, so time wrote through whatever the first argument register held. On 1.14 that register happens to point to read-only memory (ReadOnlyMemoryError on Linux and macOS). Pass C_NULL. Test-only change. Verified on 1.10, 1.13 and nightly (1.14.0-DEV.3363).

time(time_t *tloc) was called without its pointer argument, so it wrote
through whatever the first argument register happened to hold. On Julia
1.14 that is a pointer to read-only memory, crashing with a
ReadOnlyMemoryError on Linux and macOS.
@maleadt
maleadt marked this pull request as ready for review September 25, 2026 13:14

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant