Re: perl seg faults

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert Fausey wrote:
> On a system with a fresh install of 8.0 I get a segmentation fault with
> the following perl
> 
> #!/usr/bin/perl
> 
> @current_rpms = `rpm -qa`;
> 
> foreach $rpm ( @current_rpms ) {
>    chomp $rpm;
>    @words = split( /-[0-9]/, $rpm );
>    $RPMdb{ $words[0] } = $words[0];
> 
> }
> 
> BUT on a system that has been upgraded to 8.0 the script runs.  I used
> the same CDs on both systems and the CDs verifited.
> 
> 
> Rob Fausey.

I finally figured it out--it must have been the discussion on the man 
pages ;o)

Try calling the program with LANG=C.  Like this:

$ LANG=C ./perl.program

I am not sure why it has problems, but it does.  Now I can build the 
splash image using:

pngtopnm syslinux-splash.png | LANG=C ppmtolss16 > temp.lss16

Of course, you can add LANG=C to your favorite shell init script.

Does anyone have any idea why these perl programs won't work?

Forrest
-- 



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux