scm crashed with SIGSEGV in product()

Bug #240692 reported by Danilo Piazzalunga
12
Affects Status Importance Assigned to Milestone
SLIB
Invalid
Undecided
Unassigned
scm (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: scm

Running the following code (taken from http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-10.html#%_thm_1.6), which results in an infinite recursion, makes the SCM interpreter seggault. Other Scheme interpreters, such as Guile and MIT-Scheme, will only abort with a "stack overflow" or "maximum recursion depth exceeded" error.

Using scm 5e3-6.1 on Ubuntu 8.04

(define (improve guess x)
  (average guess (/ x guess)))

(define (average x y)
  (/ (+ x y) 2))

(define (good-enough? guess x)
  (< (abs (- (square guess) x)) 0.001))

(define (sqrt x)
  (sqrt-iter 1.0 x))

(define (new-if predicate then-clause else-clause)
  (cond (predicate then-clause)
        (else else-clause)))

(define (sqrt-iter guess x)
  (new-if (good-enough? guess x)
          guess
          (sqrt-iter (improve guess x)
                     x)))

(define (square x) (* x x))

(sqrt 3)

ProblemType: Crash
Architecture: i386
Date: Tue Jun 17 16:17:55 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/scm
Package: scm 5e3-6.1
PackageArchitecture: i386
ProcCmdline: scm
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=it_IT.UTF-8
Signal: 11
SourcePackage: scm
StacktraceTop:
 product ()
 ?? ()
 ?? ()
 ?? ()
 ?? ()
Title: scm crashed with SIGSEGV in product()
Uname: Linux 2.6.24-19-generic i686
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin plugdev scanner tape video

Revision history for this message
Danilo Piazzalunga (danilopiazza) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:product ()
?? ()
?? ()
?? ()
?? ()

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

 Thank you for taking the time to report this bug and helping to make Ubuntu better.

However, processing it in order to get sufficient information for the developers failed (it does not generate an useful symbolic stack trace). This might be caused by some outdated packages which were installed on your system at the time of the report. Please upgrade your system to the latest package versions. If you still encounter the crash, please file a new report.

Thank you for your understanding, and sorry for the inconvenience!

Changed in scm:
status: New → Invalid
Revision history for this message
Danilo Piazzalunga (danilopiazza) wrote :

Thank you for taking time to supervise this.

I filed a new report as bug #334583. I hope this time the apport retracing service will help.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Thank you, Danilo, for responding so quickly. Unfortunately, the new Trace is also useless. The issue you reported is reproducable for me (following the steps you provided) and I tried to obtain a Backtrace in the hope to get some more information, but my Backtrace was just as meaningsless as the Traces within your reports.

The problem could be that there are no debugging symbols for scm which could yield information about the crash, so we have to wait and see if someone else can give us more information. Therefore I am going to close the new bug you opened, since this report contains the steps to reproduce the bug.

Thanks again.

Changed in scm:
status: Invalid → Incomplete
Revision history for this message
dino99 (9d9) wrote :

That version has died long ago; no more supported

Changed in scm (Ubuntu):
status: Incomplete → Invalid
Changed in slib:
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.