Package: guile-1.6
Version: 1.6.8-10
Severity: normal

While playing with guile on my system, I discovered a weird anomaly
which I could not reproduce on other systems running guile.  If I
install a signal handler for SIGALRM, it won't get called while guile is
making an I/O system call.  To demonstrate:

[atehwa@karaihin ~/proj/psyk]$ guile
guile> (alarm 2)
0
guile> Herätyskello
[atehwa@karaihin ~/proj/psyk]$ guile
guile> (sigaction SIGALRM (lambda (x) (display "now!") (newline)))
(0 . 335544320)
guile> (alarm 2)
0
guile> now a lot more than two seconds has passed, while I wrote this
now!
<unnamed port>: In expression now:
<unnamed port>: Unbound variable: now
ABORT: (unbound-variable)
[...]

As you can see, the signal handler gets called as soon as guile returns
from read(2), already before calling (eval).

I can't get to understand what causes this on my system, because another
Debian system with exact same versions of guile-1.6, libc6 and
libguile-ltdl-1 seems to work fine, and interrupts the read(2) call with
the signal handler.

Panu

-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages guile-1.6 depends on:
ii  guile-1.6-libs                1.6.8-10   Main Guile libraries
ii  libc6                         2.11.3-3   Embedded GNU C Library: Shared lib
ii  libguile-ltdl-1               1.6.8-10   Guile's patched version of libtool

guile-1.6 recommends no packages.

Versions of packages guile-1.6 suggests:
ii  guile-1.6-doc                 1.6.8-10   Reference and tutorial documentati

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to