chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #1232: signal handling smashes memory management


From: Chicken Trac
Subject: [Chicken-janitors] #1232: signal handling smashes memory management
Date: Sat, 12 Dec 2015 13:14:43 -0000

#1232: signal handling smashes memory management
--------------------------------------+---------------------
 Reporter:  joergw                    |      Owner:
     Type:  defect                    |     Status:  new
 Priority:  critical                  |  Milestone:  someday
Component:  core libraries            |    Version:  4.10.x
 Keywords:  signal handling, runtime  |
--------------------------------------+---------------------
 The signal handler stores a references relative (1000 words off) to the
 stack pointer of in effect during signal handlers invocation.

 This may result in an overflow (if the stack pointer happens to be close
 to the border of the virtual address space.

 It does (reproducible) set C_stack_limit to some point within the stack of
 unrelated pthreads.  And, if many signals are dispatched, does overwrite
 saved_stack_limit.

 See also http://lists.nongnu.org/archive/html/chicken-
 hackers/2015-12/msg00006.html

 Patch attached.

--
Ticket URL: <http://bugs.call-cc.org/ticket/1232>
CHICKEN Scheme <http://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]