public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Markus Moeller" <huaraz@moeller.plus.com>
To: cygwin@cygwin.com
Subject: strace seg faults
Date: Sun, 15 Jan 2017 15:51:00 -0000	[thread overview]
Message-ID: <o5g5nk$54e$1@blaine.gmane.org> (raw)

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

             reply	other threads:[~2017-01-15 15:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-15 15:51 Markus Moeller [this message]
2017-01-15 17:20 ` Marco Atzeri
2017-01-15 17:36   ` Markus Moeller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='o5g5nk$54e$1@blaine.gmane.org' \
    --to=huaraz@moeller.plus.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).