Hi

I am trying to use the Win32::NetAdmin module(0.12 under site/lib and 0.11 under lib) to get the local admin users via the LocalGroupGetMembersWithDomain() function call. My program dies and kicks out of the cmd. When run under debug mode, it gives this error. This is with Perl64 on a Windows 64 bit machine. The script fails in one particular machine only. Is this a version compatibility issue between the module and the windows system ? Following is a simple test script to check the modules functionality.

System Spec: Windows 64 bit ActiveStatePerl 5.16.3 for X64 Win32::NetAdmin 0.12(C:/Perl64/site/lib/)

use strict; use warnings; use Win32::NetAdmin; my %UserList = (); my $server_name = 'Server'; my $local_group_name = 'Administrators'; Win32::NetAdmin::LocalGroupGetMembersWithDomain($server_name, $local_g +roup_name, \%UserList); my @users = keys(%UserList); foreach my $user (@users) { print "User: $user\n"; }
Error:
Signal SEGV at C:/Perl64/lib/perl5db.pl line 7597 , <INFILE> line 23. +DB::diesignal('SEGV')called at GetLocalAdmins.pl

Searching about SEGV showed its difficult to trace. I am at not sure where else to look about this error. Please guide me to any pointers to go digging about.

Thanks

In reply to SEGV signal termination in Win32::NetAdmin ver 0.12 on Win64 w ActiveStatePerl5.16.3 X64 by suzun30

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.