-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pandoc -h segmentation fault on windows 7 #4283
Comments
maybe but pandoc --version is fine. |
I'm going to try building with -fexternal-interpreter since
some say that helps with this problem.
+++ stepht [Jan 20 18 17:27 ]:
… maybe but pandoc --version is fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References
1. #4283 (comment)
2. https://github.com/notifications/unsubscribe-auth/AAAL5DyL89ocQFNA-CZTvbTZIfW6qS5jks5tMiHlgaJpZM4Rlf2s
|
@stepht Could you try the most recent build, available here? |
I have just tried the build but the exact same problem persists with -h. sorry |
@stepht can you post exact output please? |
FWIW, latest appveyor build is working (only tested the |
Sorry for the delay. I investigated a bit. On mintty (both cyg32 and cyg64) pandoc -h segfaults but gives the same full output as inside conemu64: % stephan@armen (/c/xopt/pt/pandoc-windows-i386) % Finally on normal cmd console, pandoc -h gives the full output, than hangs about two seconds I also used the Listsdlls program from sysinternals to check dll loading |
Ok, reading @stepht I should add that I tested it from conemu also (and it worked). EDIT (after testing
My box is also a spanish w7 like stepht 's Pandoc under test is from appveyor four days ago (2.0.1 works fine) |
Just reporting that I have got the exact same issue on my Win7-Machine. So far I have tested Pandoc versions 2.1.1 (segfaults) and 2.0.1.1 (works). This also causes pypandoc to fail to install, since it sees a non-zero exit code when getting the list of supported formats. |
@ataulien could you clarify what pandoc call is segfaulting for you? So far (AFAIK) we had only identified |
It seems to be this invocation of pandoc, which is causing issues: https://github.com/bebraw/pypandoc/blob/master/pypandoc/__init__.py#L347 p = subprocess.Popen(
[__pandoc_path, '--list-output-formats'], # <--------- This is passed to the pandoc-process
stdin=subprocess.PIPE,
stderr=subprocess.PIPE,
stdout=subprocess.PIPE)
comm = p.communicate()
out = comm[0].decode().splitlines(False)
if p.returncode != 0: # <------ returncode is not 0, this makes it check for an older version, which obviously fails and causes the setup to break
# try the old version and see if that returns something
return get_pandoc_formats_pre_1_18() As seen from the sourcecode, the Pandoc also crashes if you give it a garbage argument, like However, using Pandoc like |
Ok, after a quick test, it seems that all pandoc (v > 2.0.1) invocations with |
It would be helpful if each person reporting could list more systematically:
(a) which commands give segfaults (just --list-*, also --help, --version? what about conversions, does it matter if you use -s?)
(b) is this consistent or does it vary, e.g. across machines or with different versions of pandoc?
|
Trying to find the common denominator here. So far we have two reports of Is it something with that build or can you guys reproduce on other versions of Windows 7? |
@mb21 I'm on a 64-bit system. I'm unfortunately not able to test other windows versions as I'm on a work computer. |
I can also confirm that all --list-* parameters are crashing (given one at a time). Their usual output is still printed before the crash. EDIT: Running from cmd, getting the windows dialogue saying Pandoc.exe has stopped working. Same commands in a Cygwin bash give Segmentation fault instead. |
Additional observations (don't know if relevant): |
If you can build pandoc from source on the affected system, it would also be interesting to see whether that would fix it (then the problem would only be in our provided windows binary). |
@mb21 I'm trying that now. Ran into some download issues with local proxies at first but it's compiling now. Will let you know the results soon! |
After running stack install --test I got the below output. Can't find any pandoc.exe produced. Please guide me if there are any logs or more details I can provide you with :)
|
can you try |
Compiled successfully with stack install, and the problem seems to be gone! |
That's great to know! The problem is then somewhere in our appveyor build... not sure we can change those to work for Windows 7 without breaking others things though... @jgm? Either way, building from source seems to be a workaround for those of you on Windows 7. |
Let's see if this last change helps, using an earlier version of VS. |
Just for the log, no change for me with 2.1.3, still crashing. |
2.1.3 also crashes for me: cygwin, win7 64bit, mintty or cmd (works fine in conemu).
It crashes on commands that spit out internal info: |
Good news, the 2.2 x64 build works for me again under Windows 7 x64. However, the i386 build still fails in the same way. |
That's useful information. Perhaps everyone who is having this
problem can fix it by using the 64 bit build?
RobertZenz <[email protected]> writes:
… Good news, the 2.2 x64 build works for me again under Windows 7 x64. However, the i386 build still fails in the same way.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#4283 (comment)
|
Hi, I can confirm that on my Win7 machine the crash disappeared after installing "pandoc-2.2-windows-x86_64.msi". Many thanks for the fix. |
v2.2 64bit is working for me also. |
pandoc 2.2.1 i386 build on 32bit Win7 (up-to-date): |
@GoLangsam - are you on a 32 bit or 64 bit machine? |
@jgm - good ol' 32bit it is |
Faced the same issue on pandoc 2.2.3.2 on Windows, 32bit. |
Could be related to https://ghc.haskell.org/trac/ghc/ticket/15154#no1 |
Nehal J Wani <[email protected]> writes:
Could be related to https://ghc.haskell.org/trac/ghc/ticket/15154#no1
Possibly so! (The clue about stack.exe --help was
very useful, thanks.)
Note that we build the Windows binary with ghc 8.2.2.
(stackage lts-11)
I was not able to get the build working with ghc 8.4.3
(stack lts-12), but it would be worth trying again if
it could fix this issue.
I've added some lts-12 builds to the appveyor matrix
to start testing...
|
Could someone try the 32-bit build here to see if the issue is still there? I've made some improvements to the build process. We're still using ghc 8.2.2, though, for the 32-bit builds, because of segfaults building with 8.4.3. |
I'd really like to figure out whether this issue has been resolved. Can any of you who previously got segfaults with the 32-bit windows build try out the package linked in my last comment? |
Hi @jgm, I didn't have problems with the 32-bit windows build, since I was using the 64bit one, but I just tried the 32-bit windows build you provided (zip) on my machine, and got a segfault from cmd. I also fired up a Win7-32bit VM to test it on a 32bit system and it also segfaults. Sorry. Hopefully someone else will have better results. Edited: Just to make sure the failure was not related to using the zip pack, I also tested the latest appveyor 64bit version (zip) on and it works. |
@agusmba uh, segfaults on which commands? |
@mb21 sorry I didn't specify, but I was referring only to the |
Sorry, I was traveling. I tried the new binary. Still segfaults on |
OK, thanks for testing. It may be that we need to
build on ghc 8.4.3, but currently this is blocked by
commercialhaskell/stackage#3385
This is supposed to be fixed in 8.6. We could try
building with 8.0, or building with cabal, to see
if we get better results.
|
OK, I've now got pandoc building on appveyor with ghc 8.6.1.1. Can one of you try the latest 32-bit windows binary to see if the segfault issue has been fixed? |
Just checked, doesn't seem to segfault now. All good! |
Excellent! That makes sense; the segfault issue is mentioned in the ghc 8.6 changelog, so I expected this would fix it. |
@jgm Would you be uploading the latest artifacts in the release section for 2.3 or those will be part of the next release? |
It will be in the next release.
Nehal J Wani <[email protected]> writes:
… @jgm Would you be uploading the latest artifacts in the release section for 2.3 or those will be part of the next release?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#4283 (comment)
|
segv for pandoc -h occurs on both pandoc 2.1.1 and 2.0.6 on windows 7
note that pandoc seems to work fine only -h (--help) is affected
The text was updated successfully, but these errors were encountered: