Pandoc crashes on windows when lua script uses os.tmpname

#10946

Issue Details

30 days ago
No assignee
bugplatform:windowspackage
nmichalonmichalo
opened 30 days ago
Author

Explain the problem. Include the exact command line you used and all inputs necessary to reproduce the issue. Please create as minimal an example as possible, to help the maintainers isolate the problem. Explain the output you received and how it differs from what you expected.

For a minimal example I start pandoc with pandoc lua and I enter as the first and only command os.tmpname()

Here is a transcript of the results

% pandoc lua Lua 5.4.7 Copyright (C) 1994-2024 Lua.org, PUC-Rio Embedded in pandoc 3.7.0.2 Copyright (C) 2006-2024 John MacFarlane > os.tmpname() Access violation in generated code when reading 0xffffffffffffffff Attempting to reconstruct a stack trace... Frame Code address * 0xd93751cf40 0x7ff7236b434e pandoc.exe+0x2f7434e * 0xd93751cf48 0x5c6c61636f4c5c61 * 0xd93751cf50 0x6377735c706d6554 * 0xd93751cf58 0x7ff900302e63 * 0xd93751cf60 0x28 * 0xd93751cf68 0x1 * 0xd93751cf70 0x248d85cf540 * 0xd93751cf78 0x1 * 0xd93751cf80 0x248d85cf540 * 0xd93751cf88 0x1 * 0xd93751cf90 0x248d8665dd0 * 0xd93751cf98 0x1010045 * 0xd93751cfa0 0x248d865f480 * 0xd93751d0c0 0x7ff7253c3e20 pandoc.exe+0x4c83e20 * 0xd93751d100 0x7ff7253baf71 pandoc.exe+0x4c7af71 * 0xd93751d270 0x7ff7253b9fd8 pandoc.exe+0x4c79fd8 * 0xd93751d2d0 0x7ff7253bb4d5 pandoc.exe+0x4c7b4d5 * 0xd93751d330 0x7ff72365737d pandoc.exe+0x2f1737d * 0xd93751d370 0x7ff721080f11 pandoc.exe+0x940f11 * 0xd93751d378 0x7ff721656a8f pandoc.exe+0xf16a8f * 0xd93751d380 0x1 * 0xd93751d388 0x7ff700000000 * 0xd93751d390 0x7ef4686283a1 * 0xd93751d398 0x7ef468264d9a * 0xd93751d3a0 0x7ef468805320 * 0xd93751d3a8 0x248d858f0d0 * 0xd93751d3b0 0x7ff9f3ba3e3f C:\Windows\System32\combase.dll+0xa3e3f * 0xd93751d3b8 0x7ff9f3ba3e3f C:\Windows\System32\combase.dll+0xa3e3f * 0xd93751d3c0 0x248d858d010 * 0xd93751d3c8 0x7ff9f3bc13c0 C:\Windows\System32\combase.dll+0xc13c0 * 0xd93751d3d0 0x3db0 * 0xd93751d3d8 0xd900000027 * 0xd93751d3e0 0x7ff9f3954322 C:\Windows\System32\ole32.dll+0x104322 * 0xd93751d3e8 0x7ef468729650 * 0xd93751d3f0 0x7ef468227524 ... (maximum recursion depth reached.) %

Pandoc version? What version of pandoc are you using, on what OS? (If it's not the latest release, please try with the latest release before reporting the issue. Note that many linux distributions have old versions of pandoc in their repositories.)

% pandoc --version pandoc.exe 3.7.0.2 Features: +server +lua Scripting engine: Lua 5.4 User data directory: C:\Users\nlongo\AppData\Roaming\pandoc Copyright (C) 2006-2024 John MacFarlane. Web: https://pandoc.org This is free software; see the source for copying conditions. There is no warranty, not even for merchantability or fitness for a particular purpose. %

OS Name: Microsoft Windows 11 Enterprise OS Version: 10.0.22631 Byukd 22631