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

  • Home
  • SEARCH
  • 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

I have a huge list of video files from a webcam that have that
Take an example of a question/answer site with a 'browse' slideshow that will show
I've been looking through a lot of Javascript Optimizing and most of them talk
This seems like a simple question to ask but, is it generally a good
I understand that one benefit of having static member functions is not having to
Just trying to ping up some experienced Thread gurus out there...trying to learn more
I have been looking into why WYSIWYG editors are bad for content creation. The
I have a bunch of insert, update, and delete operations I need to execute
I am developing my knowledge of OOP design patterns and as my main focus
We're considering using Maven for a large multi project build, to give you an

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.