CC: | Jean McAllister <Jean.Mcallister [...] infor.com>, Mark Hewitt <Mark.Hewitt [...] infor.com> |
Subject: | Win32::NetAdmin::LocalGroupIsMember crashes 64-bit Perl |
Date: | Mon, 13 Oct 2014 15:49:52 +0000 |
To: | "bug-Win32-NetAdmin [...] rt.cpan.org" <bug-Win32-NetAdmin [...] rt.cpan.org> |
From: | Bruce Reed <Bruce.Reed [...] infor.com> |
This is in Version 0.12 of Win32::NetAdmin.
Calling LocalGroupIsMember('','Administrators',"$ENV{USERDOMAIN}\\$ENV{USERNAME}") crashes Perl when the current user is a domain login.
There is about a one second delay, then a GUI dialog is presented "Perl Command Line Interpreter has stopped working" ... "Close the program".
If run using the Perl Debugger, the debugger dies with this:
Signal SEGV at c:/Perl64/lib/perl5db.pl line 8499.
DB::diesignal("SEGV") called at test_Win32NetAdmin_test.perl line 16
eval {...} called at test_Win32NetAdmin_test.perl line 16
This only occurs with 64-bit Perl. I have discovered that the problem started with ActivePerl 5.18.2 (or 5.18.x) and Strawberry Perl 5.14.3.
ActivePerl 5.16.3 and earlier and Strawberry Perl 5.14.2 and earlier do not experience this issue.
All versions were tested with Win32::NetAdmin 0.12.
LocalGroupIsMember sometimes also crashes when using SERVER\\USERNAME or just USERNAME, but always crashes with DOMAIN\\USERNAME when USERNAME is a domain login.
[cid:image001.png@01CFE6C9.B10280E0]
Bruce Reed | Lead Software Engineer - Systems
office/mobile: 989 430 2897 | urgent: 9894302897@vtext.com<mailto:9894302897@vtext.com> | bruce.reed@infor.com<mailto:bruce.reed@infor.com> | http://www.infor.com
Message body not shown because it is not plain text.