Did you ever attempt to report this upstream?  Does the bug exist in a
recent emacs-snapshot?  If so, we should probably forward this to the
Emacs maintainers rather than have it linger here.

You received this bug notification because you are a member of Desktop
Packages, which is subscribed to emacs23 in Ubuntu.

  Setting max-specpdl-size of 34295 allows segfaults with 'simple' elisp

Status in emacs23 package in Ubuntu:
Status in emacs24 package in Ubuntu:

Bug description:
  Binary package hint: emacs23

  Setting max-specpdl-size higher than 34295, and then running the following 
code results in a segfault of emacs.  I am 
  running a system of mostly 9.04 with some packages (such as this one) 
upgraded. I know it's kind of pushing emacs to the limit, but still;  this 
seems like an arbitrary limit on emacs' otherwise diety-like functionality.  
What should happen is emacs should continue to fail to execute with 
"file-truename: Variable binding depth exceeds max-specpdl-size"  as it does 
below 34295., or at the very least when setting max-specpdl-size higher than 
34295 it should warn you that you are making some kind of error if this is not 

  example code:

  (defun por (pcurrent pb numberleft)
         (if (= numberleft 0)
           (por (- (+ pcurrent pb) (* pcurrent pb)) pb (- numberleft 1))))

  (por 0 0.01 10000)

  (setq max-lisp-eval-depth 1000000)  ; this may be necessary, but doesn't 
appear to be the problem
  (setq max-specpdl-size 34295)          ; setting this lower results in 
predictable, expected behaviour - emacs refuses to run the result, citing 
max-specpdl-size not high enough.   Setting this higher (like...34296), results 
in a segfault of emacs

    Installé : 23.1+1-4ubuntu3
    Candidat : 23.1+1-4ubuntu3
   Table de version :
   *** 23.1+1-4ubuntu3 0
          100 /var/lib/dpkg/status

  ProblemType: Bug
  Architecture: amd64
  DistroRelease: Ubuntu 9.04
  Package: emacs23 23.1+1-4ubuntu3
   PATH=(custom, user)
  SourcePackage: emacs23
  Uname: Linux 2.6.28-16-generic x86_64
  UnreportableReason: Ceci n'est pas un authentique paquet Ubuntu

To manage notifications about this bug go to:

Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to