Here is the backtrace from another run (a different reason too, but similar backtrace).
Core was generated by `/usr/bin/perl problem_script.pl 972 10.30.'. Program terminated with signal 11, Segmentation fault. #0 my_stat (path=0x7fffbbc78110 "/usr/share/mysql/charsets/Index.xml" +, stat_area=0x7fffbbc77fe0, my_flags=0) at /export/home/pb2/build/sb_0-10180689-1378750483.08/rpm/BUILD/my +sql-5.5.34/mysql-5.5.34/mysys/my_lib.c:415 415 /export/home/pb2/build/sb_0-10180689-1378750483.08/rpm/BUILD/m +ysql-5.5.34/mysql-5.5.34/mysys/my_lib.c: No such file or directory. in /export/home/pb2/build/sb_0-10180689-1378750483.08/rpm/BUIL +D/mysql-5.5.34/mysql-5.5.34/mysys/my_lib.c (gdb) bt #0 my_stat (path=0x7fffbbc78110 "/usr/share/mysql/charsets/Index.xml" +, stat_area=0x7fffbbc77fe0, my_flags=0) at /export/home/pb2/build/sb_0-10180689-1378750483.08/rpm/BUILD/my +sql-5.5.34/mysql-5.5.34/mysys/my_lib.c:415 #1 0x00002ae583491d74 in my_read_charset_file (filename=0x2 <Address +0x2 out of bounds>, myflags=0) at /export/home/pb2/build/sb_0-10180689-1378750483.08/rpm/BUILD/my +sql-5.5.34/mysql-5.5.34/mysys/charset.c:364 #2 0x00002ae583492615 in init_available_charsets () at /export/home/p +b2/build/sb_0-10180689-1378750483.08/rpm/BUILD/mysql-5.5.34/mysql-5.5 +.34/mysys/charset.c:458 #3 0x00000032ff60c1d3 in pthread_once () from /lib64/libpthread.so.0 #4 0x00002ae583492e48 in get_charset_by_csname (cs_name=0x177201e0 "l +atin1", cs_flags=32, flags=1571489488) at /export/home/pb2/build/sb_0-10180689-1378750483.08/rpm/BUILD/my +sql-5.5.34/mysql-5.5.34/mysys/charset.c:644 #5 0x00002ae58347883f in mysql_set_character_set_with_default_collati +on (mysql=0x1771fce0) at /export/home/pb2/build/sb_0-10180689-1378750483.08/rpm/BUILD/my +sql-5.5.34/mysql-5.5.34/sql-common/client.c:2233 #6 mysql_init_character_set (mysql=0x1771fce0) at /export/home/pb2/bu +ild/sb_0-10180689-1378750483.08/rpm/BUILD/mysql-5.5.34/mysql-5.5.34/s +ql-common/client.c:2272 #7 0x00002ae58347b32d in mysql_real_connect (mysql=0x1771fce0, host=0 +x1771b5a0 "10.30.30.73", user=0x178cd690 "<foo>", passwd=0x178cd6e0 " +<foobar>", db=0x1771b4d0 "<bar>", port=3306, unix_socket=0x0, client_flag=131074) at /export/home/pb2/build/sb_ +0-10180689-1378750483.08/rpm/BUILD/mysql-5.5.34/mysql-5.5.34/sql-comm +on/client.c:3436 #8 0x00002ae583230fd5 in mysql_dr_connect (dbh=<value optimized out>, + sock=0x1771fce0, mysql_socket=0x0, host=0x1771b5a0 "10.30.30.73", po +rt=0xe689e98 "x\265`\016", user=<value optimized out>, password=<value optimized out>, dbname=0x1771b4d0 "<bar>", imp_dbh +=0x1771f700) at dbdimp.c:1892 #9 0x00002ae583232188 in my_login (my_perl=0xe301010, dbh=0xe687c48, +imp_dbh=0x1771f700) at dbdimp.c:2004 #10 0x00002ae583233372 in mysql_db_login (dbh=0xe687c48, imp_dbh=0x177 +1f700, dbname=0x17720ae0 "<bar>:10.30.30.73:3306", user=0x1771b2f0 "< +foo>", password=0x178cd450 "<foobar>") at dbdimp.c:2055 #11 0x00002ae58323aa77 in XS_DBD__mysql__db__login (my_perl=0xe301010, + cv=<value optimized out>) at mysql.xsi:104 #12 0x000000000048906f in Perl_pp_entersub () #13 0x000000000048765e in Perl_runops_standard () #14 0x000000000043097f in Perl_call_sv () #15 0x00002ae55e4f15f1 in XS_DBI_dispatch () from /usr/local/lib/perl5 +/site_perl/5.10.1/x86_64-linux-thread-multi/auto/DBI/DBI.so #16 0x000000000048906f in Perl_pp_entersub () #17 0x000000000048765e in Perl_runops_standard () #18 0x00000000004316a5 in perl_run () #19 0x000000000041d4ad in main () (gdb)

In reply to Re: Help debugging a random seg fault by sved
in thread Help debugging a random seg fault by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.