You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Ilia Lobsanov <il...@lobsanov.com> on 2002/10/20 04:38:12 UTC

Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence

I'm trying to get Embperl 2.0b8 and HTML::Embperl 1.3.4 to co-exist.

First I got Embperl 2.0b8 working alone with apache 1.3.27, mod_perl
1.27, perl 5.6.1, Apache::SessionX configured with MySQL.

Then I installed HTML::Embperl 1.3.4 and the trouble started.

I run apache with -X and it segfaults on request of an epl page.
The apache conf is set to use only Embperl (not HTML::Embperl)
The apache conf also contains EMBPERL_SESSION directives. When I comment
them out, apache runs fine.

gdb output goes like this:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11458)]
0x4060e398 in embperlCmd_AddSessionIdToLink ()
   from
   /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Embperl/Embperl.so


ilia.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence

Posted by Ilia Lobsanov <il...@lobsanov.com>.
Yet more info: 
segfault happens only with "EMBPERL_SESSION_MODE 2" and only with that
page I attached.
"EMBPERL_SESSION_MODE 1" works.

ilia.

On Sun, Oct 20, 2002 at 12:45:03AM -0400, Ilia Lobsanov wrote:
> More info about the segfault. Coexistence is not the problem.
> 
> The problem is the file I'm attaching. Apache segfaults when loading
> this file.
> 
> ilia.
> 
> On Sat, Oct 19, 2002 at 10:38:12PM -0400, Ilia Lobsanov wrote:
> > I'm trying to get Embperl 2.0b8 and HTML::Embperl 1.3.4 to co-exist.
> > 
> > First I got Embperl 2.0b8 working alone with apache 1.3.27, mod_perl
> > 1.27, perl 5.6.1, Apache::SessionX configured with MySQL.
> > 
> > Then I installed HTML::Embperl 1.3.4 and the trouble started.
> > 
> > I run apache with -X and it segfaults on request of an epl page.
> > The apache conf is set to use only Embperl (not HTML::Embperl)
> > The apache conf also contains EMBPERL_SESSION directives. When I comment
> > them out, apache runs fine.
> > 
> > gdb output goes like this:
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 1024 (LWP 11458)]
> > 0x4060e398 in embperlCmd_AddSessionIdToLink ()
> >    from
> >    /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Embperl/Embperl.so
> > 
> > 
> > ilia.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > For additional commands, e-mail: embperl-help@perl.apache.org
> > 

> <script language="JavaScript">
> <!--
> function MM_preloadImages() { //v3.0
> var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
> var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
> if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
> }
> function MM_findObj(n, d) { //v4.0
> var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
> d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
> if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
> for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
> if(!x && document.getElementById) x=document.getElementById(n); return x;
> }
> function MM_nbGroup(event, grpName) { //v3.0
> var i,img,nbArr,args=MM_nbGroup.arguments;
> if (event == "init" && args.length > 2) {
> if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
> img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
> if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
> nbArr[nbArr.length] = img;
> for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
> if (!img.MM_up) img.MM_up = img.src;
> img.src = img.MM_dn = args[i+1];
> nbArr[nbArr.length] = img;
> } }
> } else if (event == "over") {
> document.MM_nbOver = nbArr = new Array();
> for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
> if (!img.MM_up) img.MM_up = img.src;
> img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
> nbArr[nbArr.length] = img;
> }
> } else if (event == "out" ) {
> for (i=0; i < document.MM_nbOver.length; i++) {
> img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
> } else if (event == "down") {
> if ((nbArr = document[grpName]) != null)
> for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
> document[grpName] = nbArr = new Array();
> for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
> if (!img.MM_up) img.MM_up = img.src;
> img.src = img.MM_dn = args[i+1];
> nbArr[nbArr.length] = img;
> } }
> }
> //-->
> </script>
> </head>
> <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('/images/top_02on.jpg','/images/top_03on.jpg','/images/top_04on.jpg','/images/top_05on.jpg','/images/top_06on.jpg','/images/top_07on.jpg')">
> <table border="0" cellspacing="0" cellpadding="0" align="center">
> <tr> 
> <td><a href="/index.epl"><img src="/images/top_01.jpg" width="290" height="116" border=0></a></td>
> <td><a href="/index.epl" onClick="MM_nbGroup('down','group1','home','/images/top_02on.jpg',1)" onMouseOut="MM_nbGroup('out')" onMouseOver="MM_nbGroup('over','home','/images/top_02on.jpg','/images/top_02on.jpg',1)"><img src="/images/top_02.jpg" width="92" height="116" border="0" name="home"></a></td>
> <td><a href="/content/whatisthis.rtbc" onClick="MM_nbGroup('down','group1','top_03','/images/top_03on.jpg',1)" onMouseOut="MM_nbGroup('out')" onMouseOver="MM_nbGroup('over','top_03','/images/top_03on.jpg','/images/top_03on.jpg',1)" ><img src="/images/top_03.jpg" width="72" height="116" name="top_03" border="0"></a></td>
> <td><a href="/ta/register.epl" onClick="MM_nbGroup('down','group1','top_04','/images/top_04on.jpg',1)" onMouseOut="MM_nbGroup('out')" onMouseOver="MM_nbGroup('over','top_04','/images/top_04on.jpg','/images/top_04on.jpg',1)" ><img src="/images/top_04.jpg" width="78" height="116" border="0" name="top_04"></a></td>
> <td><a href="/content/advertise.epl" onClick="MM_nbGroup('down','group1','top_05','/images/top_05on.jpg',1)" onMouseOut="MM_nbGroup('out')" onMouseOver="MM_nbGroup('over','top_05','/images/top_05on.jpg','/images/top_05on.jpg',1)" ><img src="/images/top_05.jpg" width="70" height="116" border="0" name="top_05"></a></td>
> <td><a href="/content/rep.epl" onClick="MM_nbGroup('down','group1','top_06','/images/top_06on.jpg',1)" onMouseOut="MM_nbGroup('out')" onMouseOver="MM_nbGroup('over','top_06','/images/top_06on.jpg','/images/top_06on.jpg',1)" ><img src="/images/top_06.jpg" width="76" height="116" border="0" name="top_06"></a></td>
> <td><a href="/news" onClick="MM_nbGroup('down','group1','top_07','/images/top_07on.jpg',1)" onMouseOut="MM_nbGroup('out')" onMouseOver="MM_nbGroup('over','top_07','/images/top_07on.jpg','/images/top_07on.jpg',1)" ><img src="/images/top_07.jpg" width="51" height="116" border="0" name="top_07"></a></td>
> <td align="center" valign="top" background="/images/top_08.jpg" width="74" height="112">
> <div align="center">
> <font style="font-size: 8pt;font-style: italic; color:#036; text-decoration: none">
> [- 
> use Time::CTime;
> -]
> [+ strftime("%b %d", localtime(time)) +]
> [#
> Day [Date_Difference:(Server_Date),'10/27/2001',Daysbetween]<br>
> [Server_time]
> #]
> </div>
> </td>
> </tr>
> <tr> 
> <td>&nbsp;</td>
> <td colspan="7">&nbsp;</td>
> </tr>
> </table>
> 

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence

Posted by Ilia Lobsanov <il...@lobsanov.com>.
More info about the segfault. Coexistence is not the problem.

The problem is the file I'm attaching. Apache segfaults when loading
this file.

ilia.

On Sat, Oct 19, 2002 at 10:38:12PM -0400, Ilia Lobsanov wrote:
> I'm trying to get Embperl 2.0b8 and HTML::Embperl 1.3.4 to co-exist.
> 
> First I got Embperl 2.0b8 working alone with apache 1.3.27, mod_perl
> 1.27, perl 5.6.1, Apache::SessionX configured with MySQL.
> 
> Then I installed HTML::Embperl 1.3.4 and the trouble started.
> 
> I run apache with -X and it segfaults on request of an epl page.
> The apache conf is set to use only Embperl (not HTML::Embperl)
> The apache conf also contains EMBPERL_SESSION directives. When I comment
> them out, apache runs fine.
> 
> gdb output goes like this:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 11458)]
> 0x4060e398 in embperlCmd_AddSessionIdToLink ()
>    from
>    /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Embperl/Embperl.so
> 
> 
> ilia.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 

Re: Segafult with session id inside url (was: Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence)

Posted by Gerald Richter <ri...@ecos.de>.
Hi Ilia,

> Same problem using the new Embperl2.
> Running apache with -X, I get segfault.
>

I try to fix the segfault you reported. To do this I would need the
embperl.log file of the rquest that fails. Please set Embper_Debug to
0x7fffffff and send me the resulting embperl.log and the source of the page

Thanks

Gerald



-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Segafult with session id inside url (was: Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence)

Posted by Gerald Richter <ri...@ecos.de>.
Hi,

I am trying to debug the segfault you reported below. I would addtionaly
need the embperl.log file. Could be please set EMBPERL_DEBUG to 0x7fffffff,
reproduce the segfault and send me the resulting embperl.log and the
stackbackrace from gdb (In case the stacktrace has changed)

Gerald

----- Original Message -----
From: "Ilia Lobsanov" <il...@lobsanov.com>
To: "Gerald Richter" <ri...@ecos.de>
Cc: <em...@perl.apache.org>
Sent: Sunday, October 20, 2002 6:14 PM
Subject: Re: Segafult with session id inside url (was: Embperl 2.0b8 and
HTML::Embperl 1.3.4 coexistence)


> Ok i got the debug version to compile when I removed '-O3 -pipe'.
> So here's the GDB BT:
>
> 0x401e1e13 in strlen () from /lib/libc.so.6
> (gdb) BT
> #0  0x401e1e13 in strlen () from /lib/libc.so.6
> #1  0x40618efd in embperlCmd_AddSessionIdToLink (r=0x8b52bc4,
>     pDomTree=0x405e8c00, xNode=-1073748116, nRepeatLevel=0,
>     sAttrName=0x405e71f4 "$ñ\f") at epcmd2.c:512
> #2  0x405fe4c4 in XS_Embperl__Cmd_AddSessionIdToLink (cv=0x8a72f60) at
> Cmd.xs:87
> #3  0x40589aa2 in Perl_pp_entersub () from /usr/lib/libperl.so
> #4  0x40583a90 in Perl_runops_standard () from /usr/lib/libperl.so
> #5  0x405371ac in S_call_body () from /usr/lib/libperl.so
> #6  0x4053337e in perl_call_sv () from /usr/lib/libperl.so
> #7  0x4060d248 in EMBPERL2_CallStoredCV (r=0x8b52bc4, sArg=0x0,
> pSub=0x8bf9208,
>     numArgs=1, pArgs=0xbfffe98c, flags=0, pRet=0xbfffe998) at
> epeval.c:735
> #8  0x40629306 in embperl_Execute2 (r=0x8b52bc4, xSrcDomTree=6,
> pCV=0x8bf9208,
>     pResultDomTree=0x8b52d24) at epcomp.c:1812
> #9  0x4062975b in embperl_Execute (r=0x8b52bc4, xSrcDomTree=6,
> pCV=0x8bf9208,
>     pResultDomTree=0x8b52d24) at epcomp.c:1922
> #10 0x4062d385 in ProviderEpRun_GetContentIndex (r=0x8b52bc4,
>     pProvider=0x8bed2e0, pData=0x8b52d24, bUseCache=0 '\0') at
> epprovider.c:1777
> #11 0x4062b7b5 in Cache_GetContentIndex (r=0x8b52bc4, pItem=0x8bed608,
>     pData=0x8b52d24, bUseCache=0 '\0') at epcache.c:1014
> #12 0x406066b4 in ProcessFile (r=0x8b52bc4, nFileSize=0) at
> epmain.c:1234
> #13 0x40606c59 in embperl_RunComponent (c=0x8b52c28) at epmain.c:1436
> #14 0x40606ddc in embperl_ExecuteComponent (r=0x8b52bc4,
> pPerlParam=0x8be26d0)
>     at epmain.c:1490
> #15 0x40651304 in XS_Embperl__Req_execute_component (cv=0x8a79db0) at
> Req.xs:198
> #16 0x40589aa2 in Perl_pp_entersub () from /usr/lib/libperl.so
> #17 0x40583a90 in Perl_runops_standard () from /usr/lib/libperl.so
> #18 0x405371ac in S_call_body () from /usr/lib/libperl.so
> #19 0x4053337e in perl_call_sv () from /usr/lib/libperl.so
> #20 0x4060d248 in EMBPERL2_CallStoredCV (r=0x8b52bc4, sArg=0x0,
> pSub=0x8bc3070,
>     numArgs=1, pArgs=0xbfffee1c, flags=0, pRet=0xbfffee28) at
> epeval.c:735
> #21 0x40629306 in embperl_Execute2 (r=0x8b52bc4, xSrcDomTree=1,
> pCV=0x8bc3070,
>     pResultDomTree=0x8b52d24) at epcomp.c:1812
> #22 0x4062975b in embperl_Execute (r=0x8b52bc4, xSrcDomTree=1,
> pCV=0x8bc3070,
>     pResultDomTree=0x8b52d24) at epcomp.c:1922
> #23 0x4062d385 in ProviderEpRun_GetContentIndex (r=0x8b52bc4,
>     pProvider=0x8bddf48, pData=0x8b52d24, bUseCache=0 '\0') at
> epprovider.c:1777
> #24 0x4062b7b5 in Cache_GetContentIndex (r=0x8b52bc4, pItem=0x8bdde48,
> ---Type <return> to continue, or q <return> to quit---
>     pData=0x8b52d24, bUseCache=0 '\0') at epcache.c:1014
> #25 0x406066b4 in ProcessFile (r=0x8b52bc4, nFileSize=0) at
> epmain.c:1234
> #26 0x4060688b in embperl_RunRequest (r=0x8b52bc4) at epmain.c:1314
> #27 0x40651744 in XS_Embperl__Req_run (cv=0x8a79df8) at Req.xs:221
> #28 0x40589aa2 in Perl_pp_entersub () from /usr/lib/libperl.so
> #29 0x40583a90 in Perl_runops_standard () from /usr/lib/libperl.so
> #30 0x405371ac in S_call_body () from /usr/lib/libperl.so
> #31 0x4053337e in perl_call_sv () from /usr/lib/libperl.so
> #32 0x403e5e8e in perl_call_handler () from
> /usr/lib/apache/1.3/mod_perl.so
> #33 0x403e5644 in perl_run_stacked_handlers ()
>    from /usr/lib/apache/1.3/mod_perl.so
> #34 0x403e3e8f in perl_handler () from /usr/lib/apache/1.3/mod_perl.so
> #35 0x08054805 in ap_invoke_handler ()
> #36 0x080674ec in ap_die ()
> #37 0x080678a9 in ap_process_request ()
> #38 0x0805e848 in ap_update_child_status ()
> #39 0x0805eaa8 in ap_update_child_status ()
> #40 0x0805f1f6 in ap_update_child_status ()
> #41 0x0805fb6d in main ()
> #42 0x401823c1 in __libc_start_main () from /lib/libc.so.6
>
> On Sun, Oct 20, 2002 at 01:03:51PM -0400, Ilia Lobsanov wrote:
> > Same problem using the new Embperl2.
> > Running apache with -X, I get segfault.
> >
> > So i recompile with debug and make install gives me:
> >
> > cc -c  -I/usr/include/apache -I/usr/include/apache/regex
> > -I/usr/include/apache/os/unix -I/usr/include/libxml2
> > -I/usr/include/libxml2 -I/usr/local/src/Embperl-2.0b9_dev-3/xs -ggdb -O0
> > -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -march=i686 -O3 -pipe   -DVERSION=\"2.0b9_dev-3\"
> > -DXS_VERSION=\"2.0b9_dev-3\" -fpic
> > "-I/usr/lib/perl5/5.6.1/i686-linux/CORE"  -DAPACHE -DEP2 -DLIBXSLT  -o
> > epdom.o epdom.c
> > epdom.c: In function `EMBPERL2_StringAdd':
> > epdom.c:771: Internal compiler error in
> > `gen_tagged_type_instantiation_die', at dwarf2out.c:9315
> > Please submit a full bug report.
> > See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> > cpp0: output pipe has been closed
> > make: *** [epdom.o] Error 1
> >
> > the gcc version is 2.95.3 i686-pc-linux-gnu
> >
> > do you want epdom.i ?
> >
> > ilia.
> >
> > On Sun, Oct 20, 2002 at 01:18:02PM +0200, Gerald Richter wrote:
> > > >
> > > > gdb output goes like this:
> > > > Program received signal SIGSEGV, Segmentation fault.
> > > > [Switching to Thread 1024 (LWP 11458)]
> > > > 0x4060e398 in embperlCmd_AddSessionIdToLink ()
> > > >    from
> > > >    /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Embperl/Embperl.so
> > > >
> > >
> > > I send you a new version of Embperl 2 per private mail. If this still
> > > sehafults please recompile Embperl with
> > >
> > > perl Makefile.PL debug
> > > make install
> > >
> > > rerun it under gdb and when the segfault happens enter a
> > >
> > > BT
> > >
> > > this will output a stackbacktrace and should give me enough
information to
> > > catch the segfault.
> > >
> > > Gerald
> > >
> > >
> > > -------------------------------------------------------------
> > > Gerald Richter    ecos electronic communication services gmbh
> > > Internetconnect * Webserver/-design/-datenbanken * Consulting
> > >
> > > Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> > > E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
> > > WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> > > -------------------------------------------------------------
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > For additional commands, e-mail: embperl-help@perl.apache.org
> >
>



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Segafult with session id inside url (was: Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence)

Posted by Ilia Lobsanov <il...@lobsanov.com>.
Ok i got the debug version to compile when I removed '-O3 -pipe'.
So here's the GDB BT:

0x401e1e13 in strlen () from /lib/libc.so.6
(gdb) BT
#0  0x401e1e13 in strlen () from /lib/libc.so.6
#1  0x40618efd in embperlCmd_AddSessionIdToLink (r=0x8b52bc4, 
    pDomTree=0x405e8c00, xNode=-1073748116, nRepeatLevel=0, 
    sAttrName=0x405e71f4 "$�\f") at epcmd2.c:512
#2  0x405fe4c4 in XS_Embperl__Cmd_AddSessionIdToLink (cv=0x8a72f60) at
Cmd.xs:87
#3  0x40589aa2 in Perl_pp_entersub () from /usr/lib/libperl.so
#4  0x40583a90 in Perl_runops_standard () from /usr/lib/libperl.so
#5  0x405371ac in S_call_body () from /usr/lib/libperl.so
#6  0x4053337e in perl_call_sv () from /usr/lib/libperl.so
#7  0x4060d248 in EMBPERL2_CallStoredCV (r=0x8b52bc4, sArg=0x0,
pSub=0x8bf9208, 
    numArgs=1, pArgs=0xbfffe98c, flags=0, pRet=0xbfffe998) at
epeval.c:735
#8  0x40629306 in embperl_Execute2 (r=0x8b52bc4, xSrcDomTree=6,
pCV=0x8bf9208, 
    pResultDomTree=0x8b52d24) at epcomp.c:1812
#9  0x4062975b in embperl_Execute (r=0x8b52bc4, xSrcDomTree=6,
pCV=0x8bf9208, 
    pResultDomTree=0x8b52d24) at epcomp.c:1922
#10 0x4062d385 in ProviderEpRun_GetContentIndex (r=0x8b52bc4, 
    pProvider=0x8bed2e0, pData=0x8b52d24, bUseCache=0 '\0') at
epprovider.c:1777
#11 0x4062b7b5 in Cache_GetContentIndex (r=0x8b52bc4, pItem=0x8bed608, 
    pData=0x8b52d24, bUseCache=0 '\0') at epcache.c:1014
#12 0x406066b4 in ProcessFile (r=0x8b52bc4, nFileSize=0) at
epmain.c:1234
#13 0x40606c59 in embperl_RunComponent (c=0x8b52c28) at epmain.c:1436
#14 0x40606ddc in embperl_ExecuteComponent (r=0x8b52bc4,
pPerlParam=0x8be26d0)
    at epmain.c:1490
#15 0x40651304 in XS_Embperl__Req_execute_component (cv=0x8a79db0) at
Req.xs:198
#16 0x40589aa2 in Perl_pp_entersub () from /usr/lib/libperl.so
#17 0x40583a90 in Perl_runops_standard () from /usr/lib/libperl.so
#18 0x405371ac in S_call_body () from /usr/lib/libperl.so
#19 0x4053337e in perl_call_sv () from /usr/lib/libperl.so
#20 0x4060d248 in EMBPERL2_CallStoredCV (r=0x8b52bc4, sArg=0x0,
pSub=0x8bc3070, 
    numArgs=1, pArgs=0xbfffee1c, flags=0, pRet=0xbfffee28) at
epeval.c:735
#21 0x40629306 in embperl_Execute2 (r=0x8b52bc4, xSrcDomTree=1,
pCV=0x8bc3070, 
    pResultDomTree=0x8b52d24) at epcomp.c:1812
#22 0x4062975b in embperl_Execute (r=0x8b52bc4, xSrcDomTree=1,
pCV=0x8bc3070, 
    pResultDomTree=0x8b52d24) at epcomp.c:1922
#23 0x4062d385 in ProviderEpRun_GetContentIndex (r=0x8b52bc4, 
    pProvider=0x8bddf48, pData=0x8b52d24, bUseCache=0 '\0') at
epprovider.c:1777
#24 0x4062b7b5 in Cache_GetContentIndex (r=0x8b52bc4, pItem=0x8bdde48, 
---Type <return> to continue, or q <return> to quit---
    pData=0x8b52d24, bUseCache=0 '\0') at epcache.c:1014
#25 0x406066b4 in ProcessFile (r=0x8b52bc4, nFileSize=0) at
epmain.c:1234
#26 0x4060688b in embperl_RunRequest (r=0x8b52bc4) at epmain.c:1314
#27 0x40651744 in XS_Embperl__Req_run (cv=0x8a79df8) at Req.xs:221
#28 0x40589aa2 in Perl_pp_entersub () from /usr/lib/libperl.so
#29 0x40583a90 in Perl_runops_standard () from /usr/lib/libperl.so
#30 0x405371ac in S_call_body () from /usr/lib/libperl.so
#31 0x4053337e in perl_call_sv () from /usr/lib/libperl.so
#32 0x403e5e8e in perl_call_handler () from
/usr/lib/apache/1.3/mod_perl.so
#33 0x403e5644 in perl_run_stacked_handlers ()
   from /usr/lib/apache/1.3/mod_perl.so
#34 0x403e3e8f in perl_handler () from /usr/lib/apache/1.3/mod_perl.so
#35 0x08054805 in ap_invoke_handler ()
#36 0x080674ec in ap_die ()
#37 0x080678a9 in ap_process_request ()
#38 0x0805e848 in ap_update_child_status ()
#39 0x0805eaa8 in ap_update_child_status ()
#40 0x0805f1f6 in ap_update_child_status ()
#41 0x0805fb6d in main ()
#42 0x401823c1 in __libc_start_main () from /lib/libc.so.6

On Sun, Oct 20, 2002 at 01:03:51PM -0400, Ilia Lobsanov wrote:
> Same problem using the new Embperl2.
> Running apache with -X, I get segfault.
> 
> So i recompile with debug and make install gives me:
> 
> cc -c  -I/usr/include/apache -I/usr/include/apache/regex
> -I/usr/include/apache/os/unix -I/usr/include/libxml2
> -I/usr/include/libxml2 -I/usr/local/src/Embperl-2.0b9_dev-3/xs -ggdb -O0
> -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -march=i686 -O3 -pipe   -DVERSION=\"2.0b9_dev-3\"
> -DXS_VERSION=\"2.0b9_dev-3\" -fpic
> "-I/usr/lib/perl5/5.6.1/i686-linux/CORE"  -DAPACHE -DEP2 -DLIBXSLT  -o
> epdom.o epdom.c
> epdom.c: In function `EMBPERL2_StringAdd':
> epdom.c:771: Internal compiler error in
> `gen_tagged_type_instantiation_die', at dwarf2out.c:9315
> Please submit a full bug report.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> cpp0: output pipe has been closed
> make: *** [epdom.o] Error 1
> 
> the gcc version is 2.95.3 i686-pc-linux-gnu
> 
> do you want epdom.i ?
> 
> ilia.
> 
> On Sun, Oct 20, 2002 at 01:18:02PM +0200, Gerald Richter wrote:
> > >
> > > gdb output goes like this:
> > > Program received signal SIGSEGV, Segmentation fault.
> > > [Switching to Thread 1024 (LWP 11458)]
> > > 0x4060e398 in embperlCmd_AddSessionIdToLink ()
> > >    from
> > >    /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Embperl/Embperl.so
> > >
> > 
> > I send you a new version of Embperl 2 per private mail. If this still
> > sehafults please recompile Embperl with
> > 
> > perl Makefile.PL debug
> > make install
> > 
> > rerun it under gdb and when the segfault happens enter a
> > 
> > BT
> > 
> > this will output a stackbacktrace and should give me enough information to
> > catch the segfault.
> > 
> > Gerald
> > 
> > 
> > -------------------------------------------------------------
> > Gerald Richter    ecos electronic communication services gmbh
> > Internetconnect * Webserver/-design/-datenbanken * Consulting
> > 
> > Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> > E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
> > WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> > -------------------------------------------------------------
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Segafult with session id inside url (was: Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence)

Posted by Ilia Lobsanov <il...@lobsanov.com>.
Same problem using the new Embperl2.
Running apache with -X, I get segfault.

So i recompile with debug and make install gives me:

cc -c  -I/usr/include/apache -I/usr/include/apache/regex
-I/usr/include/apache/os/unix -I/usr/include/libxml2
-I/usr/include/libxml2 -I/usr/local/src/Embperl-2.0b9_dev-3/xs -ggdb -O0
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-march=i686 -O3 -pipe   -DVERSION=\"2.0b9_dev-3\"
-DXS_VERSION=\"2.0b9_dev-3\" -fpic
"-I/usr/lib/perl5/5.6.1/i686-linux/CORE"  -DAPACHE -DEP2 -DLIBXSLT  -o
epdom.o epdom.c
epdom.c: In function `EMBPERL2_StringAdd':
epdom.c:771: Internal compiler error in
`gen_tagged_type_instantiation_die', at dwarf2out.c:9315
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
cpp0: output pipe has been closed
make: *** [epdom.o] Error 1

the gcc version is 2.95.3 i686-pc-linux-gnu

do you want epdom.i ?

ilia.

On Sun, Oct 20, 2002 at 01:18:02PM +0200, Gerald Richter wrote:
> >
> > gdb output goes like this:
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 1024 (LWP 11458)]
> > 0x4060e398 in embperlCmd_AddSessionIdToLink ()
> >    from
> >    /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Embperl/Embperl.so
> >
> 
> I send you a new version of Embperl 2 per private mail. If this still
> sehafults please recompile Embperl with
> 
> perl Makefile.PL debug
> make install
> 
> rerun it under gdb and when the segfault happens enter a
> 
> BT
> 
> this will output a stackbacktrace and should give me enough information to
> catch the segfault.
> 
> Gerald
> 
> 
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
> 
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Segafult with session id inside url (was: Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence)

Posted by Gerald Richter <ri...@ecos.de>.
>
> gdb output goes like this:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 11458)]
> 0x4060e398 in embperlCmd_AddSessionIdToLink ()
>    from
>    /usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Embperl/Embperl.so
>

I send you a new version of Embperl 2 per private mail. If this still
sehafults please recompile Embperl with

perl Makefile.PL debug
make install

rerun it under gdb and when the segfault happens enter a

BT

this will output a stackbacktrace and should give me enough information to
catch the segfault.

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org