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

Segmentation fault when doing minkowski() with a circle with radius=0 #3527

Closed
quirxi opened this issue Dec 11, 2020 · 1 comment
Closed

Comments

@quirxi
Copy link

quirxi commented Dec 11, 2020

Whenever this code is compiled/rendered it produces a segmentation fault reliably:

`
fiRad=0.0;
basePoints =[[0,0],[100,0],[0,100]];
basePaths =[];

minkowski()
{
circle(r=fiRad);
offset(-fiRad)
polygon(basePoints,basePaths,18);
}
`

dmesg gives out following error:

[43732.416499] AppRun.wrapped[26927]: segfault at 18 ip 00000000005493d8 sp 00007ffe8adb4360 error 4 in openscad[400000+726000]
[43732.416515] Code: 00 00 41 57 41 56 41 55 41 54 55 53 48 89 fb 48 83 ec 48 48 c7 07 00 00 00 00 48 c7 47 08 00 00 00 00 48 c7 47 10 00 00 00 00 <4c> 8b 6e 18 48 8b 6e 10 64 48 8b 04 25 28 00 00 00 48 89 44 24 38

When I set fiRad=0.1 everything works as expected.

OpenSCAD version 2020.12.08.ai6411 (git 1896c18)
Linux 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@t-paul t-paul added this to To do (get into master) in 2021.01 via automation Dec 11, 2020
@t-paul t-paul moved this from To do (get into master) to Done in 2021.01 Dec 11, 2020
@t-paul
Copy link
Member

t-paul commented Dec 18, 2020

Fixed via #3528.

@t-paul t-paul closed this as completed Dec 18, 2020
2021.01 automation moved this from Done to Ready (pick to branch pending) Dec 18, 2020
@t-paul t-paul moved this from Ready (pick to branch pending) to Done in 2021.01 Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
2021.01
  
Done-RC1-to-RC3
Development

No branches or pull requests

2 participants