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: Sat, 4 Jan 2003 08:35:37 +0800 From: Greg Matheson To: cygwin AT cygwin DOT com Subject: Re: perl error messages with cygwin 1.3.18-1 Message-ID: <20030104083537.B7675@ms> Mail-Followup-To: cygwin AT cygwin DOT com References: <20030102163808 DOT A3730 AT ms> <3E141C7B DOT 3060605 AT atrixnet DOT com> <381781820402 DOT 20030103114859 AT familiehaase DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <381781820402.20030103114859@familiehaase.de>; from gp@familiehaase.de on Fri, Jan 03, 2003 at 11:48:59 +0100 On Fri, 03 Jan 2003, Gerrit P. Haase wrote: > [...perl pagefaults...] > > I think this was only happening when something tried to fork(). Couldn't say > > exactly. > Can you (or someone else) can provide a small script which demonstrates > the failure, I'm just running a CPAN shell which is loading lots of > modules and it works well here. Here is perldoc perlfaq9 (?)'s mailsending routine: #!/bin/perl # use CPAN; open(SENDMAIL, "|/usr/bin/exim -t") or die "Can't fork for sendmail: $!\n"; print SENDMAIL <<"EOF"; From: User Originating Mail To: Final Destination Subject: A relevant subject line Body of the message goes here after the blank line in as many lines as you like. EOF close(SENDMAIL) or warn "sendmail didn't close nicely"; There are no error messages. But, uncomment the 'use CPAN', or any other module of your choice, and you will get 6 (number depending on the module) messages like this: PERL caused an invalid page fault in module CYGWIN1.DLL at 017f:61084b28. Registers: EAX=00000000 CS=017f EIP=61084b28 EFLGS=00010206 EBX=00b95000 SS=0187 ESP=0073f338 EBP=0073f340 ECX=83a0a310 DS=0187 ESI=0073f368 FS=120f EDX=83a0a318 ES=0187 EDI=610c1a88 GS=0000 Bytes at CS:EIP: 8b 00 89 ec 5d c3 89 f6 55 89 e5 83 ec 08 a1 70 Stack dump: 610df648 610c1a88 0073f380 61070c3c 610c1968 00000000 00b9368c 6108706b 00000050 df0df046 0073f380 610895dc 610c1968 00000000 00000014 bff74277 All that you need is the open line: #!/bin/perl use CPAN; open(MAILER, '|/usr/bin/exim'); I still get 6 error messages. If I comment the 'use CPAN' back out, I don't get the error messages. -- Greg Matheson Alice: Which way should I go from here? Chinmin College Cat: That depends on where you want to go. Taiwan Penpals Archive Alice: I don't much care where. penpals.chinmin.edu.tw/ Cat: Then it doesn't matter which way you go. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/