Frequently, about 40% of the time a user enters the command, emacs -rv file.c emacs will load, but hang while loading syntax. Closing it is only accomplished by Crtl-C. It also happens laoding it into backgound. Have to kill -9 the pid to rid the app. emacs version 21.4-r1 results from and strace -p chris 21784 7933 3 20:58 pts/3 00:00:00 emacs -rv time_test.c #cat emacs-strace-7933.log waitpid(-1, <unfinished ...> #cat emacs-strace-21784 --- SIGALRM (Alarm clock) @ 0 (0) --- gettimeofday({1124931864, 992446}, NULL) = 0 gettimeofday({1124931864, 992512}, NULL) = 0 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 1000}}, NULL) = 0 sigreturn() = ? (mask now [IO]) futex(0xb7abc820, FUTEX_WAIT, 2, NULL) = -1 EINTR (Interrupted system call) --- SIGALRM (Alarm clock) @ 0 (0) --- gettimeofday({1124931864, 995863}, NULL) = 0 gettimeofday({1124931864, 995916}, NULL) = 0 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 1000}}, NULL) = 0 sigreturn() = ? (mask now [IO]) futex(0xb7abc820, FUTEX_WAIT, 2, NULL) = -1 EINTR (Interrupted system call) --- SIGALRM (Alarm clock) @ 0 (0) --- gettimeofday({1124931865, 373}, NULL) = 0 gettimeofday({1124931865, 427}, NULL) = 0 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 1000}}, NULL) = 0 sigreturn() = ? (mask now [IO]) futex(0xb7abc820, FUTEX_WAIT, 2, NULL) = -1 EINTR (Interrupted system call) --- SIGALRM (Alarm clock) @ 0 (0) --- gettimeofday({1124931865, 4168}, NULL) = 0 gettimeofday({1124931865, 4256}, NULL) = 0 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 1000}}, NULL) = 0 sigreturn() = ? (mask now [IO]) futex(0xb7abc820, FUTEX_WAIT, 2, NULL) = -1 EINTR (Interrupted system call) ... and repeats on and on and on until my hard drive is full :D Reproducible: Sometimes Steps to Reproduce: 1. emacs -rv file.c 2. 3. Actual Results: Emacs window loads, but hangs. Expected Results: Emacs should load and highlight syntax. my ~/.emacs add-to-list 'auto-mode-alist '("\\.conf\\'" . sh-mode)) (defun ebuild-mode () (shell-script-mode) (sh-set-shell "bash") (make-local-variable 'tab-width) (setq tab-width 4)) (setq auto-mode-alist (cons '("\\.ebuild$" . ebuild-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.eclass$" . ebuild-mode) auto-mode-alist)) (global-font-lock-mode 1) dsotm MPlayer-1.0pre7 # emerge --info Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686) ================================================================= System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac acpi alsa apm arts avi bash-completion berkdb bitmap-fonts browserplugin cdr crypt cscope cups curl divx4linux dvd dvdr eds emacs emboss encode esd fam fftw foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 java javascript jpeg libg++ libwww mad mikmod mjpeg mmx motif mozilla mp3 mpeg msn mysql ncurses netboot nis nntp nptl nsplugin nvidia ogg oggvorbis opengl oss pam pcmcia pdflib perl png posix python qt quicktime readline real sdl smp spell sse sse2 ssl svga tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts vcd verbose vorbis wifi win32codecs wxwindows xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS dsotm MPlayer-1.0pre7 # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 3.20GHz stepping : 9 cpu MHz : 3192.180 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr bogomips : 6307.84 processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 3.20GHz stepping : 9 cpu MHz : 3192.180 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr bogomips : 6373.37
Typo in .emacs, there is an opening bracket (add-to-list 'auto-mode-alist '("\\.conf\\'" . sh-mode))
typo in title, should learn to type. btw - previous comment i meant i pasted it into bugzilla without the opening bracket incase theres confusion. the error still occures.
Is this a X11 emacs started from the command line in gnome-terminal under XFCE, or is it a non-X11 emacs?
The former. This is an X11 emacs started from a gnome-terminal in XFCE. I'm not sure if the behavior is the same in a non-X11 emacs although I can do some tests. Since its not reproducable, I suspect a race condition of some kind. Might be X11 related.
OK I dont have enough to go on with this bug, so I'll resolve it was CANTFIX for now, If you find some more clues just append them to this bug report and we can revisit the problem.