Mail Archives: cygwin/2012/05/25/09:19:26
--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Fri, May 25, 2012 at 02:54:14PM +0200, Corinna Vinschen wrote:
>> On May 25 14:17, Denis Excoffier wrote:
>> > 97 6945 [main] date 3440 pinfo::thisproc: myself dwProcessId 3440
>> > 76 7021 [main] date 3440 time: 1337945628 = time(0)
>> > --- Process 3440, exception C0000005 at 610DDC3C
>> > 1343 8364 [main] date 3440 exception::handle: In cygwin_except_handler exception 0xC0000005 at 0x610DDC3C sp 0x2127F0
>> > 92 8456 [main] date 3440 exception::handle: In cygwin_except_handler signal 11 at 0x610DDC3C
>> > 86 8542 [main] date 3440 exception::handle: In cygwin_except_handler calling 0x0
>> > 320 8862 [main] date 3440 D:\Home\dexcoff1\dexcoff1\cyg12e\bin\date.exe: *** fatal error - internal error reading the windows environment - too many environment variables?
>>
>> Grr. The fault handler covers the actual problem. I'm going to send
>> you the URL to a test DLL in a minute via PM, if you don't mind. It has
>> the fault handler removed, so instead of the "internal error reading the
>> windows environment" error you should see a "real" SEGV, and the crash
>> should hopefully produce a more valid stacktrace. That's what I'd be
>> interested in.
Here are the results:
% /usr/bin/strace -o date.trace2 /usr/bin/date
8972 [main] date 716 exception::handle: Exception: STATUS_ACCESS_VIOLATION
10607 [main] date 716 open_stackdumpfile: Dumping stack trace to date.exe.stackdump
% cat date.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=610E4BB1
eax=000E000C ebx=611FDA9A ecx=00000020 edx=0022AAC4 esi=60FD0000 edi=61006582
ebp=00212978 esp=002128F0 program=D:\Home\dexcoff1\dexcoff1\cyg12e\bin\date.exe, pid 716, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
00212978 610E4BB1 (00222A91, 611F7FCF, 0022AAC4, 002229F0)
00222A28 610E9092 (611AEA40, 00222A50, 611F8280, 611F7FB8)
0022AA68 610E9270 (611AEA40, 00000040, 611F8280, 611F7FB8)
0022AAA8 610E9421 (611AEA40, 00000040, 611F8280, 611F7FB8)
0022AB08 610C7090 (0022ABE0, 0000074C, 00020019, 0022AB54)
0022AB38 610C6E5A (0022ABE0, 0000074C, 00020019, 611F7FA6)
0022AB88 610C6EE1 (0022ABE0, 00000001, 00020019, 611DE1E0)
0022AC08 610351AA (611DE202, 200180E0, 61202BB0, 6120288B)
0022AC88 61035296 (611AB438, 0022CE64, 0022ACB8, 6113E122)
0022ACB8 610B2827 (00000000, 00000000, 0022ACD8, 61188C99)
0022AD08 61006DD9 (00000000, 0022CD98, 61006CF5, 00000000)
0022CD78 61004807 (0022CD98, 00000000, 00000000, 00000000)
0022FF48 61004662 (61006CF5, 00000000, 0022FF78, 0040909E)
0022FF78 610072CD (00401680, 00000000, 85B6E000, E3E24400)
0022FF98 00408CC2 (00401680, 00000006, A8282D08, A8282D08)
0022FFC0 00401015 (61006582, 00020718, 7FFDB000, 8054B6ED)
End of stack trace (more stack frames may be present)
%
Included date.trace2.
Regards,
Denis Excoffier.
--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="date.trace2"
8 8 [main] date (716) **********************************************
315 323 [main] date (716) Program name: D:\Home\dexcoff1\dexcoff1\cyg12e\bin\date.exe (windows pid 716)
112 435 [main] date (716) OS version: Windows NT-5.1
106 541 [main] date (716) **********************************************
539 1080 [main] date (716) sigprocmask: 0 = sigprocmask (0, 0x61255348, 0x610FFE0F)
1186 2266 [main] date 716 open_shared: name shared.5, n 5, shared 0x60FF0000 (wanted 0x60FF0000), h 0x79C, *m 6
138 2404 [main] date 716 heap_init: heap base 0x20000000, heap top 0x20000000, heap size 0x18000000 (402653184)
142 2546 [main] date 716 open_shared: name S-1-5-21-2047029477-161106353-1238779560-28430.1, n 1, shared 0x60FE0000 (wanted 0x60FE0000), h 0x7A4, *m 6
117 2663 [main] date 716 user_info::create: opening user shared for 'S-1-5-21-2047029477-161106353-1238779560-28430' at 0x60FE0000
116 2779 [main] date 716 user_info::create: user shared version 6467403B
193 2972 [main] date 716 fhandler_pipe::create: name \\.\pipe\cygwin-2880dde9dfe79b35-716-sigwait, size 164, mode PIPE_TYPE_MESSAGE
189 3161 [main] date 716 fhandler_pipe::create: pipe read handle 0x780
106 3267 [main] date 716 fhandler_pipe::create: CreateFile: name \\.\pipe\cygwin-2880dde9dfe79b35-716-sigwait
157 3424 [main] date 716 fhandler_pipe::create: pipe write handle 0x77C
128 3552 [main] date 716 dll_crt0_0: finished dll_crt0_0 initialization
1619 5171 [sig] date 716 wait_sig: entering ReadFile loop, my_readsig 0x780, my_sendsig 0x77C
487 5658 [main] date 716 mount_info::conv_to_posix_path: conv_to_posix_path (D:\Home\dexcoff1\dexcoff1\cygscf, no-keep-rel, no-add-slash)
161 5819 [main] date 716 normalize_win32_path: D:\Home\dexcoff1\dexcoff1\cygscf = normalize_win32_path (D:\Home\dexcoff1\dexcoff1\cygscf)
142 5961 [main] date 716 mount_info::conv_to_posix_path: /cygdrive/d/Home/dexcoff1/dexcoff1/cygscf = conv_to_posix_path (D:\Home\dexcoff1\dexcoff1\cygscf)
147 6108 [main] date 716 sigprocmask: 0 = sigprocmask (0, 0x200180A8, 0x61188367)
338 6446 [main] date 716 _cygwin_istext_for_stdio: fd 0: not open
90 6536 [main] date 716 _cygwin_istext_for_stdio: fd 1: not open
89 6625 [main] date 716 _cygwin_istext_for_stdio: fd 2: not open
251 6876 [main] date (716) open_shared: name cygpid.716, n 716, shared 0x60FD0000 (wanted 0x60FD0000), h 0x750, *m 2
103 6979 [main] date 716 pinfo::thisproc: myself dwProcessId 716
83 7062 [main] date 716 time: 1337951783 = time(0)
--- Process 716, exception C0000005 at 610E4BB1
1625 8687 [main] date 716 exception::handle: In cygwin_except_handler exception 0xC0000005 at 0x610E4BB1 sp 0x2128F0
101 8788 [main] date 716 exception::handle: In cygwin_except_handler signal 11 at 0x610E4BB1
90 8878 [main] date 716 exception::handle: In cygwin_except_handler calling 0x0
94 8972 [main] date 716 exception::handle: Exception: STATUS_ACCESS_VIOLATION
362 9334 [main] date 716 try_to_debug: debugger_command ''
1273 10607 [main] date 716 open_stackdumpfile: Dumping stack trace to date.exe.stackdump
59365 69972 [main] date 716 _cygtls::inside_kernel: pc 0x610E4BB1, h 0x61000000, inside_kernel 0
131 70103 [main] date 716 normalize_posix_path: src /dev/kmsg
24 70127 [main] date 716 normalize_posix_path: /dev/kmsg = normalize_posix_path (/dev/kmsg)
27 70154 [main] date 716 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/kmsg)
43 70197 [main] date 716 mount_info::conv_to_win32_path: src_path /dev/kmsg, dst \Device\MailSlot\cygwin\dev\kmsg, flags 0x2, rc 0
45 70242 [main] date 716 build_fh_pc: fh 0x6128A890, dev 0x1000B
32 70274 [main] date 716 seterrno_from_nt_status: /home/corinna/src/cygwin/vanilla/winsup/cygwin/fhandler_mailslot.cc:134 status 0xC0000034 -> windows error 2
36 70310 [main] date 716 geterrno_from_win_error: windows error 2 == errno 2
46 70356 [main] date 716 try_to_debug: debugger_command ''
37 70393 [main] date 716 _cygtls::signal_exit: about to call do_exit (8B)
59 70452 [main] date 716 do_exit: do_exit (139), exit_state 2
-57 70395 [sig] date 716 wait_sig: saw __SIGEXIT
94 70489 [main] date 716 void: 0x0 = signal (20, 0x1)
66 70555 [main] date 716 void: 0x0 = signal (1, 0x1)
35 70590 [main] date 716 void: 0x0 = signal (2, 0x1)
-65 70525 [sig] date 716 wait_sig: signal thread exiting
99 70624 [main] date 716 void: 0x0 = signal (3, 0x1)
32 70656 [sig] date 716 _cygtls::remove: wait 0x0
70 70726 [main] date 716 getpid: 716 = getpid()
53 70779 [main] date 716 sigproc_terminate: don't worry about signal thread
52 70831 [main] date 716 __to_clock_t: dwHighDateTime 0, dwLowDateTime 468750
37 70868 [main] date 716 __to_clock_t: total 00000000 0000002E
36 70904 [main] date 716 __to_clock_t: dwHighDateTime 0, dwLowDateTime 312500
37 70941 [main] date 716 __to_clock_t: total 00000000 0000001F
36 70977 [main] date 716 pinfo::exit: Calling ExitProcess n 0x8B, exitcode 0x8B00
--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
--n8g4imXOkfNTN/H1--
- Raw text -