Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 23 Apr 2003 15:18:32 -0400 From: stimonyhall AT netscape DOT net To: cygwin AT cygwin DOT com Subject: FCNTL.DLL causes illegal instruction w/ perl since upgrade MIME-Version: 1.0 Message-ID: <5BDE78A2.1D3A52E4.53864CF0@netscape.net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I recently upgraded to version 2.340.2.5 of cygwin on Win 98 SE and am seeing the following behavior: anything having to do with fcntl.dll generates the following error in Windows (not an error from the cygwin console): This program has perfromed an illegal operation and will be shutdown. If the problem persists, contact the program vendor: PERL caused an invalid page fault in module FCNTL.DLL at 017f:00b93198. Registers: EAX=00000000 CS=017f EIP=00b93198 EFLGS=00010246 EBX=00b96000 SS=0187 ESP=0073f558 EBP=0073f560 ECX=00000000 DS=0187 ESI=00b9479c FS=4867 EDX=8178beb4 ES=0187 EDI=610d1fd8 GS=0000 Bytes at CS:EIP: 8b 11 85 d2 74 15 89 f6 39 5a 0c 74 60 8b 42 14 Stack dump: 10120ee8 00000002 0073f570 00b91042 00b96000 0073f5d0 0073f580 61009903 00ba0000 00b90000 0073f5d0 61009d42 00ba0008 0073f598 0000001c 4e495747 This type of error message can be generated from something as simple as "perldoc -f print" to the following example script: #!/usr/bin/perl use warnings; use strict; use Fcntl; #use GDBM_File; #use File::Basename; # Global Variables - Section to change # my($hostname, $os, $kjp, $hw, $uplength, %thehost, @egz, %hostpatches); my(@patchlist, @rootpatchlist, %hostrootpatches, $update, @sortrootpatchlist); my @efiles = qw(one two three); @egz = qw(foo); foreach my $j (@egz) { foreach my $i (@efiles) { system("ls"); } } If I comment out use Fcntl; - the error does not occur. If I click on OK the script keeps on chugging and i get the desired results (My original code was much more complex - i just do an ls here). In the example code the error is generated in the foreach loop so I get it the error 3 times - but it still chugs through. I found two Fcntl.dll: one for perl and one for python. Here is the perl dll: -rwxr-xr-x 1 foo mkgroup 19968 Mar 30 12:18 /lib/perl5/5.8.0/cygwin- multi-64int/auto/Fcntl/Fcntl.dll Is there another Fcntl.dll I should be looking for? Can anyone give me direction on how to troubleshoot this problem further? JIM __________________________________________________________________ Try AOL and get 1045 hours FREE for 45 days! http://free.aol.com/tryaolfree/index.adp?375380 Get AOL Instant Messenger 5.1 for FREE! Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 -- 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/