Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 121685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:00:35+00:00 2026-05-11T04:00:35+00:00

What are the most common reasons that I would be getting this error from

  • 0

What are the most common reasons that I would be getting this error from running a Perl script:

Memory fault(coredump) 

I am running two SQL commands beforehand that only store ~1500 rows each with 6 fields. The SQL works fine out of the script, so I don’t think I’m getting the error from that. And half of my code runs before it takes a bomb and gives me that error.

So what are the most common reasons for this error and what might my reason be?

EDIT – heres the code that works

my $i; $i = 0;     while ($DBS->SQLFetch() == *PLibdata::RET_OK)     {         while ($i != $colnamelen)         {             if ($i == 1)             {                 $rowfetch = $DBS->{Row}->GetCharValue($colname[$i]);                 $rowfetch =~ s/(?=..$)/:/;                 printline($rowfetch);                 $i++;                    }             if ($i == 2)             {                 $rowfetch = $DBS->{Row}->GetCharValue($colname[$i]);                 $rowfetch =~ s/(?=..$)/:/;                 printline($rowfetch);                 $i++;                    }             if ($i == 10)             {                 $rowfetch = $DBS->{Row}->GetCharValue('meetdays');                 $rowfetch =~ s/-//gi;                 printline($rowfetch);                 $i++;             }             if ($i == 12)             {                 $rowfetch = $DBS->{Row}->GetCharValue('fullname');                 my ($lname, $fname) = split /,\s*/, $rowfetch;                 $rowfetch = $fname;                 printline($rowfetch);                 $rowfetch = $lname;                 printline($rowfetch);                 $i=$i+2;             }             else             {                 $rowfetch = $DBS->{Row}->GetCharValue($colname[$i]);                 printline($rowfetch);                 $i++;             }         }         $i=0;            printf $fh '\n';     } 

Heres the code that doesnt work – All that was done was optimizing the sql fetch command

my $i; $i = 0;       while ($DBS->SQLFetch() == *PLibdata::RET_OK)     {         while ($i != $colnamelen)         {                 $rowfetch = $DBS->{Row}->GetCharValue($colname[$i]);             if ($i == 1)             {                 $rowfetch =~ s/(?=..$)/:/;                 printline($rowfetch);                 $i++;                    }             if ($i == 2)             {                 $rowfetch =~ s/(?=..$)/:/;                 printline($rowfetch);                 $i++;                    }             if ($i == 10)             {                 $rowfetch =~ s/-//gi;                 printline($rowfetch);                 $i++;             }             if ($i == 12)             {                 my ($lname, $fname) = split /,\s*/, $rowfetch;                 $rowfetch = $fname;                 printline($rowfetch);                 $rowfetch = $lname;                 printline($rowfetch);                 $i=$i+2;             }             else             {                 printline($rowfetch);                 $i++;             }         }         $i=0;            printf $fh '\n';     } 

Oh and by the way, there is a functioning SQL statement before this while loop goes into action.. I just didnt want to waste space.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T04:00:36+00:00Added an answer on May 11, 2026 at 4:00 am

    Before the code change, you called GetCharValue after checking if $i was as value you wanted. After the change, you call it even if it’s not 1,2,10,12. Is it possible that the values for $i other than those 4 is causing the issue?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 95k
  • Answers 95k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use the full Aptana Studio, and after it says the… May 11, 2026 at 6:56 pm
  • Editorial Team
    Editorial Team added an answer "Edit and Continue is not supported when you start debugging… May 11, 2026 at 6:56 pm
  • Editorial Team
    Editorial Team added an answer A general rule I follow when it comes to problems… May 11, 2026 at 6:56 pm

Related Questions

I've just started learning Common Lisp--and rapidly falling in love with it--and I've just
I was reading this question to find out the differences between the Java Virtual
I'm building some repositories for an MVC application, and I'm trying to come up
It seems that the normal progression to join projects is to contribute for a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.