## #78 php-mode can crash emacs 23.1

php-mode-1.5.0
closed
5
2010-01-04
2009-12-22
Anonymous
No

PHP-mode-1.5.0's been crashing emacs 23.1. I can trigger this behaviour by entering PHP-mode, then typing
function test(\$one,

at which point the wrist-watch cursor shows up, and emacs is dead.

I submitted a bug to emacs (5258). See http://lists.gnu.org/archive/html/bug-gnu-emacs/2009-12/msg00613.html for a very long abridged backtrace. It looks like the garbage-collector gets stuck in a loop. I'm not familiar with debugging emacs, so I can't suggest what line of elisp is causing the fail. Previous versions of emacs are not affected.

## Discussion

• Anonymous
2010-01-04

Hi,
<ctrl>-g'd out of the lock, and got the following back-trace:
re-search-backward("\\(?:^\\s-*function\\s-+&?\\s-*\\(\\(\\sw\\|\\s_\\)+\\)\\s-*\\)\\s(" nil move 1)
beginning-of-defun-raw(nil)
beginning-of-defun()
c-get-fallback-start-pos(19)
c-parse-state()
c-electric-semi&comma(nil)
call-interactively(c-electric-semi&comma nil nil)

Apparently this has been fixed in cc-mode on cvs.

• Anonymous
2010-01-04

• status: open --> closed