I have a small openVZ slice I use for testing and personal projects. Recently, the provider transferred to the new Xeon "Sandy Bridge" platform; I am not sure if this is the cause of my problem or not, but since then, I have been unable to use mod_perl modules with apache. This works:

sub handler { return 500; }

but this:

use Apache2::Const; sub handler { return SERVER_ERROR; }

Does not -- ie, loading Apache2::Const, or a number of other modules, causes the worker to receive SIGILL (Illegal instruction). Apache2::RequestRec is okay, but most of my stuff is now non-functional :(

I've run httpd -X in gdb and pasted the backtrace:
pastebin backtrace

The "illegal instruction" appears to be _dl_x86_64_save_sse, although I know nothing about assembly. This does not happen if I use an offending module in a normal perl script; I have tried re-building them via CPAN on the "new platform", the issue remains. Apache and mod_perl are from the distro.

I've been writing and using Apache/mod_perl modules for a few years and this would be a SERIOUS problem if it happened anywhere else suddenly. I'm looking for any tips or information you can provide to help isolate the problem further; it seems to me it may be beyond my control and I will have to go to the provider with some evidence regarding mod_perl under openVZ on their new hardware (but that is still not clear).


In reply to SIGILL with mod_perl on openVZ by halfcountplus

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.