-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl core dumps #663
Comments
From stavros@esc.net.auI have a perl program which is core dumping. I've been told that if perl Here are the details, please let me know if the probelm is mine or perl's: bang2# uname -a bang2# perl -V Characteristics of this binary (from libperl): Finally the script: bang2# cat make_headings.pl #!/usr/local/bin/perl use DB_File; dbmopen(%all, "db/ALL", 0444); for ($i=1; $i < 2000000; $i++){ split (/\,/, $info{$temp}); foreach $num (@_){ if (! defined $NO){ } dbmclose(%info); bang2# ./make_headings.pl The script is a really basic version of another more complicated script Regards, Stavros Patiniotis -System Administrator / Network Manager Escape.Net - |
From [Unknown Contact. See original ticket]On Fri, 01 Oct 1999 at 00:45:48 +0930, Stavros Patiniotis wrote:
It's the fault of the program that's running: in this case we have
It may be worth trying again, using tie/DB_File (dbmopen is a hangover from
A 'backtrace' from the core dump would be quite useful. Use 'gdb perl Also specify exactly which version of DB you're using. There are Ian |
From [Unknown Contact. See original ticket]Ian Phillipps <ian@dial.pipex.com> wrote
Well, that's not quite what the man page says. It explicitly mentions Mike Guy |
From [Unknown Contact. See original ticket]On Fri, 1 Oct 1999, M.J.T. Guy wrote:
Well I tried the tie option, and it worked on the program that I sent to I'm not sure how to get the version of the DB files, so could someone This is the error I'm getting now: ./stats.pl I can include the script if you like? I'm not sure how to process the Thanks! Regards, Stavros Patiniotis -System Administrator / Network Manager Escape.Net - |
From [Unknown Contact. See original ticket]On Fri, 01 Oct 1999 at 18:34:34 +0100, M.J.T. Guy wrote:
Sorry, bad editing. I submitted three p5p postings last night, all of It's GDBM that doesn't always fly with AnyDBM_File (and therefore In particular, GDBM_WRCREATE == 2, whereas O_CREAT|O_RDWR == 66. [Aside: bug in SDBM_File documentation omits 'use Fcntl'. Try: To Stavros: if you have gdb (not gdbm!) then run This should give an idea if the dump is occurring in perl itself or DB. Oh, and I don't think anyone's mentioned 'use sigtrap', either. Ian |
From [Unknown Contact. See original ticket]On Sat, 2 Oct 1999, Ian Phillipps wrote:
They are both the same, 5.005_03.
I have no idea! Core was generated by `perl'. I assumes that my postings should all be sent to this list, not to you in
? Sorry but your dealing with a novice here. tie %info, "DB_File", "info/INFO", (O_RDONLY), 0444; #This line crashes it. Regards, Stavros Patiniotis -System Administrator / Network Manager Escape.Net - |
From [Unknown Contact. See original ticket]On Tue, 05 Oct 1999 at 09:36:35 +0930, Stavros Patiniotis wrote:
Well, the simplest case is that you include the phrase You can say 'man sigtrap' or 'perldoc sigtrap' and get useful Ian |
From [Unknown Contact. See original ticket]
Ahh, so we are running out of memory! Too easy. I guess I should now bang2# ./easy info/INFO
Regards, Stavros Patiniotis -System Administrator / Network Manager Escape.Net - |
Migrated from rt.perl.org#1543 (status was 'resolved')
Searchable as RT1543$
The text was updated successfully, but these errors were encountered: