This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Regex problem


Hi!

I tried to use the POSIX regular expression functions under cygwin, and I only got segmentation faults. My program is working fine under Linux, but dont run at all with cygwin. Maybe you can give me a hint, whats wrong or if it is a bug.

Here the source code:

-------------------
#include <sys/types.h>
#include <regex.h>
//#include <pcreposix.h>
#include <stdio.h>
#include <string.h>

#define NMATCH 10

const char s[] = "ssh://user:password@host.com:22";
const char regex[] = "ssh://(([a-z]+)(:(.+))?@)?([a-z.]+)(:([0-9]+))?";

int main(int argc, char *argv[])
{
regex_t *preg;
regmatch_t pmatch[NMATCH];
int i;
char buf[256];
char *p;
preg = NULL;


printf("regcomp...");

 if( regcomp( preg, regex, REG_ICASE | REG_EXTENDED ) != 0 )
   {
     printf("regcomp error!\n");
     return 1;
   }

printf("regexec...");

 if( regexec(preg, s, NMATCH, pmatch, 0) != 0 )
   {
     printf("regexec failed (no match?)! \n");
     return 1;
   }

for(i=0; i < NMATCH; i++) {
printf("%d: %d %d\n", i, pmatch[i].rm_so, pmatch[i].rm_eo);
if( pmatch[i].rm_so != -1 )
{
p = s;
memset(buf, 0, sizeof(buf));
strncpy(buf, p + pmatch[i].rm_so, pmatch[i].rm_eo-pmatch[i].rm_so);
printf("%s\n", buf);
}
}


 regfree(preg);
 return 0;
}
----------

I tried the normal regex POSIX functions and also the Perl-compatiable Regular Expressions POSIX emulation using the pcreposix header and library. However the result is always the same:

----
$ ./reex
Segmentation fault (core dumped)
----
Exception: STATUS_ACCESS_VIOLATION at eip=61075334
eax=00000007 ebx=0A0505E0 ecx=00000000 edx=00000000 esi=0022EE30 edi=0A050730
ebp=0022EEB8 esp=0022EE10 program=D:\cygwin\home\Kotan\reex.exe, pid 1696, threa
d main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
0022EEB8 61075334 (00000000, 00403020, 00000003, 0022EEE8)
0022F068 6108DB9F (00000001, 61784348, 0A0500A8, 0022F0C0)
0022F0A8 61005F34 (0022F0C0, 00E50000, 00000408, 7C98C1B0)
0022FF88 6100614B (00000000, 00000000, 00000000, 00000000)
End of stack trace
-------
When I am debugging it with ddd, I find out, that the stack seems to be manipulated by the regcomp function somehow, that the segmenation fault happens in cygwin_split_path by accessing adress 0. I also did a strace, where I dont find anything useful, but I attached it, if you want to look at it too..
The function regcomp seems always to segfault even if the regex string is much simpler or even empty.


So any hints, what could be wrong?

regards
 Daniel


**********************************************
Program name: D:\cygwin\home\Kotan\reex.exe (2700)
App version:  1005.11, api: 0.116
DLL version:  1005.11, api: 0.116
DLL build:    2004-09-04 23:17
OS version:   Windows NT-5.1
Heap size:    402653184
Date/Time:    2004-10-28 13:32:31
**********************************************
  633    1016 [main] reex 2700 environ_init: 0xA050008: !::=::\
  111    1127 [main] reex 2700 environ_init: 0xA050250: !D:=D:\cygwin\usr\X11R6\bin
   47    1174 [main] reex 2700 environ_init: 0xA050270: !EXITCODE=00000000
   42    1216 [main] reex 2700 environ_init: 0xA050288: ALLUSERSPROFILE=C:\Dokumente und Einstellungen\All Users.WINDOWS
   43    1259 [main] reex 2700 environ_init: 0xA0502D0: APPDATA=C:\Dokumente und Einstellungen\Kotan.DERB\Anwendungsdaten
   41    1300 [main] reex 2700 environ_init: 0xA050318: CLIENTNAME=Console
   41    1341 [main] reex 2700 environ_init: 0xA050330: COMMONPROGRAMFILES=C:\Programme\Gemeinsame Dateien
   41    1382 [main] reex 2700 environ_init: 0xA050368: COMPUTERNAME=DERB
   41    1423 [main] reex 2700 environ_init: 0xA050380: COMSPEC=C:\WINDOWS\system32\cmd.exe
   41    1464 [main] reex 2700 environ_init: 0xA0503A8: CVS_RSH=/bin/ssh
   41    1505 [main] reex 2700 environ_init: 0xA0503C0: CYGWIN_ROOT=\cygwin
   41    1546 [main] reex 2700 environ_init: 0xA0503D8: DISPLAY=127.0.0.1:0.0
   40    1586 [main] reex 2700 environ_init: 0xA0503F8: FP_NO_HOST_CHECK=NO
   44    1630 [main] reex 2700 getwinenv: can't set native for HOME= since no environ yet
   49    1679 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\home\Kotan, no-keep-rel, no-add-slash)
   36    1715 [main] reex 2700 normalize_win32_path: D:\cygwin\home\Kotan = normalize_win32_path (D:\cygwin\home\Kotan)
   36    1751 [main] reex 2700 mount_info::conv_to_posix_path: /home/Kotan = conv_to_posix_path (D:\cygwin\home\Kotan)
   62    1813 [main] reex 2700 win_env::add_cache: posix /home/Kotan
   22    1835 [main] reex 2700 win_env::add_cache: native HOME=D:\cygwin\home\Kotan
   23    1858 [main] reex 2700 posify: env var converted to HOME=/home/Kotan
   42    1900 [main] reex 2700 environ_init: 0xA050430: HOME=/home/Kotan
   50    1950 [main] reex 2700 environ_init: 0xA050570: HOMEDRIVE=C:
   41    1991 [main] reex 2700 environ_init: 0xA050588: HOMEPATH=\Dokumente und Einstellungen\Kotan.DERB
   41    2032 [main] reex 2700 environ_init: 0xA0505C0: HOSTNAME=derb
   42    2074 [main] reex 2700 environ_init: 0xA0505D8: INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:
   42    2116 [main] reex 2700 environ_init: 0xA050648: LOGNAME=Kotan
   41    2157 [main] reex 2700 environ_init: 0xA050660: LOGONSERVER=\\DERB
   41    2198 [main] reex 2700 environ_init: 0xA050678: MAKE_MODE=unix
   41    2239 [main] reex 2700 environ_init: 0xA050690: MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man
   42    2281 [main] reex 2700 environ_init: 0xA050410: NUMBER_OF_PROCESSORS=1
   40    2321 [main] reex 2700 environ_init: 0xA0506F0: OLDPWD=/usr/X11R6/bin
   41    2362 [main] reex 2700 environ_init: 0xA050710: OS=Windows_NT
   42    2404 [main] reex 2700 getwinenv: can't set native for PATH= since no environ yet
   25    2429 [main] reex 2700 normalize_posix_path: src .
   37    2466 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\home\Kotan, no-keep-rel, no-add-slash)
   28    2494 [main] reex 2700 normalize_win32_path: D:\cygwin\home\Kotan = normalize_win32_path (D:\cygwin\home\Kotan)
   24    2518 [main] reex 2700 mount_info::conv_to_posix_path: /home/Kotan = conv_to_posix_path (D:\cygwin\home\Kotan)
   28    2546 [main] reex 2700 cwdstuff::get: posix /home/Kotan
   24    2570 [main] reex 2700 cwdstuff::get: (/home/Kotan) = cwdstuff::get (0x22ECF0, 260, 1, 0), errno 0
   25    2595 [main] reex 2700 normalize_posix_path: /home/Kotan/ = normalize_posix_path (.)
   25    2620 [main] reex 2700 mount_info::conv_to_win32_path: conv_to_win32_path (/home/Kotan)
  156    2776 [main] reex 2700 set_flags: flags: binary (0x2)
   31    2807 [main] reex 2700 mount_info::conv_to_win32_path: src_path /home/Kotan, dst D:\cygwin\home\Kotan, flags 0xA, rc 0
   96    2903 [main] reex 2700 symlink_info::check: not a symlink
   32    2935 [main] reex 2700 symlink_info::check: 0 = symlink.check (D:\cygwin\home\Kotan, 0x22E9B0) (0xA)
  124    3059 [main] reex 2700 path_conv::check: this->path(D:\cygwin\home\Kotan), has_acls(1)
   59    3118 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\usr\local\bin, keep-rel, no-add-slash)
   25    3143 [main] reex 2700 normalize_win32_path: D:\cygwin\usr\local\bin = normalize_win32_path (D:\cygwin\usr\local\bin)
   25    3168 [main] reex 2700 mount_info::conv_to_posix_path: /usr/local/bin = conv_to_posix_path (D:\cygwin\usr\local\bin)
   25    3193 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\bin, keep-rel, no-add-slash)
   24    3217 [main] reex 2700 normalize_win32_path: D:\cygwin\bin = normalize_win32_path (D:\cygwin\bin)
   23    3240 [main] reex 2700 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (D:\cygwin\bin)
   24    3264 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\bin, keep-rel, no-add-slash)
   24    3288 [main] reex 2700 normalize_win32_path: D:\cygwin\bin = normalize_win32_path (D:\cygwin\bin)
   23    3311 [main] reex 2700 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (D:\cygwin\bin)
   25    3336 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\usr\X11R6\bin, keep-rel, no-add-slash)
   24    3360 [main] reex 2700 normalize_win32_path: D:\cygwin\usr\X11R6\bin = normalize_win32_path (D:\cygwin\usr\X11R6\bin)
   24    3384 [main] reex 2700 mount_info::conv_to_posix_path: /usr/X11R6/bin = conv_to_posix_path (D:\cygwin\usr\X11R6\bin)
   24    3408 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (.\, keep-rel, add-slash)
   24    3432 [main] reex 2700 mount_info::conv_to_posix_path: ./ = conv_to_posix_path (.\)
   23    3455 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\bin, keep-rel, no-add-slash)
   24    3479 [main] reex 2700 normalize_win32_path: D:\cygwin\bin = normalize_win32_path (D:\cygwin\bin)
   24    3503 [main] reex 2700 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (D:\cygwin\bin)
   23    3526 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\usr\X11R6\bin, keep-rel, no-add-slash)
   24    3550 [main] reex 2700 normalize_win32_path: D:\cygwin\usr\X11R6\bin = normalize_win32_path (D:\cygwin\usr\X11R6\bin)
   25    3575 [main] reex 2700 mount_info::conv_to_posix_path: /usr/X11R6/bin = conv_to_posix_path (D:\cygwin\usr\X11R6\bin)
   24    3599 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINDOWS\system32, keep-rel, no-add-slash)
   23    3622 [main] reex 2700 normalize_win32_path: c:\WINDOWS\system32 = normalize_win32_path (c:\WINDOWS\system32)
   25    3647 [main] reex 2700 mount_info::conv_to_posix_path: /cygdrive/c/WINDOWS/system32 = conv_to_posix_path (c:\WINDOWS\system32)
   24    3671 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINDOWS, keep-rel, no-add-slash)
   24    3695 [main] reex 2700 normalize_win32_path: c:\WINDOWS = normalize_win32_path (c:\WINDOWS)
   24    3719 [main] reex 2700 mount_info::conv_to_posix_path: /cygdrive/c/WINDOWS = conv_to_posix_path (c:\WINDOWS)
   24    3743 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINDOWS\System32\Wbem, keep-rel, no-add-slash)
   24    3767 [main] reex 2700 normalize_win32_path: c:\WINDOWS\System32\Wbem = normalize_win32_path (c:\WINDOWS\System32\Wbem)
   24    3791 [main] reex 2700 mount_info::conv_to_posix_path: /cygdrive/c/WINDOWS/System32/Wbem = conv_to_posix_path (c:\WINDOWS\System32\Wbem)
   25    3816 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Programme\Gemeinsame Dateien\GTK\2.0\bin, keep-rel, no-add-slash)
   29    3845 [main] reex 2700 normalize_win32_path: c:\Programme\Gemeinsame Dateien\GTK\2.0\bin = normalize_win32_path (c:\Programme\Gemeinsame Dateien\GTK\2.0\bin)
   35    3880 [main] reex 2700 mount_info::conv_to_posix_path: /cygdrive/c/Programme/Gemeinsame Dateien/GTK/2.0/bin = conv_to_posix_path (c:\Programme\Gemeinsame Dateien\GTK\2.0\bin)
   26    3906 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Programme\ZipGenius 5, keep-rel, no-add-slash)
   24    3930 [main] reex 2700 normalize_win32_path: c:\Programme\ZipGenius 5 = normalize_win32_path (c:\Programme\ZipGenius 5)
   24    3954 [main] reex 2700 mount_info::conv_to_posix_path: /cygdrive/c/Programme/ZipGenius 5 = conv_to_posix_path (c:\Programme\ZipGenius 5)
   25    3979 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (c:\utils, keep-rel, no-add-slash)
   24    4003 [main] reex 2700 normalize_win32_path: c:\utils = normalize_win32_path (c:\utils)
   23    4026 [main] reex 2700 mount_info::conv_to_posix_path: /cygdrive/c/utils = conv_to_posix_path (c:\utils)
   63    4089 [main] reex 2700 win_env::add_cache: posix /usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:./:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Programme/Gemeinsame Dateien/GTK/2.0/bin:/cygdrive/c/Programme/ZipGenius 5:/cygdrive/c/utils
   27    4116 [main] reex 2700 win_env::add_cache: native PATH=D:\cygwin\usr\local\bin;D:\cygwin\bin;D:\cygwin\bin;D:\cygwin\usr\X11R6\bin;.\;D:\cygwin\bin;D:\cygwin\usr\X11R6\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Programme\Gemeinsame Dateien\GTK\2.0\bin;c:\Programme\ZipGenius 5;c:\utils
   26    4142 [main] reex 2700 posify: env var converted to PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:./:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Programme/Gemeinsame Dateien/GTK/2.0/bin:/cygdrive/c/Programme/ZipGenius 5:/cygdrive/c/utils
   46    4188 [main] reex 2700 environ_init: 0xA050830: PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:./:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Programme/Gemeinsame Dateien/GTK/2.0/bin:/cygdrive/c/Programme/ZipGenius 5:/cygdrive/c/utils
   49    4237 [main] reex 2700 environ_init: 0xA050728: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
   42    4279 [main] reex 2700 environ_init: 0xA050768: PRINTER=\\tomate\raw
   41    4320 [main] reex 2700 environ_init: 0xA050788: PROCESSOR_ARCHITECTURE=x86
   42    4362 [main] reex 2700 environ_init: 0xA0507A8: PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 1, AuthenticAMD
   42    4404 [main] reex 2700 environ_init: 0xA0507F0: PROCESSOR_LEVEL=6
   41    4445 [main] reex 2700 environ_init: 0xA050808: PROCESSOR_REVISION=0801
   42    4487 [main] reex 2700 environ_init: 0xA050CD0: PROGRAMFILES=C:\Programme
   40    4527 [main] reex 2700 environ_init: 0xA050CF0: PROMPT=$P$G
   41    4568 [main] reex 2700 environ_init: 0xA050D00: PS1=\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ 
   42    4610 [main] reex 2700 environ_init: 0xA050D48: PWD=/home/Kotan
   40    4650 [main] reex 2700 environ_init: 0xA050D60: SESSIONNAME=Console
   41    4691 [main] reex 2700 environ_init: 0xA050D78: SHLVL=1
   40    4731 [main] reex 2700 environ_init: 0xA050D88: SYSTEMDRIVE=C:
   41    4772 [main] reex 2700 environ_init: 0xA050DA0: SYSTEMROOT=C:\WINDOWS
   42    4814 [main] reex 2700 getwinenv: can't set native for TEMP= since no environ yet
   50    4864 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp, no-keep-rel, no-add-slash)
   24    4888 [main] reex 2700 normalize_win32_path: c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp = normalize_win32_path (c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp)
   25    4913 [main] reex 2700 mount_info::conv_to_posix_path: /cygdrive/c/DOKUME~1/KOTAN~1.DER/LOKALE~1/Temp = conv_to_posix_path (c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp)
   64    4977 [main] reex 2700 win_env::add_cache: posix /cygdrive/c/DOKUME~1/KOTAN~1.DER/LOKALE~1/Temp
   22    4999 [main] reex 2700 win_env::add_cache: native TEMP=c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp
   22    5021 [main] reex 2700 posify: env var converted to TEMP=/cygdrive/c/DOKUME~1/KOTAN~1.DER/LOKALE~1/Temp
   41    5062 [main] reex 2700 environ_init: 0xA050DF0: TEMP=/cygdrive/c/DOKUME~1/KOTAN~1.DER/LOKALE~1/Temp
   42    5104 [main] reex 2700 environ_init: 0xA050F68: TERM=xterm
   55    5159 [main] reex 2700 environ_init: 0xA050F78: TERMCAP=xterm-r6|xterm|xterm X11R6 version:am:km:mi:ms:xn:co#80:it#8:li#24:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:
   64    5223 [main] reex 2700 getwinenv: can't set native for TMP= since no environ yet
   42    5265 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp, no-keep-rel, no-add-slash)
   23    5288 [main] reex 2700 normalize_win32_path: c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp = normalize_win32_path (c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp)
   25    5313 [main] reex 2700 mount_info::conv_to_posix_path: /cygdrive/c/DOKUME~1/KOTAN~1.DER/LOKALE~1/Temp = conv_to_posix_path (c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp)
   61    5374 [main] reex 2700 win_env::add_cache: posix /cygdrive/c/DOKUME~1/KOTAN~1.DER/LOKALE~1/Temp
   22    5396 [main] reex 2700 win_env::add_cache: native TMP=c:\DOKUME~1\KOTAN~1.DER\LOKALE~1\Temp
   23    5419 [main] reex 2700 posify: env var converted to TMP=/cygdrive/c/DOKUME~1/KOTAN~1.DER/LOKALE~1/Temp
   41    5460 [main] reex 2700 environ_init: 0xA051228: TMP=/cygdrive/c/DOKUME~1/KOTAN~1.DER/LOKALE~1/Temp
   42    5502 [main] reex 2700 environ_init: 0xA0513A0: USER=Kotan
   40    5542 [main] reex 2700 environ_init: 0xA0513B0: USERDOMAIN=DERB
   41    5583 [main] reex 2700 environ_init: 0xA0513C8: USERNAME=Kotan
   41    5624 [main] reex 2700 environ_init: 0xA0513E0: USERPROFILE=C:\Dokumente und Einstellungen\Kotan.DERB
   41    5665 [main] reex 2700 environ_init: 0xA051420: WINDIR=C:\WINDOWS
   40    5705 [main] reex 2700 environ_init: 0xA051438: WINDOWID=2097166
   41    5746 [main] reex 2700 environ_init: 0xA050DC0: XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
   41    5787 [main] reex 2700 environ_init: 0xA051450: XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
   48    5835 [main] reex 2700 environ_init: 0xA051478: XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
   42    5877 [main] reex 2700 environ_init: 0xA0514A8: XNLSPATH=/usr/X11R6/lib/X11/locale
   40    5917 [main] reex 2700 environ_init: 0xA0514D0: _=/usr/bin/strace
   45    5962 [main] reex 2700 pinfo_init: pid 2700, pgid 2700
  114    6076 [main] reex 2700 dtable::extend: size 32, fds 0x61780CC8
   46    6122 [main] reex 2700 normalize_posix_path: src /etc/passwd
   27    6149 [main] reex 2700 normalize_posix_path: /etc/passwd = normalize_posix_path (/etc/passwd)
   24    6173 [main] reex 2700 mount_info::conv_to_win32_path: conv_to_win32_path (/etc/passwd)
   26    6199 [main] reex 2700 set_flags: flags: binary (0x2)
   23    6222 [main] reex 2700 mount_info::conv_to_win32_path: src_path /etc/passwd, dst D:\cygwin\etc\passwd, flags 0xA, rc 0
   58    6280 [main] reex 2700 symlink_info::check: not a symlink
   31    6311 [main] reex 2700 symlink_info::check: 0 = symlink.check (D:\cygwin\etc\passwd, 0x22E980) (0xA)
   26    6337 [main] reex 2700 path_conv::check: this->path(D:\cygwin\etc\passwd), has_acls(1)
  242    6579 [main] reex 2700 etc::test_file_change: FindFirstFile succeeded
   34    6613 [main] reex 2700 etc::test_file_change: fn[1] D:\cygwin\etc\passwd res 1
   24    6637 [main] reex 2700 etc::init: fn[1] D:\cygwin\etc\passwd, curr_ix 1
   24    6661 [main] reex 2700 pwdgrp::load: /etc/passwd
  943    7604 [main] reex 2700 pwdgrp::load: /etc/passwd curr_lines 8
   46    7650 [main] reex 2700 pwdgrp::load: /etc/passwd load succeeded
   58    7708 [main] reex 2700 normalize_posix_path: src /etc/group
   29    7737 [main] reex 2700 normalize_posix_path: /etc/group = normalize_posix_path (/etc/group)
   27    7764 [main] reex 2700 mount_info::conv_to_win32_path: conv_to_win32_path (/etc/group)
   47    7811 [main] reex 2700 set_flags: flags: binary (0x2)
   25    7836 [main] reex 2700 mount_info::conv_to_win32_path: src_path /etc/group, dst D:\cygwin\etc\group, flags 0xA, rc 0
   63    7899 [main] reex 2700 symlink_info::check: not a symlink
   30    7929 [main] reex 2700 symlink_info::check: 0 = symlink.check (D:\cygwin\etc\group, 0x22E940) (0xA)
   29    7958 [main] reex 2700 path_conv::check: this->path(D:\cygwin\etc\group), has_acls(1)
  114    8072 [main] reex 2700 etc::test_file_change: FindFirstFile succeeded
   30    8102 [main] reex 2700 etc::test_file_change: fn[2] D:\cygwin\etc\group res 1
   24    8126 [main] reex 2700 etc::init: fn[2] D:\cygwin\etc\group, curr_ix 2
   23    8149 [main] reex 2700 pwdgrp::load: /etc/group
  199    8348 [main] reex 2700 pwdgrp::load: /etc/group curr_lines 12
   25    8373 [main] reex 2700 pwdgrp::load: /etc/group load succeeded
   43    8416 [main] reex 2700 cygheap_user::ontherange: what 2, pw 0xA051978
   31    8447 [main] reex 2700 cygheap_user::ontherange: HOME is already in the environment /home/Kotan
  196    8643 [main] reex 2700 sigproc_init: process/signal handling enabled(1)
   37    8680 [main] reex 2700 __cygwin_lock_lock: threadcount 1.  not locking
   50    8730 [main] reex 2700 __cygwin_lock_unlock: threadcount 1.  not unlocking
   71    8801 [main] reex 2700 build_argv: argv[0] = 'reex'
   21    8822 [main] reex 2700 build_argv: argc 1
  208    9030 [sig] reex 2700 wait_sig: entering ReadFile loop, readsig 0x6F8, myself->sendsig 0x6F4
   92    9122 [main] reex 2700 build_fh_pc: fh 0x61780E30
   35    9157 [main] reex 2700 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   26    9183 [main] reex 2700 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   25    9208 [main] reex 2700 fhandler_base::set_flags: filemode set to binary
   25    9233 [main] reex 2700 fhandler_base::init: created new fhandler_base for handle 0x664, bin 1
   25    9258 [main] reex 2700 dtable::init_std_file_from_handle: fd 0, handle 0x664
 6345   15603 [main] reex 2700 handle_to_fn: nt name '\Device\HarddiskVolume2\cygwin\home\Kotan\trace'
 1123   16726 [main] reex 2700 handle_to_fn: current match '\Device\HarddiskVolume2'
  274   17000 [main] reex 2700 handle_to_fn: derived path 'D:\cygwin\home\Kotan\trace'
   35   17035 [main] reex 2700 mount_info::conv_to_posix_path: conv_to_posix_path (D:\cygwin\home\Kotan\trace, no-keep-rel, no-add-slash)
   30   17065 [main] reex 2700 normalize_win32_path: D:\cygwin\home\Kotan\trace = normalize_win32_path (D:\cygwin\home\Kotan\trace)
   31   17096 [main] reex 2700 mount_info::conv_to_posix_path: /home/Kotan/trace = conv_to_posix_path (D:\cygwin\home\Kotan\trace)
   31   17127 [main] reex 2700 normalize_posix_path: src /home/Kotan/trace
   28   17155 [main] reex 2700 normalize_posix_path: /home/Kotan/trace = normalize_posix_path (/home/Kotan/trace)
   27   17182 [main] reex 2700 mount_info::conv_to_win32_path: conv_to_win32_path (/home/Kotan/trace)
   31   17213 [main] reex 2700 set_flags: flags: binary (0x2)
   25   17238 [main] reex 2700 mount_info::conv_to_win32_path: src_path /home/Kotan/trace, dst D:\cygwin\home\Kotan\trace, flags 0xA, rc 0
   98   17336 [main] reex 2700 symlink_info::check: not a symlink
   33   17369 [main] reex 2700 symlink_info::check: 0 = symlink.check (D:\cygwin\home\Kotan\trace, 0x22E800) (0xA)
   45   17414 [main] reex 2700 path_conv::check: this->path(D:\cygwin\home\Kotan\trace), has_acls(1)
   41   17455 [main] reex 2700 build_fh_pc: fh 0x61781038
   38   17493 [main] reex 2700 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   26   17519 [main] reex 2700 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   36   17555 [main] reex 2700 fhandler_base::set_flags: filemode set to binary
   35   17590 [main] reex 2700 fhandler_base::init: created new fhandler_base for handle 0x718, bin 1
   26   17616 [main] reex 2700 dtable::init_std_file_from_handle: fd 1, handle 0x718
   79   17695 [main] reex 2700 build_fh_pc: fh 0x61781240
   28   17723 [main] reex 2700 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   25   17748 [main] reex 2700 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   24   17772 [main] reex 2700 fhandler_base::set_flags: filemode set to binary
   23   17795 [main] reex 2700 fhandler_base::init: created new fhandler_base for handle 0x7FC, bin 1
   25   17820 [main] reex 2700 dtable::init_std_file_from_handle: fd 2, handle 0x7FC
   82   17902 [main] reex 2700 open_shared: name (null), shared 0xA020000 (wanted 0xA020000), h 0x6EC
   36   17938 [main] reex 2700 _pinfo::set_ctty: checking if /dev/tty-1 changed
   26   17964 [main] reex 2700 _pinfo::set_ctty: attached tty1073741824 sid 2700, pid 2700, tty->pgid 2700, tty->sid 2700
   26   17990 [main] reex 2700 _pinfo::set_ctty: resetting tty1073741824 sid.  Was 2700, now 2700.  pgid was 0, now 2700.
 1398   19388 [main] reex 2700 __cygwin_lock_lock: threadcount 1.  not locking
  125   19513 [main] reex 2700 __cygwin_lock_unlock: threadcount 1.  not unlocking
   29   19542 [main] reex 2700 dll_crt0_1: user_data->main 0x401060
   29   19571 [main] reex 2700 wait_for_sigthread: wait_sig_inited 0x708
  191   19762 [main] reex 2700 __cygwin_lock_lock: threadcount 1.  not locking
   27   19789 [main] reex 2700 __cygwin_lock_unlock: threadcount 1.  not unlocking
   31   19820 [main] reex 2700 __cygwin_lock_lock: threadcount 1.  not locking
   62   19882 [main] reex 2700 fhandler_base::fstat_by_handle: 1 = GetFileInformationByHandle (D:\cygwin\home\Kotan\trace, 1816)
   38   19920 [main] reex 2700 get_file_attribute: file: D:\cygwin\home\Kotan\trace
  110   20030 [main] reex 2700 cygpsid::debug_print: get_sids_info: owner SID = S-1-5-21-861567501-1960408961-725345543-1003
   32   20062 [main] reex 2700 cygpsid::debug_print: get_sids_info: group SID = S-1-5-21-861567501-1960408961-725345543-513
   39   20101 [main] reex 2700 get_info_from_sd: ACL 1A4, uid 1003, gid 513
   48   20149 [main] reex 2700 fhandler_base::fstat_helper: 0 = fstat (, 0x22D940) st_atime=4180D8CF st_size=22676, st_mode=0x81A4, st_ino=40826, sizeof=96
  568   20717 [main] reex 2700 fstat64: 0 = fstat (1, 0x22D940)
  113   20830 [main] reex 2700 __cygwin_lock_unlock: threadcount 1.  not unlocking
  355   21185 [main] reex 2700 handle_exceptions: In cygwin_except_handler exc 0xC0000005 at 0x61075334 sp 0x22EE00
   33   21218 [main] reex 2700 handle_exceptions: In cygwin_except_handler sig 11 at 0x61075334
  237   21455 [main] reex 2700 handle_exceptions: In cygwin_except_handler calling 0x0
   37   21492 [main] reex 2700 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
 6759   28251 [main] reex 2700 try_to_debug: debugger_command ''
  431   28682 [main] reex 2700 open_stackdumpfile: Dumping stack trace to reex.exe.stackdump
328363  357045 [main] reex 2700 signal_exit: about to call do_exit (18B00)
   48  357093 [main] reex 2700 do_exit: do_exit (101120), exit_state 0
   39  357132 [main] reex 2700 void: 0x0 = signal (20, 0x1)
   25  357157 [main] reex 2700 void: 0x0 = signal (1, 0x1)
   23  357180 [main] reex 2700 void: 0x0 = signal (2, 0x1)
   22  357202 [main] reex 2700 void: 0x0 = signal (3, 0x1)
   41  357243 [main] reex 2700 fhandler_base::close: closing '/home/Kotan/trace' handle 0x718
   35  357278 [main] reex 2700 sigproc_terminate: entering
   49  357327 [main] reex 2700 proc_terminate: nchildren 0, nzombies 0
   27  357354 [main] reex 2700 proc_terminate: leaving
   60  357414 [main] reex 2700 __to_clock_t: dwHighDateTime 0, dwLowDateTime 156250
   24  357438 [main] reex 2700 __to_clock_t: total 00000000 0000000F
   24  357462 [main] reex 2700 __to_clock_t: dwHighDateTime 0, dwLowDateTime 156250
   23  357485 [main] reex 2700 __to_clock_t: total 00000000 0000000F
  712  358197 [main] reex 2700 _pinfo::exit: Calling ExitProcess 101120

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]