public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* XWin startup crash x86_64 Windows 10
@ 2016-04-21 16:35 Sergio Gomez
  2016-04-22 14:33 ` Jon Turney
  0 siblings, 1 reply; 3+ messages in thread
From: Sergio Gomez @ 2016-04-21 16:35 UTC (permalink / raw)
  To: cygwin

Hi,

After a fresh installation of Cygwin x86_64 in a Windows 10 machine, XWin
crashes during startup (rest of Cygwin seems OK). Here is the backtrace:

----------------------------------
$ gdb --args /usr/bin/XWin -multiwindow
GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/XWin...Reading symbols from
/usr/lib/debug//usr/bin/XWin.exe.dbg...don
e.
done.
(gdb) handle SIGSYS nostop
Signal        Stop      Print   Pass to program Description
SIGSYS        No        Yes     Yes             Bad system call
(gdb) r
Starting program: /usr/bin/XWin -multiwindow
[New Thread 10320.0xd2c]
[New Thread 10320.0x2370]
[New Thread 10320.0x280]
[New Thread 10320.0x243c]
[New Thread 10320.0x1050]
gdb: unknown target exception 0x80000001 at 0x180071a71

Program received signal ?, Unknown signal.
[Switching to Thread 10320.0x1050]
0x0000000180071a71 in myfault_altstack_handler (exc=0x1cb050)
    at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/exceptions.cc:615
615     {
(gdb) bt full
#0  0x0000000180071a71 in myfault_altstack_handler (exc=0x1cb050)
    at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/exceptions.cc:615
        me = <optimized out>
#1  0x00007ffc24b6e763 in ntdll!MD5Update () from
/cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#2  0x00007ffc24b35443 in ntdll!RtlImageNtHeaderEx () from
/cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#3  0x00007ffc24ba8bfa in ntdll!KiUserExceptionDispatcher ()
   from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#4  0x00007ffc24b27c13 in ntdll!RtlAcquireSRWLockShared ()
   from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#5  0x00007ffc24b25c5f in ntdll!RtlAllocateHeap () from
/cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#6  0x00007ffc24b9266b in ntdll!EtwEventProviderEnabled ()
   from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#7  0x00007ffc24b27cce in ntdll!RtlAcquireSRWLockShared ()
   from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#8  0x00007ffc24b25c5f in ntdll!RtlAllocateHeap () from
/cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#9  0x0000000076145cff in ?? ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
No symbol table info available.
#10 0x0000000076145a37 in ?? ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
No symbol table info available.
#11 0x00000000760e2fe2 in ?? ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
No symbol table info available.
#12 0x00000000760e2d82 in ?? ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
No symbol table info available.
#13 0x00000000760e4989 in ?? ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#14 0x00000000760e48e1 in ?? ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
No symbol table info available.
#15 0x000000007618a997 in tmmon64!NullExport ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
No symbol table info available.
#16 0x000000007618a90b in tmmon64!NullExport ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
No symbol table info available.
#17 0x00000000760f418d in ?? ()
   from
/cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
No symbol table info available.
#18 0x00000001800c73a4 in CreateMutexW (lpMutexAttributes=0x0,
bInitialOwner=1887048,
    lpName=<optimized out>) at
/usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/kernel32.cc:142
        mtx = 0x0
        uname = {Length = 0, MaximumLength = 0, Buffer = 0x0}
        attr = {Length = 48, RootDirectory = 0x0, ObjectName = 0x0,
Attributes = 0,
          SecurityDescriptor = 0x0, SecurityQualityOfService = 0x0}
        status = <optimized out>
        flags = <optimized out>
#19 0x00000001800441bb in init_cygheap::add_tls (this=0x18033e400,
t=0xffdfce00)
    at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/cygheap.cc:641
        here = {static lock = {
            name = 0x180229681 <openpty::__PRETTY_FUNCTION__+705>
"thread_tls_sentry", sync = 1,
            waiters = 0, bruteforce = 0x124, visits = 1, tls = 0xffdfce00},
destroy = 1}
#20 0x0000000180045891 in _cygtls::init_thread (this=<optimized out>,
x=<optimized out>,
    func=<optimized out>) at
/usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/cygtls.cc:150
No locals.
#21 0x00000001800d2197 in pthread_wrapper (arg=<optimized out>)
    at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/miscfuncs.cc:625
        wrapper_arg = {func = 0x180154230
<pthread::thread_init_wrapper(void*)>,
          arg = 0x6000283e0,
          stackaddr = 0x190000 <error: Cannot access memory at address
0x190000>,
          stackbase = 0xffe00000 <error: Cannot access memory at address
0xffe00000>,
          stacklimit = 0xffdf0000 "", guardsize = 12288}
        dealloc_addr = <optimized out>
---Type <return> to continue, or q <return> to quit---
        arg = <optimized out>
#22 0x000000018004591c in _cygtls::call2 (this=0x1cce00,
    func=0x1800d20c0 <pthread_wrapper(PVOID)>, arg=0x180348df8,
buf=buf@entry=0x1ccd50)
    at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/cygtls.cc:111
        res = <optimized out>
#23 0x00000001800459b4 in _cygtls::call (func=<optimized out>,
arg=<optimized out>)
    at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/cygtls.cc:30
        buf = '\000' <repeats 8568 times>...
#24 0x00007ffc24a68102 in KERNEL32!BaseThreadInitThunk ()
   from /cygdrive/c/WINDOWS/system32/KERNEL32.DLL
No symbol table info available.
#25 0x00007ffc24b5c5b4 in ntdll!RtlUserThreadStart () from
/cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
No symbol table info available.
#26 0x0000000000000000 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) q
----------------------------------


And here is the XWin log:
----------------------------------
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.18.2.0
OS: CYGWIN_NT-10.0 psgomez5 2.5.0(0.297/5/3) 2016-04-11 09:58 x86_64
OS: Windows 10  [Windows NT 10.0 build 10586] (Win64)
Package: version 1.18.2-1 built 2016-03-24

XWin was started with the following command line:

/usr/bin/XWin -multiwindow 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 1920 h 1080
winInitializeScreenDefaults - native DPI x 120 y 120
[ 17152.281] (II) xorg.conf is not supported
[ 17152.281] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for
more information
[ 17152.281] LoadPreferences: /home/Sergio/.XWinrc not found
[ 17152.281] LoadPreferences: Loading /etc/X11/system.XWinrc
[ 17152.281] LoadPreferences: Done parsing the configuration file...
[ 17152.281] winDetectSupportedEngines - RemoteSession: no
[ 17153.046] winDetectSupportedEngines - DirectDraw4 installed, allowing
ShadowDDNL
[ 17153.750] winDetectSupportedEngines - Returning, supported engines
00000005
----------------------------------

Thanks,

Sergio.


--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XWin startup crash x86_64 Windows 10
  2016-04-21 16:35 XWin startup crash x86_64 Windows 10 Sergio Gomez
@ 2016-04-22 14:33 ` Jon Turney
  2016-04-22 14:40   ` Sergio Gomez
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Turney @ 2016-04-22 14:33 UTC (permalink / raw)
  To: cygwin; +Cc: Sergio Gomez

On 21/04/2016 17:31, Sergio Gomez wrote:
> Hi,

Thanks for reporting this problem.

> After a fresh installation of Cygwin x86_64 in a Windows 10 machine, XWin
> crashes during startup (rest of Cygwin seems OK). Here is the backtrace:
[...]
> (gdb) r
> Starting program: /usr/bin/XWin -multiwindow
> [New Thread 10320.0xd2c]
> [New Thread 10320.0x2370]
> [New Thread 10320.0x280]
> [New Thread 10320.0x243c]
> [New Thread 10320.0x1050]
> gdb: unknown target exception 0x80000001 at 0x180071a71

This is STATUS_GUARD_PAGE_VIOLATION

> Program received signal ?, Unknown signal.
> [Switching to Thread 10320.0x1050]
> 0x0000000180071a71 in myfault_altstack_handler (exc=0x1cb050)
>      at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/exceptions.cc:615
> 615     {
> (gdb) bt full
> #0  0x0000000180071a71 in myfault_altstack_handler (exc=0x1cb050)
>      at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/exceptions.cc:615
>          me = <optimized out>
[...]
> #8  0x00007ffc24b25c5f in ntdll!RtlAllocateHeap () from
> /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
> No symbol table info available.
> #9  0x0000000076145cff in ?? ()
>     from
> /cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
> No symbol table info available.
> #10 0x0000000076145a37 in ?? ()

This DLL apparently belongs to Trend Micro.

Unless you can reproduce this issue with that software uninstalled, I 
suggest you raise it with them.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: XWin startup crash x86_64 Windows 10
  2016-04-22 14:33 ` Jon Turney
@ 2016-04-22 14:40   ` Sergio Gomez
  0 siblings, 0 replies; 3+ messages in thread
From: Sergio Gomez @ 2016-04-22 14:40 UTC (permalink / raw)
  To: cygwin

Thanks Jon!

You're right, after adding the Cygwin bin folder to the exception list of TrendMicro, everything works fine. The strange thing is that it worked for the 32 bit installation of Cygwin/X, maybe the problem was after an update of TM with XWin.exe already running. Anyway, now it works and it seems it is not a problem of Cygwin :-)

Thank you very much!

Sergio.


-----Mensaje original-----
De: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] En nombre de Jon Turney
Enviado el: divendres, 22 d’abril de 2016 16:20
Para: cygwin@cygwin.com
CC: Sergio Gomez <sgj@tinet.cat>
Asunto: Re: XWin startup crash x86_64 Windows 10

On 21/04/2016 17:31, Sergio Gomez wrote:
> Hi,

Thanks for reporting this problem.

> After a fresh installation of Cygwin x86_64 in a Windows 10 machine, 
> XWin crashes during startup (rest of Cygwin seems OK). Here is the backtrace:
[...]
> (gdb) r
> Starting program: /usr/bin/XWin -multiwindow [New Thread 10320.0xd2c] 
> [New Thread 10320.0x2370] [New Thread 10320.0x280] [New Thread 
> 10320.0x243c] [New Thread 10320.0x1050]
> gdb: unknown target exception 0x80000001 at 0x180071a71

This is STATUS_GUARD_PAGE_VIOLATION

> Program received signal ?, Unknown signal.
> [Switching to Thread 10320.0x1050]
> 0x0000000180071a71 in myfault_altstack_handler (exc=0x1cb050)
>      at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/exceptions.cc:615
> 615     {
> (gdb) bt full
> #0  0x0000000180071a71 in myfault_altstack_handler (exc=0x1cb050)
>      at /usr/src/debug/cygwin-2.5.0-1/winsup/cygwin/exceptions.cc:615
>          me = <optimized out>
[...]
> #8  0x00007ffc24b25c5f in ntdll!RtlAllocateHeap () from 
> /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
> No symbol table info available.
> #9  0x0000000076145cff in ?? ()
>     from
> /cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1112/tmmon64.dll
> No symbol table info available.
> #10 0x0000000076145a37 in ?? ()

This DLL apparently belongs to Trend Micro.

Unless you can reproduce this issue with that software uninstalled, I suggest you raise it with them.

--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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


--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-22 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21 16:35 XWin startup crash x86_64 Windows 10 Sergio Gomez
2016-04-22 14:33 ` Jon Turney
2016-04-22 14:40   ` Sergio Gomez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).