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

Related Questions

What are the most common problems that can be solved with both these data
What are the most common memory optimizations in csharp, dotnet 2.0. Wanted to see
What's the most common way to deal with a series of block elements that
It seems to me that the most common overly ambitious project that programmers (esp.
This is probably one of the most common tasks / problems when programming; You
Fragile base class is one of the most common point that gets popped up
Its a common thing to see that most of the project gets lost in-between
The most common method for corrupting compressed files is to inadvertently do an ASCII-mode
What are the most common things to test in a new site? For instance
One of the most common dilemmas I have when commenting code is how to

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.