Running perl v5.6.1 on a Red Hat 7.1 linux distro with the 2.4.2-2 kernel, perldoc core dumps when used like so
shell> perldoc -q '$#' Segmentation fault (core dumped)
As far as I can tell this bug only affects v5.6.1 on linux, as I can't duplicate it on either Solaris using v5.6.1 or on linux using v5.005_03. If I do a gdb backtrace I get the following
(gdb) bt #0 0x080d2fb0 in S_find_byclass () at eval.c:41 #1 0x080d2ce4 in Perl_re_intuit_start () at eval.c:41 #2 0x0809b6f3 in Perl_pp_match () at eval.c:41 #3 0x080990d8 in Perl_runops_standard () at eval.c:41 #4 0x0805c5f3 in S_run_body () at eval.c:41 #5 0x0805c342 in perl_run () at eval.c:41 #6 0x08059fd0 in main () at eval.c:41 #7 0x40073177 in __libc_start_main (main=0x8059f60 <main>, argc=4, ub +p_av=0xbffff8fc, init=0x8059194 <_init>, fini=0x80dfa00 <_fini>, rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff8ec) at ../sysde +ps/generic/libc-start.c:129
So the problem seems to lie in S_find_byclass which happens to be at line 850 in regexec.c in the v5.6.1 source. I'm not sure what the exact problem is, but I'm guessing it's something to do with the fact the # follows the $ which it probably shouldn't.

If this particular bug hasn't been reported yet (and I don't think it has, as I couldn't find it on perlbug), how would I go about reporting it?

broquaint


In reply to perldoc core dump bug by broquaint

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.