lua filter with http request seg faults #11359
Unanswered
titibandit
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
What happens if you run the script with My first guess would be a version problem, maybe luasocket was compiled against a different Lua version. What does |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to use a lua filter that replaces links with the result of an https request.
So I wrote a lua script that fetches the data over the internet. As a standalone Lua script, this works well. However, when passed as a lua filter, the pandoc executable segfaults.
This is the (redacted) script:
Debugging pandoc using gdb, I gather that the
tmobject in not initialized (address of 0x0) intimeout.cline 81 of the luasocket module.https://github.com/lunarmodules/luasocket/blob/e13de2013749961edaa126697f3290d3dca91823/src/timeout.c#L81
I have no clue why that would work in lua as is and not as a filter.
Thanks for any insight.
Beta Was this translation helpful? Give feedback.
All reactions