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

Bug#2634: emacs hung



Package: emacs
Version: 19.30-1

I had my emacs session "go away" on me.  This was running under X
where ^G seems particularly ineffective.  [I wonder if emacs shouldn't
fork a separate process to handle input events, so that it can be
signalled with ^G?]

Anyways, normally I would have just killed the session and restarted,
but another thought occurred to me:  I attached to the session with
gdb and did a "where".  The executable is stripped, but perhaps
someone has an unstripped executable lying around -- or perhaps the
build process is deterministic enough (e.g. compiler version fixed,
libraries fixed, ...) that someone can make use of this.

(gdb) where
#0  0x8011ceb in XMapRaised ()
#1  0x80ad750 in __environ ()
#2  0x8011f30 in XMapRaised ()
#3  0x8011f30 in XMapRaised ()
#4  0x8011b05 in XMapRaised ()
#5  0x800f14f in XMapRaised ()
#6  0x800e658 in XMapRaised ()
#7  0x800e704 in XMapRaised ()
#8  0x800e658 in XMapRaised ()
#9  0x800e005 in XMapRaised ()
#10 0x803390d in echo ()
#11 0x8037a49 in echo ()
#12 0x8032d78 in echo ()
#13 0x8070ab7 in re_compile_pattern ()
#14 0x8032a09 in echo ()
#15 0x8070703 in re_compile_pattern ()
#16 0x80329cc in echo ()
#17 0x80324c7 in echo ()
#18 0x80325a5 in echo ()
#19 0x8031992 in XMapRaised ()
#20 0x8005ba4 in XMapRaised ()
(gdb)

Other random bits of information:  I had just saved the document.
This means that emacs had just executed this code fragment:

;; This is an instant web-editor upgrade for emacs.  Basically, it
;; displays every .htm* document in netscape when it's saved.  You
;; have to be running netscape already or you won't see anything.
;;
;; This only works with the unix version of netscape -- though,
;; netscape for Windows supports DLE and OLE so something along this
;; line should be possible there [expect it to be a bit more
;; complicated.]

(defun netscape-after-save-hook ()
  "display document in existing netscape session"
  (let ((f (buffer-file-name)))
    (if (string-match "[.]htm" f)
	(shell-command
	 (concat "netscape -noraise -remote 'openURL(" f ")'")))))

(setq after-save-hook 'netscape-after-save-hook)


I got the "shell command completed with no output" message before
emacs, and the document came up correctly in netscape.  Unfortunately,
I've obscured that emacs window, and I didn't catch whether the ** on
the status line had changed to --.

--
Raul



Reply to: