Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > "getgrent" call in kernel 2.6.x /perl 5.8.3 ?

Reply
Thread Tools

"getgrent" call in kernel 2.6.x /perl 5.8.3 ?

 
 
Michael Faltmann
Guest
Posts: n/a
 
      09-17-2004
Can somebody help?Hello NG,

I have a problem here with a perl script which make use of the "getgrent"
system call.
This script has been working perfectly under various kernel revisions,
starting with 2.2.x. After upgrading to 2.6.4 in conjunction with system
update suse9.0 -->suse9.1, however, it fails.

It have the idea I has to with the length of the longest line in "group"
which is some 5000 Bytes long (1500 users approx.) . When I shorten this
line to around 3000 Bytes, the script seems to work.

System: suse9.1
kernel: 2.6.4 / 2.6.5
perl : 5.8.3



The script lines of interest:
-------------------
setgrent;
while (@groups=getgrent) {
$grname{$groups[2]}=$groups[0];
$grmitglieder{$groups[0]}=$groups[3];
$grgid{$groups[0]} = $groups[2];
}

the errormessage simply reads "Out of memory!"


Can somebody help?
MF

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel#autoload ignores custom monkey patched Kernel#require Lars Gierth Ruby 6 03-20-2010 10:35 PM
Why "Kernel.puts" and not "Kernel.put"? shadytrees@gmail.com Ruby 3 04-08-2006 01:42 PM
kernel hangs after "UNCOMPRESSING KERNEL OK BOOTING KERNEL" yogesh C Programming 3 02-12-2006 11:19 AM
Race condition on accept() system call using pthread on Red Hat ES 2.1 (kernel 2.4.9) fran C Programming 2 08-10-2004 08:09 PM
linux kernel system call gooch C Programming 3 10-06-2003 08:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57