perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Segafult with session id inside url (was: Embperl 2.0b8 and HTML::Embperl 1.3.4 coexistence)
Date Sun, 24 Nov 2002 18:45:07 GMT
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" <ilia@lobsanov.com>
To: "Gerald Richter" <richter@ecos.de>
Cc: <embperl@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


Mime
View raw message