Skip to content
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

reinstall SIGFPE handler on windows #2139

Closed
quinnj opened this issue Jan 26, 2013 · 3 comments
Closed

reinstall SIGFPE handler on windows #2139

quinnj opened this issue Jan 26, 2013 · 3 comments
Assignees
Labels
kind:bug Indicates an unexpected problem or unintended behavior system:windows Affects only Windows

Comments

@quinnj
Copy link
Member

quinnj commented Jan 26, 2013

While spelunking around Julia this evening, I ran into an interesting bug.

julia> mod(10,0)
0x00A9C50A (0x0000000A 0x00000000 0x0028F958 0x6F40B42D) <unknown module>
0x00A9C4E0 (0x0402E2D0 0x0028F97C 0x00000002 0x6F411858) <unknown module>
0x6F40B42D (0x02D1CC10 0x0028F97C 0x00000002 0x00000000), jl_apply_generic() + 0x5D bytes(s)
0x6F43D684 (0x00000000 0x00000000 0x0028FA18 0x6F44706F), jl_dump_function() + 0xF64 bytes(s)
0x6F43D07B (0x0402E2B0 0x00000800 0x00000004 0x03A85A70), jl_dump_function() + 0x95B bytes(s)
0x6F4475CB (0x0404C600 0x0028FAE0 0x00000002 0x0297FEC0), jl_uncompress_ast() + 0x1AEB bytes(s)
0x6F40F08B (0x00B30000 0x00000000 0x77179B10 0x5A551101), jl_enter_handler() + 0x18B bytes(s)
0x77179B03 (0x02FBEC98 0x0028FCB4 0x00000002 0x031DA360), free() + 0x39 bytes(s)
0x6F40B42D (0x022F9700 0x0028FC94 0x03356390 0x0028FD00), jl_apply_generic() + 0x5D bytes(s)
0x6F40E797 (0x6FC13CD5 0x0346DF40 0x0299DCBC 0x0299DC5C), jl_prepare_ast() + 0x12C7 bytes(s)
0x77179B10 (0x0346DF40 0x0299DCBC 0x0299DC5C 0x0324AA40), free() + 0x46 bytes(s)
0x6FC13CD5 (0x03201800 0x00000000 0x00000000 0x00000000), LLVMDisposePassManager() + 0x11095 bytes(s)
0x6F40B42D (0x032017B0 0x00000000 0x00000000 0x7719C265), jl_apply_generic() + 0x5D bytes(s)
0x00401888 (0x00000000 0x00B376AC 0x76C9ED5E 0x00000004)
0x6F44068F (0x00000000 0x00B376AC 0x00401760 0x00B304D0), julia_trampoline() + 0x4F bytes(s)
0x0041A525 (0x00000000 0x00B376AC 0x00B32188 0x00000000), jl_clear_input() + 0x16AB5 bytes(s)
0x004013EA (0x7FFDE000 0x0028FFD4 0x7792AC69 0x7FFDE000)
0x761D8543 (0x7FFDE000 0x5AEE1C1A 0x00000000 0x00000000), BaseThreadInitThunk() + 0xE bytes(s)
0x7792AC69 (0x004014D0 0x7FFDE000 0xFFFFFFFF 0x779A1D86), RtlInitializeExceptionChain() + 0x85 bytes(s)
0x7792AC3C (0x004014D0 0x7FFDE000 0x00000000 0x78746341), RtlInitializeExceptionChain() + 0x58 bytes(s)
Unexpected FPE Error

I'm pretty sure this scares the pants off most people, so I'm wondering if this needs to be caught and return Inf, -Inf, NaN, etc.

Just thought I'd bring it up.

Cheers.

-Jacob

[pao: formatted error block]

@andreasnoack
Copy link
Member

I guess you are using Windows. mod(10,0) also crashed Julia on my Windows Server 2003 and 8.

@quinnj
Copy link
Member Author

quinnj commented Jan 26, 2013

Yes, newly upgraded Windows 8 here.

On Sat, Jan 26, 2013 at 1:20 AM, Andreas Noack Jensen <
[email protected]> wrote:

I guess you are using Windows. mod(10,0) also crashed Julia on my Windows
Server 2003 and 8.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2139#issuecomment-12732155.

@vtjnash
Copy link
Sponsor Member

vtjnash commented Feb 2, 2013

we fail to reinstall the signal handler after a SIGFPE on windows

@ghost ghost assigned vtjnash Feb 2, 2013
fredrikekre added a commit that referenced this issue Oct 19, 2020
$ git log --pretty=oneline --abbrev=commit 0314b79..fb9c7eb
fb9c7eb1db30d90f5bfade4dcea2e7c7b1e1c8e7 Reset JULIA_PROJECT environment variable during testing. (#2140)
a9a152d08aa4b874613e59376cfbc6bc61cbd4c7 Precompile: Fix and test per-project precomp suspension state retention (#2129)
e0539a9d0de08cf3e3da1e8bcb2e9f44435c5381 Delete the `bors.toml` file (#2139)
9d1b2188c11234b57790185b1d17b5b89f94b4d6 Docs: moved Julia 1.4 compat below the section (#1867)
6d2dc3fcefe160cf829fbf5664878733be64816a Print a warning when using the REPL interface in non-interactive mode. (#2076)
ac55c0ef35ac80aaef9998376887da1c1c95ee8d Add an example for the SSH-based git protocol. (#2068)
41a3b1204ee9836faf5cce5c255d311974681df6 add a progress bar to precompile process (#2128)
8da19e0f3db3f09239bcb07d9a5dc8339915d61c fixup to progress printing when downloading (#2136)
87873f8037fcd47712578dc0f39eeba9418f9376 send Pkg server value itself as a header to the Pkg server (#2134)
1698ee9377736f10081b63e4ea0997d7dee80640 sort jlls together in status printing (#1987)
88afa647445c65bf50d987f81cfbf85a380618c1 remove using latest registry version when no version in Project (#2133)
5100e0b687236bb24976b3a0dd7e7f8cd4d331bf removed unused argument (#2132)
1e480a5a3185d83abd9dbf3d343452506dd9490b show a progress bar for downloads and build (#2130)
KristofferC pushed a commit that referenced this issue Oct 20, 2020
$ git log --pretty=oneline --abbrev=commit 0314b79..fb9c7eb
fb9c7eb1db30d90f5bfade4dcea2e7c7b1e1c8e7 Reset JULIA_PROJECT environment variable during testing. (#2140)
a9a152d08aa4b874613e59376cfbc6bc61cbd4c7 Precompile: Fix and test per-project precomp suspension state retention (#2129)
e0539a9d0de08cf3e3da1e8bcb2e9f44435c5381 Delete the `bors.toml` file (#2139)
9d1b2188c11234b57790185b1d17b5b89f94b4d6 Docs: moved Julia 1.4 compat below the section (#1867)
6d2dc3fcefe160cf829fbf5664878733be64816a Print a warning when using the REPL interface in non-interactive mode. (#2076)
ac55c0ef35ac80aaef9998376887da1c1c95ee8d Add an example for the SSH-based git protocol. (#2068)
41a3b1204ee9836faf5cce5c255d311974681df6 add a progress bar to precompile process (#2128)
8da19e0f3db3f09239bcb07d9a5dc8339915d61c fixup to progress printing when downloading (#2136)
87873f8037fcd47712578dc0f39eeba9418f9376 send Pkg server value itself as a header to the Pkg server (#2134)
1698ee9377736f10081b63e4ea0997d7dee80640 sort jlls together in status printing (#1987)
88afa647445c65bf50d987f81cfbf85a380618c1 remove using latest registry version when no version in Project (#2133)
5100e0b687236bb24976b3a0dd7e7f8cd4d331bf removed unused argument (#2132)
1e480a5a3185d83abd9dbf3d343452506dd9490b show a progress bar for downloads and build (#2130)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior system:windows Affects only Windows
Projects
None yet
Development

No branches or pull requests

3 participants