public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Chris LeBlanc <crleblanc@gmail.com>
To: cygwin-xfree@cygwin.com
Subject: Re: XWin.exe segmentation fault on Windows 7
Date: Tue, 14 Aug 2012 04:42:00 -0000	[thread overview]
Message-ID: <CACAZVOxZHJvqtCpgat4=4APvi5eZ_aBUHfmcdRtrEMzQsYgjig@mail.gmail.com> (raw)
In-Reply-To: <20120813124123.GC23253@calimero.vinschen.de>

[-- Attachment #1: Type: text/plain, Size: 2151 bytes --]

> Now the question is, if the same problem occurs, why?  Please paste
> the contents of /etc/fstab and, if it exists, /etc/fstab.d/$USER
> into your reply.

Thanks for the information, I think we're getting closer to finding the problem.

/etc/fstab doesn't have anything in it apart from comments, and the
/etc/fstab.d directory is empty.

Here is the output from the mount command:
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)
Segmentation fault (core dumped)

It fails when it reaches a network share.  Looking at them in Windows
Explorer, they're all NcFsd network shares and this is a Novell client
machine, if that's any help.

There is some interesting output from a listing of cygdrive.  I'm not
sure why the owner/group is different for the network shares or why
the dates are 1970.  I can also list files in the network shares, so
they're definitely mounted.
$ ls /cygdrive/ -l
total 16
d---------+ 1 TrustedInstaller TrustedInstaller 0 Aug 13 16:19 c
drwx------+ 1 SYSTEM           SYSTEM           0 Aug 13 16:19 e
drwxr-xr-x  1 keleigh          None             0 Jan  1  1970 h
drwxr-xr-x  1 keleigh          None             0 Jan  1  1970 i
drwxr-xr-x  1 keleigh          None             0 Jan  1  1970 j
drwxr-xr-x  1 keleigh          None             0 Jan  1  1970 k
drwxr-xr-x  1 keleigh          None             0 Jan  1  1970 z

I compiled your test C program (gcc -Wall -g mount_test.c -o
mount_test) and ran it under gdb, logging the output to a file
(attached).  It also fails when it gets to the network shares.  I
tried disconnecting the shares and rerunning this program and
XWin.exe, and both worked normally.

I have cygwin_debuginfo installed, but didn't get any useful debugging
info from gdb.  I also tried the same tests on the latest Cygwin
snapshot, but the results were identical.

Any thoughts on why the network shares are causing this behaviour, or
is this a red herring?

Cheers,
Chris

[-- Attachment #2: gdb.txt --]
[-- Type: text/plain, Size: 45735 bytes --]

Breakpoint 1 at 0x40117f: file mount_test.c, line 8.
Starting program: /home/keleigh/mount_test.exe 
[New Thread 5704.0x155c]
[New Thread 5704.0xed8]

Breakpoint 1, main () at mount_test.c:8
8		fp = setmntent ("/etc/mtab", "r");
9		while ((mnt = getmntent (fp)) != NULL)
10			printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
9		while ((mnt = getmntent (fp)) != NULL)
10			printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
9		while ((mnt = getmntent (fp)) != NULL)
10			printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
9		while ((mnt = getmntent (fp)) != NULL)
10			printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
9		while ((mnt = getmntent (fp)) != NULL)
10			printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
9		while ((mnt = getmntent (fp)) != NULL)

Program received signal SIGSEGV, Segmentation fault.
strcpy (dst0=0x40010006 <Address 0x40010006 out of bounds>, src0=0x0)
    at /usr/src/debug/cygwin-1.7.16-1/newlib/libc/string/strcpy.c:86
86	      while (!DETECTNULL(*aligned_src))
0x774eb9bd in RaiseException () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function RaiseException,
which has no line number information.
0x774f2ad6 in OutputDebugStringA () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function OutputDebugStringA,
which has no line number information.
0x77516904 in KERNELBASE!IsNLSDefinedString () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function KERNELBASE!IsNLSDefinedString,
which has no line number information.
0x774fe68d in KERNELBASE!CloseThreadpoolCleanupGroupMembers ()
   from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function KERNELBASE!CloseThreadpoolCleanupGroupMembers,
which has no line number information.
0x7751690e in KERNELBASE!IsNLSDefinedString () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function KERNELBASE!IsNLSDefinedString,
which has no line number information.
0x774f2d0d in OutputDebugStringA () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function OutputDebugStringA,
which has no line number information.
_cygtls::signal_debugger (this=<optimized out>, sig=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exceptions.cc:1391
1391	}
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:399
399	  if (rc == SIGQUIT || rc == SIGABRT)
409	  if (have_execed)
has_execed (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/child_info.h:171
171	    if (hExeced)
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:409
409	  if (have_execed)
has_execed (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/child_info.h:173
173	    if (type != _CH_EXEC)
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:415
415	  if ((rc & 0x80) && !try_to_debug ())
try_to_debug (waitloop=true) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exceptions.cc:367
367	{
368	  debug_printf ("debugger_command '%s'", debugger_command);
369	  if (*debugger_command == '\0')
450	}
369	  if (*debugger_command == '\0')
450	}
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:416
416	    stackdump (thread_context.ebp, true);
stackdump (n=2664872) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exception.h:35
35	  stackdump (n, (CONTEXT *) 1);
stackdump (ebp=2664872, in=0x1, e=0x0)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exceptions.cc:285
285	{
288	  if (already_dumped || cygheap->rlim_core == 0Ul)
285	{
288	  if (already_dumped || cygheap->rlim_core == 0Ul)
310	}
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:418
418	  lock_process until_exit (true);
lock_process (exiting=true, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.h:53
53	    locker.acquire ();
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:75
75	{
76	  void *this_tls = &_my_tls;
75	{
76	  void *this_tls = &_my_tls;
78	  if (tls != this_tls)
82	      LONG was_waiting = ms ? InterlockedIncrement (&waiters) : 0;
ilockincr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:37
37		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:84
84	      while (was_waiting || InterlockedExchange (&sync, 1) != 0)
ilockexch (v=1, t=0x611a0444) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:64
64		: "memory");
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:84
84	      while (was_waiting || InterlockedExchange (&sync, 1) != 0)
95	      if (!ms)
98	      tls = this_tls;	/* register this thread. */
101	  return ++visits;	/* Increment visit count. */
102	}
lock_process (exiting=true, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.h:55
55	    if (exiting && exit_state < ES_PROCESS_LOCKED)
56	      exit_state = ES_PROCESS_LOCKED;
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:419
419	  if (have_execed || exit_state > ES_PROCESS_LOCKED)
has_execed (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/child_info.h:171
171	    if (hExeced)
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:419
419	  if (have_execed || exit_state > ES_PROCESS_LOCKED)
has_execed (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/child_info.h:173
173	    if (type != _CH_EXEC)
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:419
419	  if (have_execed || exit_state > ES_PROCESS_LOCKED)
424	  SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
426	  sigproc_printf ("about to call do_exit (%x)", rc);
427	  do_exit (rc);
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1091
1091	  syscall_printf ("do_exit (%d), exit_state %d", status, exit_state);
1102	  lock_process until_exit (true);
lock_process (exiting=true, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.h:53
53	    locker.acquire ();
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:75
75	{
76	  void *this_tls = &_my_tls;
75	{
76	  void *this_tls = &_my_tls;
78	  if (tls != this_tls)
101	  return ++visits;	/* Increment visit count. */
102	}
lock_process (exiting=true, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.h:55
55	    if (exiting && exit_state < ES_PROCESS_LOCKED)
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1104
1104	  if (exit_state < ES_EVENTS_TERMINATE)
1106	      exit_state = ES_EVENTS_TERMINATE;
1107	      events_terminate ();
events_terminate () at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exceptions.cc:1312
1312	  exit_already = 1;
1313	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1110
1110	  if (exit_state < ES_SIGNAL)
1112	      exit_state = ES_SIGNAL;
1113	      signal (SIGCHLD, SIG_IGN);
signal (sig=20, func=0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:37
37	  sig_dispatch_pending ();
36	{
37	  sig_dispatch_pending ();
sig_dispatch_pending (fast=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:503
503	  if (exit_state || &_my_tls == _sig_tls)
502	{
503	  if (exit_state || &_my_tls == _sig_tls)
519	}
signal (sig=20, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:41
41	  if (sig < 0 || sig >= NSIG || sig == SIGKILL || sig == SIGSTOP)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
53	    gs.sa_flags |= SA_RESTART;
55	  gs.sa_mask = SIGTOMASK (sig);
56	  gs.sa_handler = func;
57	  gs.sa_flags &= ~SA_SIGINFO;
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
55	  gs.sa_mask = SIGTOMASK (sig);
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
61	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1114
1114	      signal (SIGHUP, SIG_IGN);
signal (sig=1, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:37
37	  sig_dispatch_pending ();
36	{
37	  sig_dispatch_pending ();
sig_dispatch_pending (fast=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:503
503	  if (exit_state || &_my_tls == _sig_tls)
502	{
503	  if (exit_state || &_my_tls == _sig_tls)
519	}
signal (sig=1, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:41
41	  if (sig < 0 || sig >= NSIG || sig == SIGKILL || sig == SIGSTOP)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
53	    gs.sa_flags |= SA_RESTART;
55	  gs.sa_mask = SIGTOMASK (sig);
56	  gs.sa_handler = func;
57	  gs.sa_flags &= ~SA_SIGINFO;
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
55	  gs.sa_mask = SIGTOMASK (sig);
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
61	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1115
1115	      signal (SIGINT, SIG_IGN);
signal (sig=2, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:37
37	  sig_dispatch_pending ();
36	{
37	  sig_dispatch_pending ();
sig_dispatch_pending (fast=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:503
503	  if (exit_state || &_my_tls == _sig_tls)
502	{
503	  if (exit_state || &_my_tls == _sig_tls)
519	}
signal (sig=2, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:41
41	  if (sig < 0 || sig >= NSIG || sig == SIGKILL || sig == SIGSTOP)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
53	    gs.sa_flags |= SA_RESTART;
55	  gs.sa_mask = SIGTOMASK (sig);
56	  gs.sa_handler = func;
57	  gs.sa_flags &= ~SA_SIGINFO;
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
55	  gs.sa_mask = SIGTOMASK (sig);
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
61	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1116
1116	      signal (SIGQUIT, SIG_IGN);
signal (sig=3, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:37
37	  sig_dispatch_pending ();
36	{
37	  sig_dispatch_pending ();
sig_dispatch_pending (fast=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:503
503	  if (exit_state || &_my_tls == _sig_tls)
502	{
503	  if (exit_state || &_my_tls == _sig_tls)
519	}
signal (sig=3, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:41
41	  if (sig < 0 || sig >= NSIG || sig == SIGKILL || sig == SIGSTOP)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
53	    gs.sa_flags |= SA_RESTART;
55	  gs.sa_mask = SIGTOMASK (sig);
56	  gs.sa_handler = func;
57	  gs.sa_flags &= ~SA_SIGINFO;
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
55	  gs.sa_mask = SIGTOMASK (sig);
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
61	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1119
1119	  if (exit_state < ES_CLOSEALL)
1121	      exit_state = ES_CLOSEALL;
1122	      close_all_files ();
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:89
89	{
90	  cygheap->fdtab.lock ();
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.h:37
37	  void lock () {lock_process::locker.acquire ();}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:89
89	{
90	  cygheap->fdtab.lock ();
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.h:37
37	  void lock () {lock_process::locker.acquire ();}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:89
89	{
90	  cygheap->fdtab.lock ();
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.h:37
37	  void lock () {lock_process::locker.acquire ();}
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:75
75	{
76	  void *this_tls = &_my_tls;
75	{
76	  void *this_tls = &_my_tls;
78	  if (tls != this_tls)
101	  return ++visits;	/* Increment visit count. */
102	}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:92
92	  semaphore::terminate ();
terminate () at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:92
92	  semaphore::terminate ();
save_errno (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygerrno.h:40
40	    save_errno () {saved = get_errno ();}
__errno () at /usr/src/debug/cygwin-1.7.16-1/newlib/libc/errno/errno.c:13
13	  return &_REENT->_errno;
12	{
14	}
13	  return &_REENT->_errno;
14	}
terminate () at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:656
656	    semaphores.for_each (&semaphore::_terminate);
for_each (callback=<optimized out>, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:656
656	    semaphores.for_each (&semaphore::_terminate);
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:656
656	    semaphores.for_each (&semaphore::_terminate);
ilockincr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:37
37		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:62
62	    if (InterlockedIncrement ((long *) &lock_counter) != 1)
for_each (callback=<optimized out>, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:177
177	    list_node *cur = head;
178	    while (cur)
183	    mx.unlock ();
unlock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:183
183	    mx.unlock ();
ilockdecr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:49
49		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
unlock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:68
68	    if (InterlockedDecrement ((long *) &lock_counter))
terminate () at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:655
655	    save_errno save;
~save_errno (this=<optimized out>, __in_chrg=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygerrno.h:44
44	    ~save_errno () {errno = _impure_ptr->_errno = saved;}
__errno () at /usr/src/debug/cygwin-1.7.16-1/newlib/libc/errno/errno.c:13
13	  return &_REENT->_errno;
12	{
14	}
13	  return &_REENT->_errno;
14	}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:96
96	  for (int i = 0; i < (int) cygheap->fdtab.size; i++)
94	  HANDLE h = NULL;
96	  for (int i = 0; i < (int) cygheap->fdtab.size; i++)
98	      cygheap_fdget cfd (i, false, false);
cygheap_fdget (do_set_errno=false, lockit=false, fd=0, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygheap.h:474
474	    if (fd >= 0 && fd < (int) cygheap->fdtab.size && cygheap->fdtab[fd] != NULL)
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:96
96	  for (int i = 0; i < (int) cygheap->fdtab.size; i++)
98	      cygheap_fdget cfd (i, false, false);
cygheap_fdget (do_set_errno=false, lockit=false, fd=0, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygheap.h:474
474	    if (fd >= 0 && fd < (int) cygheap->fdtab.size && cygheap->fdtab[fd] != NULL)
479		fh->inc_refcnt ();
inc_refcnt (this=0x61273718) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygheap.h:479
479		fh->inc_refcnt ();
ilockincr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:37
37		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:102
102		  if (i == 2)
106		  cfd->close_with_arch ();
fhandler_base::close_with_arch (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.cc:1101
1101	{
1104	  if (usecount)
1115	  else if (!archetype)
1119	      cleanup ();
fhandler_pty_slave::cleanup (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler_tty.cc:573
573	{
579	  report_tty_counts (this, "closed", "");
573	{
579	  report_tty_counts (this, "closed", "");
580	}
fhandler_base::close_with_arch (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.cc:1120
1120	      if (archetype_usecount (-1) == 0)
_archetype_usecount (n=-1, ln=1120, fn=0x611d1f80 "int fhandler_base::close_with_arch()", 
    this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.h:320
320	    if (!archetype)
322	    archetype->usecount += n;
323	    if (strace.active ())
322	    archetype->usecount += n;
323	    if (strace.active ())
322	    archetype->usecount += n;
323	    if (strace.active ())
fhandler_base::close_with_arch (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.cc:1120
1120	      if (archetype_usecount (-1) == 0)
1128		  return 0;
1127		  debug_printf ("not closing archetype");
1139	}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:107
107		  if (!norelease)
108		    cfd.release ();
release (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygheap.h:500
500	  void release () { cygheap->fdtab.release (fd); }
dtable::release (this=0x61272ad8, fd=0)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:242
242	{
243	  if (fds[fd]->need_fixup_before ())
242	{
243	  if (fds[fd]->need_fixup_before ())
fhandler_base::need_fixup_before (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.h:309
309	  virtual bool need_fixup_before () const {return false;}
dtable::release (this=0x61272ad8, fd=0)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:245
245	  fds[fd]->dec_refcnt ();
dec_refcnt (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.h:186
186	  long dec_refcnt () {return InterlockedDecrement (&_refcnt);} 
ilockdecr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:49
49		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
dtable::release (this=0x61272ad8, fd=0)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:247
247	  if (fd <= 2)
246	  fds[fd] = NULL;
247	  if (fd <= 2)
248	    set_std_handle (fd);
set_std_handle (fd=0) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:66
66	{
67	  fhandler_base *fh = cygheap->fdtab[fd];
operator[] (fd=0, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:1088
1088	}
set_std_handle (fd=0) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:66
66	{
67	  fhandler_base *fh = cygheap->fdtab[fd];
68	  if (fd == 0)
67	  fhandler_base *fh = cygheap->fdtab[fd];
68	  if (fd == 0)
69	    SetStdHandle (std_consts[fd], fh ? fh->get_handle () : NULL);
0x61173a70 in SetStdHandle@8 () from /usr/bin/cygwin1.dll
Single stepping until exit from function SetStdHandle@8,
which has no line number information.
0x77474737 in UpdateResourceA () from /cygdrive/c/Windows/syswow64/kernel32.dll
Single stepping until exit from function UpdateResourceA,
which has no line number information.
0x77409998 in KERNEL32!GetNumberFormatEx () from /cygdrive/c/Windows/syswow64/kernel32.dll
Single stepping until exit from function KERNEL32!GetNumberFormatEx,
which has no line number information.
0x774ebc56 in SetStdHandle () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function SetStdHandle,
which has no line number information.
set_std_handle (fd=1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:66
66	{
67	  fhandler_base *fh = cygheap->fdtab[fd];
operator[] (fd=1, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:1088
1088	}
set_std_handle (fd=1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:66
66	{
67	  fhandler_base *fh = cygheap->fdtab[fd];
68	  if (fd == 0)
67	  fhandler_base *fh = cygheap->fdtab[fd];
68	  if (fd == 0)
70	  else if (fd <= 2)
71	    SetStdHandle (std_consts[fd], fh ? fh->get_output_handle () : NULL);
[Inferior 1 (process 5704) exited with code 0105400]
Breakpoint 1 at 0x40117f: file mount_test.c, line 9.
Starting program: /home/keleigh/mount_test.exe 
[New Thread 2512.0x139c]
[New Thread 2512.0x11e8]

Breakpoint 1, main () at mount_test.c:9
9	fp = setmntent ("/etc/mtab", "r");
10	while ((mnt = getmntent (fp)) != NULL)
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
10	while ((mnt = getmntent (fp)) != NULL)
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
10	while ((mnt = getmntent (fp)) != NULL)
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
10	while ((mnt = getmntent (fp)) != NULL)
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
10	while ((mnt = getmntent (fp)) != NULL)
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
12		  mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts);
11	  printf ("name: <%s> mount point: <%s> type: %s flags: <%s>\n",
10	while ((mnt = getmntent (fp)) != NULL)

Program received signal SIGSEGV, Segmentation fault.
0x774eb9bc in RaiseException () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function RaiseException,
which has no line number information.
0x774f2ad6 in OutputDebugStringA () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function OutputDebugStringA,
which has no line number information.
0x77516904 in KERNELBASE!IsNLSDefinedString () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function KERNELBASE!IsNLSDefinedString,
which has no line number information.
0x774fe68d in KERNELBASE!CloseThreadpoolCleanupGroupMembers ()
   from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function KERNELBASE!CloseThreadpoolCleanupGroupMembers,
which has no line number information.
0x7751690e in KERNELBASE!IsNLSDefinedString () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function KERNELBASE!IsNLSDefinedString,
which has no line number information.
0x774f2d0d in OutputDebugStringA () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function OutputDebugStringA,
which has no line number information.
_cygtls::signal_debugger (this=<optimized out>, sig=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exceptions.cc:1391
1391	}
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:399
399	  if (rc == SIGQUIT || rc == SIGABRT)
409	  if (have_execed)
has_execed (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/child_info.h:171
171	    if (hExeced)
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:409
409	  if (have_execed)
has_execed (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/child_info.h:173
173	    if (type != _CH_EXEC)
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:415
415	  if ((rc & 0x80) && !try_to_debug ())
try_to_debug (waitloop=true) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exceptions.cc:367
367	{
368	  debug_printf ("debugger_command '%s'", debugger_command);
369	  if (*debugger_command == '\0')
450	}
369	  if (*debugger_command == '\0')
450	}
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:416
416	    stackdump (thread_context.ebp, true);
stackdump (n=2664872) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exception.h:35
35	  stackdump (n, (CONTEXT *) 1);
stackdump (ebp=2664872, in=0x1, e=0x0)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exceptions.cc:285
285	{
288	  if (already_dumped || cygheap->rlim_core == 0Ul)
285	{
288	  if (already_dumped || cygheap->rlim_core == 0Ul)
310	}
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:418
418	  lock_process until_exit (true);
lock_process (exiting=true, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.h:53
53	    locker.acquire ();
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:75
75	{
76	  void *this_tls = &_my_tls;
75	{
76	  void *this_tls = &_my_tls;
78	  if (tls != this_tls)
82	      LONG was_waiting = ms ? InterlockedIncrement (&waiters) : 0;
ilockincr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:37
37		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:84
84	      while (was_waiting || InterlockedExchange (&sync, 1) != 0)
ilockexch (v=1, t=0x611a0444) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:64
64		: "memory");
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:84
84	      while (was_waiting || InterlockedExchange (&sync, 1) != 0)
95	      if (!ms)
98	      tls = this_tls;	/* register this thread. */
101	  return ++visits;	/* Increment visit count. */
102	}
lock_process (exiting=true, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.h:55
55	    if (exiting && exit_state < ES_PROCESS_LOCKED)
56	      exit_state = ES_PROCESS_LOCKED;
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:419
419	  if (have_execed || exit_state > ES_PROCESS_LOCKED)
has_execed (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/child_info.h:171
171	    if (hExeced)
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:419
419	  if (have_execed || exit_state > ES_PROCESS_LOCKED)
has_execed (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/child_info.h:173
173	    if (type != _CH_EXEC)
_cygtls::signal_exit (this=0x28ce64, rc=139)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:419
419	  if (have_execed || exit_state > ES_PROCESS_LOCKED)
424	  SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
426	  sigproc_printf ("about to call do_exit (%x)", rc);
427	  do_exit (rc);
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1091
1091	  syscall_printf ("do_exit (%d), exit_state %d", status, exit_state);
1102	  lock_process until_exit (true);
lock_process (exiting=true, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.h:53
53	    locker.acquire ();
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:75
75	{
76	  void *this_tls = &_my_tls;
75	{
76	  void *this_tls = &_my_tls;
78	  if (tls != this_tls)
101	  return ++visits;	/* Increment visit count. */
102	}
lock_process (exiting=true, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.h:55
55	    if (exiting && exit_state < ES_PROCESS_LOCKED)
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1104
1104	  if (exit_state < ES_EVENTS_TERMINATE)
1106	      exit_state = ES_EVENTS_TERMINATE;
1107	      events_terminate ();
events_terminate () at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/exceptions.cc:1312
1312	  exit_already = 1;
1313	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1110
1110	  if (exit_state < ES_SIGNAL)
1112	      exit_state = ES_SIGNAL;
1113	      signal (SIGCHLD, SIG_IGN);
signal (sig=20, func=0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:37
37	  sig_dispatch_pending ();
36	{
37	  sig_dispatch_pending ();
sig_dispatch_pending (fast=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:503
503	  if (exit_state || &_my_tls == _sig_tls)
502	{
503	  if (exit_state || &_my_tls == _sig_tls)
519	}
signal (sig=20, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:41
41	  if (sig < 0 || sig >= NSIG || sig == SIGKILL || sig == SIGSTOP)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
53	    gs.sa_flags |= SA_RESTART;
55	  gs.sa_mask = SIGTOMASK (sig);
56	  gs.sa_handler = func;
57	  gs.sa_flags &= ~SA_SIGINFO;
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
55	  gs.sa_mask = SIGTOMASK (sig);
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
61	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1114
1114	      signal (SIGHUP, SIG_IGN);
signal (sig=1, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:37
37	  sig_dispatch_pending ();
36	{
37	  sig_dispatch_pending ();
sig_dispatch_pending (fast=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:503
503	  if (exit_state || &_my_tls == _sig_tls)
502	{
503	  if (exit_state || &_my_tls == _sig_tls)
519	}
signal (sig=1, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:41
41	  if (sig < 0 || sig >= NSIG || sig == SIGKILL || sig == SIGSTOP)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
53	    gs.sa_flags |= SA_RESTART;
55	  gs.sa_mask = SIGTOMASK (sig);
56	  gs.sa_handler = func;
57	  gs.sa_flags &= ~SA_SIGINFO;
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
55	  gs.sa_mask = SIGTOMASK (sig);
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
61	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1115
1115	      signal (SIGINT, SIG_IGN);
signal (sig=2, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:37
37	  sig_dispatch_pending ();
36	{
37	  sig_dispatch_pending ();
sig_dispatch_pending (fast=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:503
503	  if (exit_state || &_my_tls == _sig_tls)
502	{
503	  if (exit_state || &_my_tls == _sig_tls)
519	}
signal (sig=2, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:41
41	  if (sig < 0 || sig >= NSIG || sig == SIGKILL || sig == SIGSTOP)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
53	    gs.sa_flags |= SA_RESTART;
55	  gs.sa_mask = SIGTOMASK (sig);
56	  gs.sa_handler = func;
57	  gs.sa_flags &= ~SA_SIGINFO;
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
55	  gs.sa_mask = SIGTOMASK (sig);
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
61	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1116
1116	      signal (SIGQUIT, SIG_IGN);
signal (sig=3, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:37
37	  sig_dispatch_pending ();
36	{
37	  sig_dispatch_pending ();
sig_dispatch_pending (fast=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sigproc.cc:503
503	  if (exit_state || &_my_tls == _sig_tls)
502	{
503	  if (exit_state || &_my_tls == _sig_tls)
519	}
signal (sig=3, func=warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

0x1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/signal.cc:41
41	  if (sig < 0 || sig >= NSIG || sig == SIGKILL || sig == SIGSTOP)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
48	  prev = global_sigs[sig].sa_handler;
50	  if (gs.sa_flags & _SA_NORESTART)
53	    gs.sa_flags |= SA_RESTART;
55	  gs.sa_mask = SIGTOMASK (sig);
56	  gs.sa_handler = func;
57	  gs.sa_flags &= ~SA_SIGINFO;
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
55	  gs.sa_mask = SIGTOMASK (sig);
59	  syscall_printf ("%p = signal (%d, %p)", prev, sig, func);
61	}
do_exit (status=139) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dcrt0.cc:1119
1119	  if (exit_state < ES_CLOSEALL)
1121	      exit_state = ES_CLOSEALL;
1122	      close_all_files ();
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:89
89	{
90	  cygheap->fdtab.lock ();
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.h:37
37	  void lock () {lock_process::locker.acquire ();}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:89
89	{
90	  cygheap->fdtab.lock ();
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.h:37
37	  void lock () {lock_process::locker.acquire ();}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:89
89	{
90	  cygheap->fdtab.lock ();
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.h:37
37	  void lock () {lock_process::locker.acquire ();}
muto::acquire (this=0x611a0440, ms=4294967295)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/sync.cc:75
75	{
76	  void *this_tls = &_my_tls;
75	{
76	  void *this_tls = &_my_tls;
78	  if (tls != this_tls)
101	  return ++visits;	/* Increment visit count. */
102	}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:92
92	  semaphore::terminate ();
terminate () at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:92
92	  semaphore::terminate ();
save_errno (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygerrno.h:40
40	    save_errno () {saved = get_errno ();}
__errno () at /usr/src/debug/cygwin-1.7.16-1/newlib/libc/errno/errno.c:13
13	  return &_REENT->_errno;
12	{
14	}
13	  return &_REENT->_errno;
14	}
terminate () at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:656
656	    semaphores.for_each (&semaphore::_terminate);
for_each (callback=<optimized out>, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:656
656	    semaphores.for_each (&semaphore::_terminate);
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:656
656	    semaphores.for_each (&semaphore::_terminate);
ilockincr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:37
37		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
lock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:62
62	    if (InterlockedIncrement ((long *) &lock_counter) != 1)
for_each (callback=<optimized out>, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:177
177	    list_node *cur = head;
178	    while (cur)
183	    mx.unlock ();
unlock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:183
183	    mx.unlock ();
ilockdecr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:49
49		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
unlock (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:68
68	    if (InterlockedDecrement ((long *) &lock_counter))
terminate () at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/thread.h:655
655	    save_errno save;
~save_errno (this=<optimized out>, __in_chrg=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygerrno.h:44
44	    ~save_errno () {errno = _impure_ptr->_errno = saved;}
__errno () at /usr/src/debug/cygwin-1.7.16-1/newlib/libc/errno/errno.c:13
13	  return &_REENT->_errno;
12	{
14	}
13	  return &_REENT->_errno;
14	}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:96
96	  for (int i = 0; i < (int) cygheap->fdtab.size; i++)
94	  HANDLE h = NULL;
96	  for (int i = 0; i < (int) cygheap->fdtab.size; i++)
98	      cygheap_fdget cfd (i, false, false);
cygheap_fdget (do_set_errno=false, lockit=false, fd=0, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygheap.h:474
474	    if (fd >= 0 && fd < (int) cygheap->fdtab.size && cygheap->fdtab[fd] != NULL)
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:96
96	  for (int i = 0; i < (int) cygheap->fdtab.size; i++)
98	      cygheap_fdget cfd (i, false, false);
cygheap_fdget (do_set_errno=false, lockit=false, fd=0, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygheap.h:474
474	    if (fd >= 0 && fd < (int) cygheap->fdtab.size && cygheap->fdtab[fd] != NULL)
479		fh->inc_refcnt ();
inc_refcnt (this=0x61273718) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygheap.h:479
479		fh->inc_refcnt ();
ilockincr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:37
37		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:102
102		  if (i == 2)
106		  cfd->close_with_arch ();
fhandler_base::close_with_arch (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.cc:1101
1101	{
1104	  if (usecount)
1115	  else if (!archetype)
1119	      cleanup ();
fhandler_pty_slave::cleanup (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler_tty.cc:573
573	{
579	  report_tty_counts (this, "closed", "");
573	{
579	  report_tty_counts (this, "closed", "");
580	}
fhandler_base::close_with_arch (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.cc:1120
1120	      if (archetype_usecount (-1) == 0)
_archetype_usecount (n=-1, ln=1120, fn=0x611d1f80 "int fhandler_base::close_with_arch()", 
    this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.h:320
320	    if (!archetype)
322	    archetype->usecount += n;
323	    if (strace.active ())
322	    archetype->usecount += n;
323	    if (strace.active ())
322	    archetype->usecount += n;
323	    if (strace.active ())
fhandler_base::close_with_arch (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.cc:1120
1120	      if (archetype_usecount (-1) == 0)
1128		  return 0;
1127		  debug_printf ("not closing archetype");
1139	}
close_all_files (norelease=false) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/syscalls.cc:107
107		  if (!norelease)
108		    cfd.release ();
release (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/cygheap.h:500
500	  void release () { cygheap->fdtab.release (fd); }
dtable::release (this=0x61272ad8, fd=0)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:242
242	{
243	  if (fds[fd]->need_fixup_before ())
242	{
243	  if (fds[fd]->need_fixup_before ())
fhandler_base::need_fixup_before (this=0x61273718)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.h:309
309	  virtual bool need_fixup_before () const {return false;}
dtable::release (this=0x61272ad8, fd=0)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:245
245	  fds[fd]->dec_refcnt ();
dec_refcnt (this=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/fhandler.h:186
186	  long dec_refcnt () {return InterlockedDecrement (&_refcnt);} 
ilockdecr (m=<optimized out>) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/winbase.h:49
49		": "=&r" (__res), "=m" (*m): "m" (*m): "cc");
dtable::release (this=0x61272ad8, fd=0)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:247
247	  if (fd <= 2)
246	  fds[fd] = NULL;
247	  if (fd <= 2)
248	    set_std_handle (fd);
set_std_handle (fd=0) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:66
66	{
67	  fhandler_base *fh = cygheap->fdtab[fd];
operator[] (fd=0, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:1088
1088	}
set_std_handle (fd=0) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:66
66	{
67	  fhandler_base *fh = cygheap->fdtab[fd];
68	  if (fd == 0)
67	  fhandler_base *fh = cygheap->fdtab[fd];
68	  if (fd == 0)
69	    SetStdHandle (std_consts[fd], fh ? fh->get_handle () : NULL);
0x61173a70 in SetStdHandle@8 () from /usr/bin/cygwin1.dll
Single stepping until exit from function SetStdHandle@8,
which has no line number information.
0x77474737 in UpdateResourceA () from /cygdrive/c/Windows/syswow64/kernel32.dll
Single stepping until exit from function UpdateResourceA,
which has no line number information.
0x77409998 in KERNEL32!GetNumberFormatEx () from /cygdrive/c/Windows/syswow64/kernel32.dll
Single stepping until exit from function KERNEL32!GetNumberFormatEx,
which has no line number information.
0x774ebc56 in SetStdHandle () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
Single stepping until exit from function SetStdHandle,
which has no line number information.
set_std_handle (fd=1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:66
66	{
67	  fhandler_base *fh = cygheap->fdtab[fd];
operator[] (fd=1, this=<optimized out>)
    at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:1088
1088	}
set_std_handle (fd=1) at /usr/src/debug/cygwin-1.7.16-1/winsup/cygwin/dtable.cc:66
66	{
67	  fhandler_base *fh = cygheap->fdtab[fd];
68	  if (fd == 0)
67	  fhandler_base *fh = cygheap->fdtab[fd];
68	  if (fd == 0)
70	  else if (fd <= 2)
71	    SetStdHandle (std_consts[fd], fh ? fh->get_output_handle () : NULL);
[Inferior 1 (process 2512) exited with code 0105400]

[-- Attachment #3: Type: text/plain, Size: 223 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

  reply	other threads:[~2012-08-14  4:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-08  4:51 Chris LeBlanc
2012-08-08 13:03 ` Jon TURNEY
2012-08-08 23:19   ` Chris LeBlanc
2012-08-09  2:19     ` Mark Geisert
2012-08-09  4:55       ` Chris LeBlanc
2012-08-13  4:24         ` Chris LeBlanc
2012-08-13 12:17           ` Jon TURNEY
2012-08-13 12:42             ` Corinna Vinschen
2012-08-14  4:42               ` Chris LeBlanc [this message]
2012-08-14  9:53                 ` Corinna Vinschen

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='CACAZVOxZHJvqtCpgat4=4APvi5eZ_aBUHfmcdRtrEMzQsYgjig@mail.gmail.com' \
    --to=crleblanc@gmail.com \
    --cc=cygwin-xfree@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).