strace seg faults

Markus Moeller huaraz@moeller.plus.com
Sun Jan 15 15:51:00 GMT 2017


Hi,

  I installed cygwin with --no-admin on Windows 7 and get always a segfault 
when running strace. Is that a known issue ( I saw some old posts, but no 
indication of the cause) ?

$  uname -a

CYGWIN_NT-6.1 PC814049 2.6.1(0.305/5/3) 2016-12-16 11:55 x86_64 Cygwin



$ cygcheck  /usr/bin/strace.exe

C:\Users\Public\Documents\CYGWIN\bin\strace.exe

  C:\Windows\system32\ADVAPI32.dll

    C:\Windows\system32\msvcrt.dll

      C:\Windows\system32\KERNELBASE.dll

        C:\Windows\system32\ntdll.dll

      C:\Windows\system32\API-MS-Win-Core-Console-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-DateTime-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Debug-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Fibers-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-File-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Handle-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Heap-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Localization-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Memory-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-NamedPipe-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-ProcessThreads-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-String-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Synch-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-Util-L1-1-0.dll

    C:\Windows\system32\API-MS-WIN-Service-Core-L1-1-0.dll

    C:\Windows\system32\API-MS-WIN-Service-winsvc-L1-1-0.dll

    C:\Windows\system32\API-MS-WIN-Service-Management-L1-1-0.dll

    C:\Windows\system32\API-MS-WIN-Service-Management-L2-1-0.dll

    C:\Windows\system32\API-MS-Win-Core-LocalRegistry-L1-1-0.dll

    C:\Windows\system32\API-MS-Win-Security-Base-L1-1-0.dll

    C:\Windows\system32\KERNEL32.dll

      C:\Windows\system32\API-MS-Win-Core-RtlSupport-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-IO-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-ThreadPool-L1-1-0.dll

    C:\Windows\system32\RPCRT4.dll

      C:\Windows\system32\API-MS-Win-Core-Interlocked-L1-1-0.dll

      C:\Windows\system32\API-MS-Win-Core-DelayLoad-L1-1-0.dll





$ gdb --args strace echo foo

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 strace...(no debugging symbols found)...done.

(gdb) run

Starting program: /usr/bin/strace echo foo

[New Thread 22480.0x6908]



Program received signal SIGSEGV, Segmentation fault.

0x0000000076c7c67c in KERNEL32!GetVolumePathNamesForVolumeNameW ()

   from /cygdrive/c/Windows/system32/kernel32.dll

(gdb) where

#0  0x0000000076c7c67c in KERNEL32!GetVolumePathNamesForVolumeNameW ()

   from /cygdrive/c/Windows/system32/kernel32.dll

#1  0x00000001800ca5c4 in dos_drive_mappings::dos_drive_mappings() ()

   from /usr/bin/cygwin1.dll

#2  0x00000001800600c5 in cygwin_internal () from /usr/bin/cygwin1.dll

#3  0x0000000000402b50 in ?? ()

#4  0x00000000004074ba in ?? ()

#5  0x00000000004013ed in ?? ()

#6  0x000000000040152b in ?? ()

#7  0x0000000076c359cd in KERNEL32!BaseThreadInitThunk ()

   from /cygdrive/c/Windows/system32/kernel32.dll

#8  0x0000000076e6a561 in ntdll!RtlUserThreadStart ()

   from /cygdrive/c/Windows/SYSTEM32/ntdll.dll

#9  0x0000000000000000 in ?? ()

Backtrace stopped: previous frame inner to this frame (corrupt stack?)

(gdb) quit

A debugging session is active.



        Inferior 1 [process 22480] will be killed.



Quit anyway? (y or n) y



Thank you
Markus




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



More information about the Cygwin mailing list