This is the mail archive of the cygwin@cygwin.com 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]

Possible bug in strace functionality (or CVS)


I find that the attached script fails on Windows 98 and Windows 200 when
running Cygwin 1.3.2 with CVS 1.11.  A core dump occurs in the "strace cvs
commit" line.  Removing the "strace" term allows the script to run to
completion.  I hope that someone with greater familiarity with how strace
works will be able to take a look at it.

The strace shows that an open call succeeds, and an uncaught exception
occurs after the open returns.

Neil Erskine

voice 902 423 7727 ext. 230
fax 902 422 8108

---------------- Shell script ----------------
#!/bin/sh

set -x

Repository=`pwd`/CvsRepository
Sources=/cygdrive/C/cmfgen

echo "Create Repository"
cvs -d $Repository init

echo "Create empty folder: $Sources"
rm -rf $Sources
mkdir $Sources
cd $Sources

echo "CVS Import"
cvs -d $Repository import -m "init message" cmfgen erskine start

echo "Checkout the cmfgen Module"
( cd .. ; cvs -d $Repository checkout cmfgen )

echo Hello > test.c

echo "CVS Add the new files"
cvs add *

echo "attempting cvs commit"
strace cvs -d $Repository commit -m "add message" > strace.out  2>&1

--------------- Extract from strace output -------------

  221  742522 [main] cvs 620085 _open: open
(/cygdrive/h/CvsRepository/cmfgen/,test.c,, 0x10E01)
  214  742736 [main] cvs 620085 dtable::build_fhandler: some disk file - cb
60, fd 3, fh 0x146C1C54
  175  742911 [main] cvs 620085 fhandler_disk_file::open:
(/cygdrive/h/CvsRepository/cmfgen/,test.c,, 0x10E01)
  185  743096 [main] cvs 620085 mount_info::conv_to_win32_path:
conv_to_win32_path (/cygdrive/h/CvsRepository/cmfgen/,test.c,)
  175  743271 [main] cvs 620085 normalize_posix_path: src
/cygdrive/h/CvsRepository/cmfgen/,test.c,
  174  743445 [main] cvs 620085 normalize_posix_path:
/cygdrive/h/CvsRepository/cmfgen/,test.c, = normalize_posix_path
(/cygdrive/h/CvsRepository/cmfgen/,test.c,)
  184  743629 [main] cvs 620085 mount_info::cygdrive_win32_path: src
'/cygdrive/h/CvsRepository/cmfgen/,test.c,', dst
'h:\CvsRepository\cmfgen\,test.c,'
  174  743803 [main] cvs 620085 mount_info::conv_to_win32_path:
h:\CvsRepository\cmfgen\,test.c,(rel), h:\CvsRepository\cmfgen\,test.c,(abs)
0x20(flags) = conv_to_win32_path (/cygdrive/h/CvsRepository/cmfgen/,test.c,)
 1046  744849 [main] cvs 620085 symlink_info::check: GetFileAttributesA
(h:\CvsRepository\cmfgen\,test.c,) failed
  241  745090 [main] cvs 620085 geterrno_from_win_error: windows error 2 ==
errno 2
 1181  746271 [main] cvs 620085 symlink_info::check: GetFileAttributesA
(h:\CvsRepository\cmfgen\,test.c,.lnk) failed
  268  746539 [main] cvs 620085 geterrno_from_win_error: windows error 2 ==
errno 2
  169  746708 [main] cvs 620085 symlink_info::check: 0 = symlink.check
(h:\CvsRepository\cmfgen\,test.c,, 0x268F031) (0x20)
  701  747409 [main] cvs 620085 symlink_info::check: not a symlink
  201  747610 [main] cvs 620085 symlink_info::check: 0 = symlink.check
(h:\CvsRepository\cmfgen, 0x268F031) (0x0)
 1282  748892 [main] cvs 620085 path_conv::check: GetVolumeInformation(h:\)
= OK, full_path(h:\CvsRepository\cmfgen\,test.c,), set_has_acls(0)
  230  749122 [main] cvs 620085 fhandler_base::open:
(h:\CvsRepository\cmfgen\,test.c,, 0x10E01)
 1530  750652 [main] cvs 620085 fhandler_base::open: 0x58 = CreateFileA
(h:\CvsRepository\cmfgen\,test.c,, 0x40000000, 0x3, 0x6108F13C, 0x1, 0x80,
0)
  251  750903 [main] cvs 620085 fhandler_base::open: filemode set to binary
  197  751100 [main] cvs 620085 fhandler_base::open: 1 = fhandler_base::open
(h:\CvsRepository\cmfgen\,test.c,, 0x10E01)
  177  751277 [main] cvs 620085 fhandler_disk_file::open: 1 =
fhandler_disk_file::open (h:\CvsRepository\cmfgen\,test.c,, 0x10E01)
  178  751455 [main] cvs 620085 _open: 3 = open
(/cygdrive/h/CvsRepository/cmfgen/,test.c,, 0x10E01)
  285  751740 [main] cvs 620085 handle_exceptions: In cygwin_except_handler
exc 0xC0000005 at 0x61049DFC sp 0x268CC94
  181  751921 [main] cvs 620085 handle_exceptions: In cygwin_except_handler
sig = 11 at 0x61049DFC
  171  752092 [main] cvs 620085 handle_exceptions: In cygwin_except_handler
calling 0x0
 752261 [main] cvs 620085 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
  169  752261 [main] cvs 620085 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
 780031 [main] cvs 620085 stackdump: Dumping stack trace to
CVS.EXE.stackdump
27770  780031 [main] cvs 620085 stackdump: Dumping stack trace to
CVS.EXE.stackdump
118224  898255 [main] cvs 620085 try_to_debug: debugger_command ''
  758  899013 [main] cvs 620085 signal_exit: about to call do_exit (18B00)
  208  899221 [main] cvs 620085 do_exit: do_exit (101120)
  237  899458 [main] cvs 620085 void: 0x0 = signal (20, 0x1)
  207  899665 [main] cvs 620085 void: 0x468A94 = signal (1, 0x1)
  206  899871 [main] cvs 620085 void: 0x468A94 = signal (2, 0x1)
  206  900077 [main] cvs 620085 void: 0x468A94 = signal (3, 0x1)
  291  900368 [main] cvs 620085 fhandler_base::close: handle 0x2C
  429  900797 [main] cvs 620085 fhandler_base::close: handle 0x4C
  334  901131 [main] cvs 620085 fhandler_base::close: handle 0x58
 1002  902133 [main] cvs 620085 proc_terminate: nchildren 0, nzombies 0
  246  902379 [main] cvs 620085 proc_terminate: leaving
  206  902585 [main] cvs 620085 sigproc_terminate: entering
  249  902834 [main] cvs 620085 sigproc_terminate: done
  472  903306 [main] cvs 620085 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 0
  213  903519 [main] cvs 620085 __to_clock_t: total 00000000 00000000
  210  903729 [main] cvs 620085 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 0
  206  903935 [main] cvs 620085 __to_clock_t: total 00000000 00000000
  206  904141 [main] cvs 620085 _pinfo::exit: Calling ExitProcess 101120
>


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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