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

Use GNU Pth and sigaltstack() for signal handling #13076

Closed
jdemeyer opened this issue Jun 1, 2012 · 12 comments
Closed

Use GNU Pth and sigaltstack() for signal handling #13076

jdemeyer opened this issue Jun 1, 2012 · 12 comments

Comments

@jdemeyer
Copy link

jdemeyer commented Jun 1, 2012

Currently, the Sage signal handling code does not handle stack overflows gracefully. Fix this using sigaltstack().

In fact, change the whole design of the signal handling to use GNU Portable Threads which is quite natural once you see it. It immediately also gives a much better solution to #12873.

Apply attachment: 13076_sig_pth.patch

Install the new spkg http://boxen.math.washington.edu/home/jdemeyer/spkg/gnu_pth-2.0.7.p0.spkg

Depends on #12873

Component: c_lib

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/13076

@jdemeyer jdemeyer added this to the sage-5.11 milestone Jun 1, 2012
@jdemeyer jdemeyer self-assigned this Jun 1, 2012
@jdemeyer

This comment has been minimized.

@jdemeyer jdemeyer changed the title Use sigaltstack() for signal handling Use sigaltstack()/setcontext() for signal handling Jun 3, 2012
@jdemeyer
Copy link
Author

jdemeyer commented Jun 3, 2012

Dependencies: #12873

@jdemeyer
Copy link
Author

jdemeyer commented Jun 3, 2012

Author: Jeroen Demeyer

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

jdemeyer commented Jun 3, 2012

comment:4

Not very well tested yet, but seems to work on Linux and OS X 10.6.

@jdemeyer
Copy link
Author

jdemeyer commented Jun 4, 2012

comment:5

Attachment: 13076_sigaltstack.patch.gz

Never mind, this is totally not supported on OS X 10.4.

@jdemeyer

This comment has been minimized.

@jdemeyer jdemeyer changed the title Use sigaltstack()/setcontext() for signal handling Use GNU Pth and sigaltstack() Jun 6, 2012
@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

Attachment: 13076_sig_pth.patch.gz

@jdemeyer jdemeyer changed the title Use GNU Pth and sigaltstack() Use GNU Pth and sigaltstack() for signal handling Aug 2, 2012
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@jdemeyer
Copy link
Author

Changed author from Jeroen Demeyer to none

@jdemeyer
Copy link
Author

comment:14

Cleaning old tickets...

@jdemeyer
Copy link
Author

Reviewer: Jeroen Demeyer

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

No branches or pull requests

1 participant