-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
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.
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.)
I’m using the downloaded static ARM build of Pandoc 3.9 under Termux on Android, which I have been doing for well over a year without anything like this happening. It did not happen with 3.8.2.1
The issue, which is very hard to pin down, is that 3.9 sometimes hangs and I have to kill the process.
The problem is that it doesn’t happen every time I run with the same filter(s), inputs and commandline, but this is what I have been able to determine:
I used a Perl script to run many times with a timeout.
-
It timed out on average on 3 out of 20 runs.
-
Running the command through the shell (zsh) or having Perl bypass the shell makes no difference.
-
I also ran with a filter with diagnostic statements.
- On runs which don’t time out all statements are printed to stdout and pandoc’s output is as expected.
- On runs which time out no Lua print statements are visible and pandoc produces no output.
-
I thought it only happens when running Lua filters/scripts but that turns out not to be the case.
-
It happens with both markdown and latex readers and writers.
-
Successful runs all finish in about 0.06 seconds.
-
Unsuccessful runs always hit the timeout. I have tried with 5s, 8s and 60s timeouts. I don’t think allowing a longer timeout would make any difference and I’m afraid that my device will crash.