I am looking for ways to track to the source of the problem. (...) but the error log (below) confuses me.

The error message simply means that glibc's stack protection routines fired due to a corruption of the (C level) stack. Unfortunately, the reasons for this happening are manifold, and detailed knowledge of the internals right down to the assembly level might be required to succesfully debug such things. It could be a buffer overflow, mismatching ABIs (binary interfaces) of the libraries involved, etc. As the last stack frame reported for mysql.so is just an address (without a name), it's likely that the stack (typically function call return address) has already been messed up before that point, which means you'd have to start looking from mysql_bind_ph...

OTOH, unless you're already familiar with tools such as gdb and valgrind (or would like to learn using them), I'd suggest you try approaching the problem at a somewhat higher level first — maybe you don't need to spend your time debugging things that someone else may already have fixed...   In other words, try upgrading or reinstalling the components involved, check if compatible libs are being loaded (for example, if the MySQL shared lib (libmysql.so) that the Perl binding DBD/mysql/mysql.so loads is the one that it was originally linked against), etc.


In reply to Re: tracking "stack smashing detected" by almut
in thread tracking "stack smashing detected" by manoj123

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.