This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Cygwin Emacs-X uses 99% of cpu


I have the same problem. Here is strace output (the part I found interesting
:)):

  139 22504711 [main] emacs 2192 mount_info::conv_to_win32_path: src_path
/home/pavel, dst C:\cygwin\home\pavel, flags 0xA, rc 0
  482 22505193 [main] emacs 2192 symlink_info::check: not a symlink
  177 22505370 [main] emacs 2192 symlink_info::check: 0 = symlink.check
(C:\cygwin\home\pavel, 0x22E318) (0xA)
  151 22505521 [main] emacs 2192 path_conv::check: root_dir(C:\),
this->path(C:\cygwin\home\pavel\.Xdefaults), set_has_acls(8)
  218 22505739 [main] emacs 2192 dtable::build_fhandler: fd 6, fh 0x615D0A30
  149 22505888 [main] emacs 2192 fhandler_base::open:
(C:\cygwin\home\pavel\.Xdefaults, 0x100000) query_open 0
  533 22506421 [main] emacs 2192 fhandler_base::open: 0xFFFFFFFF =
CreateFile (C:\cygwin\home\pavel\.Xdefaults, 0x80000000, 0x7, 0x22E758, 0x3,
0x2000080, 0)
  220 22506641 [main] emacs 2192 seterrno_from_win_error:
/netrel/src/cygwin-1.3.15-2/winsup/cygwin/fhandler.cc:457 windows error 2
  148 22506789 [main] emacs 2192 geterrno_from_win_error: windows error 2 ==
errno 2
  158 22506947 [main] emacs 2192 fhandler_base::open: 0 =
fhandler_base::open (C:\cygwin\home\pavel\.Xdefaults, 0x100000)
  144 22507091 [main] emacs 2192 fhandler_disk_file::open: 0 =
fhandler_disk_file::open (C:\cygwin\home\pavel\.Xdefaults, 0x0)
  150 22507241 [main] emacs 2192 open: -1 = open (/home/pavel/.Xdefaults,
0x0)
 2175 22509416 [win] emacs 2192 wndproc 275 WM_TIMER 1 0
  214 22509630 [win] emacs 2192 kill: kill (2192, 14)
  138 22509768 [win] emacs 2192 sig_send: pid 2192, signal 14, its_me 1


After this it repeats the follwing until I have chance to kill emacs:

141 22509909 [sig] emacs 2192 wait_sig: awake
  219 22510128 [sig] emacs 2192 wait_sig: processing signal 14
  106 22510234 [sig] emacs 2192 wait_sig: Got signal 14
  121 22510355 [sig] emacs 2192 sig_handle: signal 14
  108 22510463 [sig] emacs 2192 sig_handle: signal 14, about to call
0x201240A4
  125 22510588 [sig] emacs 2192 setup_handler: suspending mainthread
  187 22510775 [win] emacs 2192 sig_send: Waiting for thiscomplete 0xB4
  210 22510985 [sig] emacs 2192 interruptible: pc 0x77E9E8BB, h 0x77E80000,
interruptible 1, testvalid 1
  180 22511165 [sig] emacs 2192 interruptible: pc 0x77E9E8BB, h 0x77E80000,
interruptible 0, testvalid 0
  131 22511296 [sig] emacs 2192 setup_handler: couldn't send signal 14
  112 22511408 [sig] emacs 2192 setup_handler: ResumeThread returned 1
  117 22511525 [sig] emacs 2192 setup_handler: returning 0
  103 22511628 [sig] emacs 2192 sig_handle: returning 0
  121 22511749 [sig] emacs 2192 wait_sig: looping

Total file size is about 50Mb (could not kill it earlier) and repeating part
is about 70% of the file. Looks like emacs gets flooded by timer signals.

> -----Original Message-----
> From: Igor Pechtchanski [mailto:pechtcha@cs.nyu.edu]
> Sent: Wed, November 13, 2002 2:41 AM
> To: Huang.
> Cc: cygwin@cygwin.com
> Subject: Re: Cygwin Emacs-X uses 99% of cpu
> 
> 
> On Wed, 13 Nov 2002, Huang. wrote:
> 
> > "J. Scott Edwards" <sedwards@xmission.com> wrote:
> > > [snip]
> >
> > Oh! I have this problem too.
> 
> For the archives:
> This is an example of a completely useless message.  It doesn't add
> anything at all to the discussion, and takes up list bandwidth.
> 
> Attaching the output of cygcheck would have made it marginally useful
> (i.e., reporting that the problem can be reproduced on a particular
> configuration).  A good contribution would have been to run 
> emacs under
> strace, for example, and provide the output (hopefully 
> bzipped, preferably
> with repeated patterns removed, ideally with some analysis attached).
> Another would be to run emacs under gdb, break execution when 
> in 100% cpu
> mode, and post the stack trace.
> 	Igor
> -- 
> 				http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_		pechtcha@cs.nyu.edu
> ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
>      |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
>     '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "Water molecules expand as they grow warmer" (C) Popular 
> Science, Oct'02, p.51
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]