Torsten Luettgert wrote: > Hi, > > I hit a bug in Embperl 2.0b10 today (httpd is 2.0.48, mod_perl > 1.99_12, on a RedHat 9). > > Putting > > <a name="wkst">Test</a> > > in an Embperl page reliably crashes my Apache with sig 11 (SIGSEGV)
The appended patch fixes the problem. You can also grab it from the CVS Gerald --------------------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 939-122 WWW: http://www.ecos.de/ Fax: +49 6133 939-333 --------------------------------------------------------------------------- Besuchen Sie uns auf der CeBIT (18. - 24. März 2004) Halle 6 Stand B38-452 ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info ---------------------------------------------------------------------------
Index: epcmd2.c =================================================================== RCS file: /home/cvs/embperl/epcmd2.c,v retrieving revision 1.11 diff -u -r1.11 epcmd2.c --- epcmd2.c 23 Jan 2004 06:50:54 -0000 1.11 +++ epcmd2.c 7 Mar 2004 20:07:32 -0000 @@ -521,6 +521,8 @@ pNode = Node_self(pDomTree,xNode) ; nAttrLen = strlen (sAttrName) ; pAttr = Element_selfGetAttribut (r -> pApp, pDomTree, pNode, sAttrName, nAttrLen) ; + if (!pAttr) + return ok ; pAttrValue = Attr_selfValue (r -> pApp, pDomTree, pAttr, nRepeatLevel, &pAttrString) ;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]