[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: mod_perl developer wanted
From:       Rolf Schaufelberger <rs () plusw ! de>
Date:       2017-09-25 18:38:34
Message-ID: BB75BB5D-26F9-40C5-A2AA-C1D0344C61F0 () plusw ! de
[Download RAW message or body]

I'm the original poster of this thread and I can tell some news.
 
First, because somebody asked , why I'ven;t not just posted the dump file here. I've \
chosen this form to find somebody helping us, since a former posting from me to the \
same issue didn't get any response, so I hoped to get it fixed that way. I made these \
test some months ago , and this discussion motivated me to make a new attempt.  So, \
this afternoon I made a new installation , compiled a new Perl with mod_perl-2.0.10  \
installed all my dependencies new from CPAN and still got a core dump. Since  due to \
my own investigations my suspect was File::LibMagic, since  it appeared on the top of \
output from the segfault  ( while this output sometimes was visible and sometimes \
wasn't).  The segfault already happened  during server startup.   So I looked at the \
code from LibMagic.pm and found , that it is using XSLoader  and calls XSLoader::load \
during startup.  With the help of the XSLoader- documentation I changed this  to use \
DynaLoader instead :

So I changed :

use XSLoader;

our $VERSION = '1.15';

XSLoader::load( __PACKAGE__, $VERSION );
use base 'Exporter';

to
 
require DynaLoader;
our @ISA = qw( DynaLoader);
our $VERSION = '1.15';
bootstrap File::LibMagic $VERSION;

and now apache starts without segfault and my application seems to run.  (seems  \
because I've just clicked a bit with no error but didn't  male deeper tests).

So , I can setup my systems to use  this patched version of LibMagic and problem \
solved (more or less). But I'm wondering, that nobody else seems to have the same \
problems. I'll contact the author anyway.  Does anybody have an idea, why  it doesn't \
work with XSLoader ? 



> Am 23.09.2017 um 07:30 schrieb Jie Gao <J.Gao@sydney.edu.au>:
> 
> * Thorsten Schöning <tschoening@am-soft.de <mailto:tschoening@am-soft.de>> wrote:
> 
> > Date: Fri, 22 Sep 2017 17:08:57 +0200
> > From: Thorsten Schöning <tschoening@am-soft.de>
> > To: "modperl@perl.apache.org" <modperl@perl.apache.org>
> > Subject: Re: mod_perl developer wanted
> > 
> > Guten Tag Rolf Schaufelberger,
> > am Donnerstag, 14. September 2017 um 09:10 schrieben Sie:
> > 
> > > We don't have the skills to debug this, so we are looking for somebody who will \
> > > do this. We have a virtual machine, ready setup, accessible from outside, so \
> > > this could be done from remote.
> > 
> > Why not additionally post your core dumps and some description of your
> > software or such here? Maybe someone recognizes something you missed
> > or is able to provide some debugging help for others or whatever. Or
> > is it secret for some reason? Doesn't sound like you have anything to
> > loose.
> 
> Exactly. That'd also help people who might potentially want to help gauge the \
> extent of the problem - what they are getting into, before committing to it. 
> > On the Bugzilla support mailing list for example, people with core
> > dumps after distro upgrades simply often forgot to delete Bugzilla
> > private packages which are not binary compatible to newer Perls
> > anymore and such things.
> 
> One alternative, which I often do, is to build your own binaries.
> 
> 
> Regards,
> 
> 
> Jie
> 
> 
> 
> 
> > Mit freundlichen Grüßen,
> > 
> > Thorsten Schöning
> > 
> > -- 
> > Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
> > AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
> > 
> > Telefon...........05151-  9468- 55
> > Fax...............05151-  9468- 88
> > Mobil..............0178-8 9468- 04
> > 
> > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> > AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Mit freundlichen Grüßen
Dipl. Ing. Rolf Schaufelberger
Geschäftsführer 

plusW GmbH
Hauffstr. 28/1    
73614 Schorndorf 

T +49 (0)7181 4747305
F +49 (0)7181 4745344
rs@plusw.de
www.plusw.de
 
Sitz der Gesellschaft:
plusW GmbH, Stuttgarterstr. 26, 73635 Rudersberg, Deutschland
Geschäftsführer: Dipl. Ing. Rolf Schaufelberger
Amts- und Registergericht: Stuttgart, HRB 725960
Umsatzsteuer-ID: DE 814 966 811


[Attachment #3 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class=""><div class="">I'm the original \
poster of this thread and I can tell some news.</div><div class="">&nbsp;</div><div \
class="">First, because somebody asked , why I'ven;t not just posted the dump file \
here. I've chosen this form to find somebody helping us, since a former posting from \
me to the same issue didn't get any response, so I hoped to get it fixed that way. I \
made these &nbsp;test some months ago , and this discussion motivated me to make a \
new attempt.&nbsp;</div><div class="">So, this afternoon I made a new installation , \
compiled a new Perl with mod_perl-2.0.10 &nbsp;installed all my dependencies new from \
CPAN and still got a core dump. Since &nbsp;due to my own investigations my suspect \
was File::LibMagic, since &nbsp;it appeared on the top of output from the segfault \
&nbsp;( while this output sometimes was visible and sometimes wasn't). &nbsp;The \
segfault already happened &nbsp;during server startup. &nbsp;</div><div class="">So I \
looked at the code from LibMagic.pm and found , that it is using XSLoader &nbsp;and \
calls XSLoader::load during startup.&nbsp;</div><div class="">With the help of the \
XSLoader- documentation I changed this &nbsp;to use DynaLoader instead :</div><div \
class=""><br class=""></div><div class="">So I changed :</div><div class=""><br \
class=""></div><div class=""><div class="">use XSLoader;</div><div class=""><br \
class=""></div><div class="">our $VERSION = '1.15';</div><div class=""><br \
class=""></div><div class="">XSLoader::load( __PACKAGE__, $VERSION );</div><div \
class="">use base 'Exporter';</div><div class=""><br class=""></div><div \
class="">to</div><div class="">&nbsp;</div><div class="">require \
DynaLoader;</div><div class="">our @ISA = qw( DynaLoader);</div><div class="">our \
$VERSION = '1.15';</div><div class="">bootstrap File::LibMagic \
$VERSION;</div></div><div class=""><br class=""></div><div class="">and now apache \
starts without segfault and my application seems to run. &nbsp;(seems &nbsp;because \
I've just clicked a bit with no error but didn't &nbsp;male deeper tests).</div><div \
class=""><br class=""></div><div class="">So , I can setup my systems to use \
&nbsp;this patched version of LibMagic and problem solved (more or less). But I'm \
wondering, that nobody else seems to have the same problems. I'll contact the author \
anyway.&nbsp;</div><div class="">Does anybody have an idea, why &nbsp;it doesn't work \
with XSLoader ?&nbsp;</div><div class=""><br class=""></div><div class=""><br \
class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">Am \
23.09.2017 um 07:30 schrieb Jie Gao &lt;<a href="mailto:J.Gao@sydney.edu.au" \
class="">J.Gao@sydney.edu.au</a>&gt;:</div><br class="Apple-interchange-newline"><div \
class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" \
class="">* Thorsten Schöning &lt;</span><a href="mailto:tschoening@am-soft.de" \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: \
auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; \
widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px;" class="">tschoening@am-soft.de</a><span \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" \
class="">&gt; wrote:</span><br style="font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: \
auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; \
widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px;" class="">Date: Fri, 22 Sep 2017 17:08:57 +0200<br \
class="">From: Thorsten Schöning &lt;<a href="mailto:tschoening@am-soft.de" \
class="">tschoening@am-soft.de</a>&gt;<br class="">To: "<a \
href="mailto:modperl@perl.apache.org" class="">modperl@perl.apache.org</a>" &lt;<a \
href="mailto:modperl@perl.apache.org" class="">modperl@perl.apache.org</a>&gt;<br \
class="">Subject: Re: mod_perl developer wanted<br class=""><br class="">Guten Tag \
Rolf Schaufelberger,<br class="">am Donnerstag, 14. September 2017 um 09:10 schrieben \
Sie:<br class=""><br class=""><blockquote type="cite" class="">We don't have the \
skills to debug this, so we are looking for somebody who will do this.<br class="">We \
have a virtual machine, ready setup, accessible from outside, so this could be done \
from remote.<br class=""></blockquote><br class="">Why not additionally post your \
core dumps and some description of your<br class="">software or such here? Maybe \
someone recognizes something you missed<br class="">or is able to provide some \
debugging help for others or whatever. Or<br class="">is it secret for some reason? \
Doesn't sound like you have anything to<br class="">loose.<br \
class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: \
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; \
text-align: start; text-indent: 0px; text-transform: none; white-space: normal; \
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" \
class="">Exactly. That'd also help people who might potentially want to help gauge \
the extent of the problem - what they are getting into, before committing to \
it.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" \
class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: \
normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px;" class="">On the Bugzilla support mailing list for \
example, people with core<br class="">dumps after distro upgrades simply often forgot \
to delete Bugzilla<br class="">private packages which are not binary compatible to \
newer Perls<br class="">anymore and such things.<br class=""></blockquote><br \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; \
display: inline !important;" class="">One alternative, which I often do, is to build \
your own binaries.</span><br style="font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" \
class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" \
class="">Regards,</span><br style="font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" \
class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" \
class="">Jie</span><br style="font-family: Helvetica; font-size: 12px; font-style: \
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; \
text-align: start; text-indent: 0px; text-transform: none; white-space: normal; \
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: \
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; \
font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; \
text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br \
style="font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" \
class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: \
normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px;" class="">Mit freundlichen Grüßen,<br class=""><br \
class="">Thorsten Schöning<br class=""><br class="">--<span \
class="Apple-converted-space">&nbsp;</span><br class="">Thorsten Schöning \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;E-Mail: <a \
href="mailto:Thorsten.Schoening@AM-SoFT.de" \
class="">Thorsten.Schoening@AM-SoFT.de</a><br class="">AM-SoFT IT-Systeme \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.AM-SoFT.de/" \
class="">http://www.AM-SoFT.de/</a><br class=""><br class="">Telefon...........05151- \
&nbsp;9468- 55<br class="">Fax...............05151- &nbsp;9468- 88<br \
class="">Mobil..............0178-8 9468- 04<br class=""><br class="">AM-SoFT GmbH \
IT-Systeme, Brandenburger Str. 7c, 31789 Hameln<br class="">AG Hannover HRB 207 694 - \
Geschäftsführer: Andreas Muchow</blockquote></div></blockquote></div><br \
class=""><div class=""> <div style="color: rgb(0, 0, 0); letter-spacing: normal; \
text-align: start; text-indent: 0px; text-transform: none; white-space: normal; \
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; \
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div \
style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: \
0px; text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: \
break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" \
class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; \
text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); \
font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; \
font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: \
normal; font-variant-alternates: normal; font-variant-east-asian: normal; \
font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; \
text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: \
normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: \
break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" \
class="">Mit freundlichen Grüßen<br class="">Dipl. Ing. Rolf Schaufelberger<br \
class="">Geschäftsführer&nbsp;<br class=""><br class="">plusW GmbH<br \
class="">Hauffstr. 28/1 &nbsp; &nbsp;</div><div style="color: rgb(0, 0, 0); \
font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; \
font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: \
normal; font-variant-alternates: normal; font-variant-east-asian: normal; \
</div>
<br class=""></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic