This is the mail archive of the cygwin 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: cygwin1-20040213 hoses emacs 'desktop'


On Fri, 13 Feb 2004, Thomas L Roche wrote:
>> and the xterm reports

>> bash-2.05b$ emacs --debug-init &
>> [1] 1920
>> bash-2.05b$       7 [main] emacs 1920 sync_with_child: child 
>>   1152(0x270) died before initialization with status code 0x80
>>   13072 [main] emacs 1920 sync_with_child: *** child state waiting
>      for longjmp

Igor Pechtchanski 02/13/2004 06:58:42 PM:
> The above messages might indicate that there is more than one version
> of the cygwin DLL on your system.  Instead of moving the old 
> cygwin1.dll out of the way, could you please rename it to something
> that doesn't end in .dll (e.g., cygwin1.dll-old), and, just to make
> sure, make it non-executable?

bash-2.05b$ ls -AlF cygwin*
-rwxrwxrwx+   1 Administ None      1109385 Jan 30 19:34 
cygwin1-1.5.7-1.dll*
-rwxrwxrwx+   1 Administ None      1120649 Feb 13 17:39 
cygwin1-20040213.dll*
-rwxrwxrwx+   1 tlroche  Users     1111433 Jan 19 00:45 
cygwin1-PROB_1.5.6-1.dll*
-rwxrwxrwx+   1 Administ None      1120649 Feb 13 17:39 cygwin1.dll*
bash-2.05b$ for V in "1.5.7-1" "20040213" "PROB_1.5.6-1" ; do chmod -x 
cygwin1-$V.dll; done
bash-2.05b$ for V in "1.5.7-1" "20040213" "PROB_1.5.6-1" ; do mv 
cygwin1-$V.dll cygwin1.dll.$V; done
bash-2.05b$ ls -AlF cygwin*
-rwxrwxrwx+   1 Administ None      1120649 Feb 13 17:39 cygwin1.dll*
-rw-rw-rw-+   1 Administ None      1109385 Jan 30 19:34 
cygwin1.dll.1.5.7-1
-rw-rw-rw-+   1 Administ None      1120649 Feb 13 17:39 
cygwin1.dll.20040213
-rw-rw-rw-+   1 tlroche  Users     1111433 Jan 19 00:45 
cygwin1.dll.PROB_1.5.6-1

> Also, there should be another message before the sync_with_child one
> that may show the cause of the problem.  You might try running 
> strace on the emacs invocation, 

bash-2.05b$ pushd /d/tlroche/bin # from where I usually start emacs
/d/tlroche/bin /bin /usr/src/unzip-5.50/.inst
bash-2.05b$ strace -o strace.out emacs --debug-init &
[2] 1932
bash-2.05b$ 45171312 [main] emacs 1980 sync_with_child: child 1688(0x26C) 
died before initialization with status code 0x80
45181432 [main] emacs 1980 sync_with_child: *** child state waiting for 
longjmp

> look for the above error lines in the output, and see what line
> precedes them, something like

> C:\cygwin\bin\bash.exe: *** Couldn't allocate space for child's heap
> 0x0, size 302120960, Win32 error 1455

I went to the end of strace.out and searched up for 'sync_with_child'.
~50 lines before that is a banner (?), so I include everything from
that banner to the last occurrence of 'sync_with_child'. FWIW the
'desktop' item is a 'dired' buffer for a directory on a windows share:

**********************************************
Program name: d:\ProgramFiles\Cygwin\bin\emacs.exe (1688)
App version:  1005.8, api: 0.110
DLL version:  1005.8, api: 0.110
DLL build:    20040213 14:40:41SNP
OS version:   Windows NT-5.0
Heap size:    402653184
Date/Time:    2004-02-13 20:22:59
**********************************************
  120     605 [main] emacs 1688 events_init: windows_system_directory 
'C:\WINNT\System32\', windows_system_directory_length 18
28051 45169340 [proc] emacs 1980 proc_subproc: args: 2, 0
  157 45169497 [proc] emacs 1980 proc_subproc: pid 1688[0] terminated, 
handle 0x26C, nchildren 1, nzombies 0
  106 45169603 [proc] emacs 1980 proc_subproc: zombifying [0], pid 1688, 
handle 0x26C, nchildren 1
  103 45169706 [proc] emacs 1980 proc_subproc: returning 1
   91 45169797 [proc] emacs 1980 sig_send: sendsig 0x1B0, pid 1980, signal 
20, its_me 1
  116 45169913 [sig] emacs 1980 sigpacket::process: signal 20 processing
   68 45169981 [sig] emacs 1980 _cygtls::find_tls: sig 20
   64 45170045 [sig] emacs 1980 sigpacket::process: signal 20, about to 
call 0x201216FC
   77 45170122 [sig] emacs 1980 proc_subproc: args: 3, 1
   63 45170185 [sig] emacs 1980 proc_subproc: clear waiting threads
   70 45170255 [sig] emacs 1980 proc_subproc: finished clearing
   62 45170317 [sig] emacs 1980 proc_subproc: returning 1
   70 45170387 [sig] emacs 1980 _cygtls::interrupt_setup: armed 
signal_arrived 0xEC, sig 20, res 1
   62 45170449 [sig] emacs 1980 setup_handler: interrupted known cygwin 
routine
   70 45170519 [sig] emacs 1980 setup_handler: signal 20 delivered
   79 45170598 [sig] emacs 1980 sigpacket::process: returning 1
   80 45170678 [sig] emacs 1980 proc_subproc: args: 3, 0
   62 45170740 [sig] emacs 1980 proc_subproc: looking for processes to 
reap
   70 45170810 [sig] emacs 1980 proc_subproc: finished processing 
terminated/stopped child
   61 45170871 [sig] emacs 1980 proc_subproc: returning 1
  121 45170992 [proc] emacs 1980 sig_send: Not waiting for sigcomplete. 
its_me 1 signal 20
   92 45171084 [proc] emacs 1980 sig_send: returning 0x0 from sending 
signal 20
  105 45171189 [proc] emacs 1980 wait_subproc: looping
  123 45171312 [main] emacs 1980 sync_with_child: child 1688(0x26C) died 
before initialization with status code 0x80
14439 45185751 [win] emacs 1980 wndproc 275 WM_TIMER 1 0
  175 45185926 [win] emacs 1980 kill0: kill (1980, 14)
  254 45186180 [win] emacs 1980 sig_send: sendsig 0x1B0, pid 1980, signal 
14, its_me 1
   90 45186270 [win] emacs 1980 sig_send: wakeup 0x278
  102 45186372 [sig] emacs 1980 sigpacket::process: signal 14 processing
   74 45186446 [sig] emacs 1980 _cygtls::find_tls: sig 14
   75 45186521 [sig] emacs 1980 sigpacket::process: signal 14, about to 
call 0x20125D64
   63 45186584 [sig] emacs 1980 setup_handler: trying to send sig 14 but 
signal 20 already armed
   72 45186656 [sig] emacs 1980 setup_handler: signal 14 not delivered
   71 45186727 [sig] emacs 1980 sigpacket::process: returning 0
   74 45186801 [sig] emacs 1980 wait_sig: signalled 0x278
   94 45186895 [win] emacs 1980 sig_send: Waiting for pack.wakeup 0x278
   83 45186978 [win] emacs 1980 sig_send: returning 0x0 from sending 
signal 14
   74 45187052 [win] emacs 1980 kill_worker: 0 = kill_worker (1980, 14), 
process_state 0x41
-5620 45181432 [main] emacs 1980 sync_with_child: *** child state waiting 
for longjmp
23075 45204507 [main] emacs 1980 sync_with_child: Child died before 
subproc_ready signalled

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]