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

StackOverflow when using DecFP on 32-bit Linux #40

Closed
omus opened this issue May 12, 2017 · 6 comments
Closed

StackOverflow when using DecFP on 32-bit Linux #40

omus opened this issue May 12, 2017 · 6 comments

Comments

@omus
Copy link

omus commented May 12, 2017

On Ubuntu 16.04 32-bit:

julia> using DecFP
ERROR: LoadError: StackOverflowError:
while loading /home/omus/.julia/v0.5/DecFP/src/DecFP.jl, in expression starting on line 72
@stevengj
Copy link
Member

That's odd, it works on 32-bit Windows, and as far as I can tell we never use Int or UInt, only IntXX and UIntXX.

Can you try deleting lines from DecFP.jl until the error goes away?

@omus
Copy link
Author

omus commented May 12, 2017

I can get past the loop on line 72 if I comment out this section and this section

@stevengj
Copy link
Member

Weird... makes me think it is a Julia bug. Maybe try to do the opposite: construct a minimal test case that exhibits the problem. (For example, does it occur just for w==128?)

@quinnj
Copy link
Collaborator

quinnj commented Jun 25, 2020

Not sure if it's exactly the same issue, but on Julia 1.4.2 32-bit linux, I'm seeing:

julia> using DecFP
[ Info: Precompiling DecFP [55939f99-70c6-5e9b-8bb0-5071ed7d61fd]

signal (11): Segmentation fault
in expression starting at /root/.julia/packages/DecFP/MVfs9/src/DecFP.jl:281
__bid32_from_string at /root/.julia/artifacts/009db6e3ba7f88193b31b5b2a69da0f8d14edc31/lib/libbid.so (unknown line)
_parse at /root/.julia/packages/DecFP/MVfs9/src/DecFP.jl:290
unknown function (ip: 0xdc80f489)

@stevengj
Copy link
Member

Should be fixed now by #91.

@omus
Copy link
Author

omus commented Mar 29, 2022

I can also confirm that #91 fixes the stack overflow issue on Ubuntu 16.04 32-bit using Julia 1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants