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]

Signal handling problem in 1.5.7 ? - Was: Re: Program randomly hangs after upgrading to cygwin 1.5.7


Volker Quetschke wrote:
This problem occured after upgrading from cygwin 1.5.5 to 1.5.7(second version). During this I update all other installed cygwin packages to
the current versions. (cygcheck -s -v -r is attached)


The problem is that dmake, the make utility for building OpenOffice.org
seems to hang after a while. With a while I mean after several hours,
but in different places. (As far as one can say after two tries)
For each project are new dmake processes started, so I cannot run dmake
in gdb, I have to attach to the one that fails.
So, attaching with gdb fails, but ...

Oh, I just realized that a CTRL-Z and a fg in the window with the hung
OOo build "revives" the stalled dmake, but unfortunately it stops and
exits. This also revives the hung strace windows, but there was too much
output for my scroll buffer :-( I didn't see the where it was hanging.
Next time I'll catch the output.

I got a longer strace. These are only the first lines, I attached the complete output as dmake_hung.strace.gz:

6 6 [unknown (0x730)] dmake 1800 _threadinfo::remove: wait 0x0
182 188 [unknown (0x730)] dmake 1800 _threadinfo::remove: removed 0x89F014 element 1


<Here I pressed CTRL-Z and then get the process back with fg>

34015362 34015550 [sig] dmake 1800 sig_handle: signal 18 processing
1709 34017259 [sig] dmake 1800 sig_handle: signal 18, about to call 0x610252C0
99 34017358 [sig] dmake 1800 proc_subproc: args: 3, 1
90 34017448 [sig] dmake 1800 proc_subproc: clear waiting threads
71 34017519 [sig] dmake 1800 checkstate: nchildren 1, nzombies 0
67 34017586 [sig] dmake 1800 checkstate: checking alive children
64 34017650 [sig] dmake 1800 stopped_or_terminated: considering pid 1772
246 34017896 [sig] dmake 1800 checkstate: returning -1
55 34017951 [sig] dmake 1800 proc_subproc: waiting thread found no children
51 34018002 [sig] dmake 1800 proc_subproc: finished clearing
49 34018051 [sig] dmake 1800 proc_subproc: returning 1
49 34018100 [sig] dmake 1800 _threadinfo::interrupt_setup: armed signal_arrived 0x358, sig 18, res 1
48 34018148 [sig] dmake 1800 setup_handler: interrupted known cygwin routine
199 34018347 [main] dmake 1800 wait4: 0 = WaitForSingleObject (...)
90 34018437 [main] dmake 1800 reset_signal_arrived: reset signal_arrived
50 34018487 [main] dmake 1800 set_signal_mask: oldmask 0x0, newmask 0x20000, mask_bits 0x0
291 34018778 [main] dmake 1800 set_signal_mask: not calling sig_dispatch_pending
135 34018913 [main] dmake 1800 sig_send: sendsig 0x2E8, pid 1560, signal 20, its_me 0
84 34018997 [main] dmake 1800 sig_send: Not waiting for sigcomplete. its_me 0 signal 20
181 34019178 [main] dmake 1800 sig_send: returning 0x0 from sending signal 20
73 34019251 [main] dmake 1800 sig_handle_tty_stop: process 1800 stopped by signal 18, myself->ppid_handle 0x3F4
-1058 34018193 [sig] dmake 1800 setup_handler: signal 18 delivered
6520 34024713 [sig] dmake 1800 sig_handle: returning 1
66 34024779 [sig] dmake 1800 sig_handle: signal 20 blocked
50 34024829 [sig] dmake 1800 sig_handle: returning -1
50 34024879 [sig] dmake 1800 proc_subproc: args: 3, 0
48 34024927 [sig] dmake 1800 proc_subproc: looking for processes to reap
46 34024973 [sig] dmake 1800 proc_subproc: finished processing terminated/stopped child
47 34025020 [sig] dmake 1800 proc_subproc: returning 1
2794116 36819136 [sig] dmake 1800 sig_handle: signal 19 processing
142 36819278 [sig] dmake 1800 sig_handle: default signal 19 ignored
57 36819335 [sig] dmake 1800 sig_handle: returning 1
3379 36822714 [main] dmake 1800 reset_signal_arrived: reset signal_arrived
175 36822889 [main] dmake 1800 set_signal_mask: oldmask 0x20000, newmask 0x0, mask_bits 0x20000
61 36822950 [main] dmake 1800 sig_send: sendsig 0x350, pid 1800, signal -33, its_me 1
73 36823023 [main] dmake 1800 sig_send: wakeup 0x2F0
123 36823146 [sig] dmake 1800 sig_handle: signal 20 processing
55 36823201 [sig] dmake 1800 sig_handle: default signal 20 ignored
48 36823249 [sig] dmake 1800 sig_handle: returning 1
49 36823298 [sig] dmake 1800 wait_sig: signalled 0x2F0
92 36823390 [proc] dmake 1800 proc_subproc: args: 2, 0
61 36823451 [proc] dmake 1800 proc_subproc: pid 1772[0] terminated, handle 0x340, nchildren 1, nzombies 0
53 36823504 [proc] dmake 1800 proc_subproc: zombifying [0], pid 1772, handle 0x340, nchildren 1
50 36823554 [proc] dmake 1800 proc_subproc: returning 1
50 36823604 [proc] dmake 1800 sig_send: sendsig 0x350, pid 1800, signal 20, its_me 1
54 36823658 [main] dmake 1800 sig_send: Waiting for pack.wakeup 0x2F0
55 36823713 [main] dmake 1800 sig_send: returning 0x0 from sending signal -33
52 36823765 [main] dmake 1800 wait4: intpid -1, status 0x22E828, w->status -1, options 0, res -1
52 36823817 [main] dmake 1800 wait4: *** errno = 4
(many lines cut)


Still any help debugging this is appreciated.

Volker

--
If you like my work consider:  http://www.scytek.de/donations.html
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

Attachment: dmake_hung.strace.gz
Description: GNU Zip compressed data

Attachment: pgp00000.pgp
Description: PGP signature


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