in reply to Re: 32 Bit Perl causing segmentation fault if data is big
in thread 32 Bit Perl causing segmentation fault if data is big
Hi, Thanks for your reply. Here are the answers for your question:
-$ echo $? 139
- i am not aware of debugging perl core using GDB.
- i have written two small programs one using 32 bit perl and another the 64 bit perl . The 32 bit version core dumped where as the 64 bit did not.
-$ perl -v This is perl, v5.8.0 built for aix
-not yet. but installing a new version in professional env is very difficult as i need to get sign off from lot of people.
-no please help me how to do that.(debug build of perl)
using 32bit perl #!/usr/local/perl-5.6.1/bin/perl open FILE, "20100317131946.cmb11cd8.60054.jcl.cmp.sent" or die $!; my $line; my @lines; my $self = {}; my $i; while (<FILE>) { $line = $_; @lines= split("~",$line); #@{ $self->{lines} } = split("~",$line); print "Line copied into the data structure successfully\n"; #foreach $i(@lines) #{ # print $i; #} }
using 64bit perl
#!/usr/opt/perl5/bin/perl5.8.2_64bit open FILE, "20100317131946.cmb11cd8.60054.jcl.cmp.sent" or die $!; my $line; #my @lines; my $self = {}; my $i; while (<FILE>) { $line = $_; # @lines= split("~",$line); @{ $self->{lines} } = split("~",$line); print "Lines copied into the data structure successfully\n"; # foreach $i(@lines) #{ # print $i; # } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: 32 Bit Perl causing segmentation fault if data is big
by ikegami (Patriarch) on Mar 18, 2010 at 23:51 UTC | |
by peacelover1976 (Initiate) on Mar 19, 2010 at 00:00 UTC | |
by ikegami (Patriarch) on Mar 19, 2010 at 00:22 UTC | |
|
Re^3: 32 Bit Perl causing segmentation fault if data is big
by salva (Canon) on Mar 19, 2010 at 10:41 UTC |