"Why am I trying to debug a Perl configuration problem with the gdb()? Why didn't I read the first few lines of the error message (starting with "warning:") and fix the problem?"
I am seeing a lot of core dump files created by perl. The only way I know to go through the core dump files is through the gdb. Only after going through the gdb am seeing the WARNING message. rt? And the last few lines of the gbd shows that perl is core dumping becaue of some libc issues. I was trying to find if I can get some help to fix this problem (gdb) where #0 0x00007f320ea364a3 in ptmalloc_unlock_all2 () from /lib64/libc.so.6 #1 0x0000000000722010 in ?? () #2 0x00007f320fd3a500 in Perl_leave_scope () from /usr/lib64/perl5/CORE/libperl.so #3 0x0000000000000000 in ?? () On Tue, Jan 29, 2013 at 8:49 AM, Bob goolsby <bob.gool...@gmail.com> wrote: > I suspect the real question is: "Why am I trying to debug a Perl > configuration problem with the gdb()? Why didn't I read the first few > lines of the error message (starting with "warning:") and fix the > problem?" I get enough gdb() practice running against some gnarly > (and barkley) C code in my current contract. ("We have this piece of > Legacy that we lost the source on, and we'd like it rewritten in a > more modern/friendly language....") > > Just because you can, does not mean you should break out the run-time > debugger for every possible problem you encounter. As someone on Perl > Monks says (Toolic?) "When your only tool is a hammer, every problem > looks like your thumb." > > > B > > On Mon, Jan 28, 2013 at 7:44 AM, Mike Dunaway <ekimduna...@gmail.com> > wrote: > > So what was the question? > > > > On Jan 28, 2013, at 5:48 AM, karthik sankaran <skarthikbe2...@gmail.com> > wrote: > > > >> gdb /usr/bin/perl /piroot/corefiles/core.21394 > >> > >> GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6) > >> > >> Copyright (C) 2010 Free Software Foundation, Inc. > >> > >> License GPLv3+: GNU GPL version 3 or later < > http://gnu.org/licenses/gpl.html > >> > >> This is free software: you are free to change and redistribute it. > >> > >> There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > >> > >> and "show warranty" for details. > >> > >> This GDB was configured as "x86_64-redhat-linux-gnu". > >> > >> For bug reporting instructions, please see: > >> > >> <http://www.gnu.org/software/gdb/bugs/>... > >> > >> Reading symbols from /usr/bin/perl...(no debugging symbols > found)...done. > >> > >> [New Thread 21394] > >> > >> > >> > >> warning: .dynamic section for "/lib64/libc.so.6" is not at the expected > >> address (wrong library or version mismatch?) > >> > >> Reading symbols from /usr/lib64/perl5/CORE/libperl.so...(no debugging > >> symbols found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/CORE/libperl.so > >> > >> Reading symbols from /lib64/libresolv.so.2...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/libresolv.so.2 > >> > >> Reading symbols from /lib64/libnsl.so.1...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/libnsl.so.1 > >> > >> Reading symbols from /lib64/libdl.so.2...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/libdl.so.2 > >> > >> Reading symbols from /lib64/libm.so.6...(no debugging symbols > found)...done. > >> > >> Loaded symbols for /lib64/libm.so.6 > >> > >> Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/libcrypt.so.1 > >> > >> Reading symbols from /lib64/libutil.so.1...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/libutil.so.1 > >> > >> Reading symbols from /lib64/libpthread.so.0...(no debugging symbols > >> found)...done. > >> > >> [Thread debugging using libthread_db enabled] > >> > >> Loaded symbols for /lib64/libpthread.so.0 > >> > >> Reading symbols from /lib64/libc.so.6...(no debugging symbols > found)...done. > >> > >> Loaded symbols for /lib64/libc.so.6 > >> > >> Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/ld-linux-x86-64.so.2 > >> > >> Reading symbols from /usr/lib64/libfreebl3.so...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /usr/lib64/libfreebl3.so > >> > >> Reading symbols from /usr/local/lib64/perl5/auto/DBI/DBI.so...done. > >> > >> Loaded symbols for /usr/local/lib64/perl5/auto/DBI/DBI.so > >> > >> Reading symbols from /usr/lib64/perl5/auto/List/Util/Util.so...(no > >> debugging symbols found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/auto/List/Util/Util.so > >> > >> Reading symbols from > /usr/local/lib64/perl5/auto/Time/HiRes/HiRes.so...done. > >> > >> Loaded symbols for /usr/local/lib64/perl5/auto/Time/HiRes/HiRes.so > >> > >> Reading symbols from /lib64/librt.so.1...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/librt.so.1 > >> > >> Reading symbols from > /usr/lib64/perl5/auto/Sys/Hostname/Hostname.so...(no > >> debugging symbols found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/auto/Sys/Hostname/Hostname.so > >> > >> Reading symbols from > /usr/local/lib64/perl5/auto/Params/Util/Util.so...done. > >> > >> Loaded symbols for /usr/local/lib64/perl5/auto/Params/Util/Util.so > >> > >> Reading symbols from > >> /usr/local/lib64/perl5/auto/Package/Stash/XS/XS.so...done. > >> > >> Loaded symbols for /usr/local/lib64/perl5/auto/Package/Stash/XS/XS.so > >> > >> Reading symbols from > >> /usr/local/lib64/perl5/auto/List/MoreUtils/MoreUtils.so...done. > >> > >> Loaded symbols for > /usr/local/lib64/perl5/auto/List/MoreUtils/MoreUtils.so > >> > >> Reading symbols from > >> /usr/local/lib64/perl5/auto/Params/Validate/XS/XS.so...done. > >> > >> Loaded symbols for /usr/local/lib64/perl5/auto/Params/Validate/XS/XS.so > >> > >> Reading symbols from /usr/lib64/perl5/auto/IO/IO.so...(no debugging > symbols > >> found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/auto/IO/IO.so > >> > >> Reading symbols from /usr/lib64/perl5/auto/Fcntl/Fcntl.so...(no > debugging > >> symbols found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/auto/Fcntl/Fcntl.so > >> > >> Reading symbols from /usr/lib64/perl5/auto/Storable/Storable.so...(no > >> debugging symbols found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/auto/Storable/Storable.so > >> > >> Reading symbols from /usr/lib64/perl5/auto/Encode/Encode.so...(no > debugging > >> symbols found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/auto/Encode/Encode.so > >> > >> Reading symbols from > /usr/local/lib64/perl5/auto/YAML/Syck/Syck.so...done. > >> > >> Loaded symbols for /usr/local/lib64/perl5/auto/YAML/Syck/Syck.so > >> > >> Reading symbols from > /usr/lib64/perl5/auto/XML/Parser/Expat/Expat.so...(no > >> debugging symbols found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/auto/XML/Parser/Expat/Expat.so > >> > >> Reading symbols from /lib64/libexpat.so.1...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/libexpat.so.1 > >> > >> Reading symbols from /usr/lib64/perl5/auto/Socket/Socket.so...(no > debugging > >> symbols found)...done. > >> > >> Loaded symbols for /usr/lib64/perl5/auto/Socket/Socket.so > >> > >> Reading symbols from > /usr/local/lib64/perl5/auto/DBD/mysql/mysql.so...done. > >> > >> Loaded symbols for /usr/local/lib64/perl5/auto/DBD/mysql/mysql.so > >> > >> Reading symbols from /usr/local/mysql/lib/libmysqlclient.so.18...done. > >> > >> Loaded symbols for /usr/local/mysql/lib/libmysqlclient.so.18 > >> > >> Reading symbols from /lib64/libz.so.1...(no debugging symbols > found)...done. > >> > >> Loaded symbols for /lib64/libz.so.1 > >> > >> Reading symbols from /lib64/libgcc_s.so.1...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/libgcc_s.so.1 > >> > >> Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols > >> found)...done. > >> > >> Loaded symbols for /lib64/libnss_files.so.2 > >> > >> Core was generated by `/usr/bin/perl ./computeMos.pl'. > >> > >> Program terminated with signal 11, Segmentation fault. > >> > >> #0 0x00007f320ea364a3 in ptmalloc_unlock_all2 () from /lib64/libc.so.6 > >> > >> Missing separate debuginfos, use: debuginfo-install > >> perl-5.10.1-119.el6_1.1.x86_64 > >> > >> (gdb) > >> > >> > >> > >> (gdb) where > >> > >> #0 0x00007f320ea364a3 in ptmalloc_unlock_all2 () from /lib64/libc.so.6 > >> > >> #1 0x0000000000722010 in ?? () > >> > >> #2 0x00007f320fd3a500 in Perl_leave_scope () from > >> /usr/lib64/perl5/CORE/libperl.so > >> > >> #3 0x0000000000000000 in ?? () > >> > >> -- > >> Regards, > >> karthik > > > > -- > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > For additional commands, e-mail: beginners-h...@perl.org > > http://learn.perl.org/ > > > > > > > > -- > > Bob Goolsby > bob.gool...@gmail.com > -- Regards, karthik