You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "Bayer, Michael" <Mi...@mlb.com> on 2002/04/30 22:47:15 UTC

located segfault, Embperl 2.0b7 Solaris 2.8, epmain.c


Compiling and testing Embperl 2.0b7 on Solaris 2.8, gcc 2.95.3, without
mod_perl or XML libs, produces segfault on "make test".  The segfault can be
corrected, and the test script then runs perfectly, by commenting out line
596 of epmain.c :

lprintf (r -> pApp,  "[%d]PERF: input = %s\n", r -> pThread -> nPid,
sInputfile) ;

In this line, the parameter 'sInputfile' is null, and causes a segfault as
follows:

#0  0xff1b3084 in strlen () from /usr/lib/libc.so.1
#1  0xff202c58 in _doprnt () from /usr/lib/libc.so.1
#2  0xff204b4c in vfprintf () from /usr/lib/libc.so.1
#3  0xff09e3a4 in EMBPERL2_lprintf (a=0x24e840, sFormat=0xffbef90c "") at
epio.c:1096
#4  0xff09b6f4 in ResetRequest (r=0x314040, sInputfile=0x0) at epmain.c:596
#5  0xff09cf80 in embperl_RunRequest (r=0x314040) at epmain.c:1330
#6  0xff09cff0 in embperl_ExecuteRequest (pApacheReqSV=0x0,
pPerlParam=0x206e30)
    at epmain.c:1385
#7  0xff093a40 in XS_Embperl__Req_ExecuteRequest (cv=0x22cdd0) at
Embperl.xs:74
#8  0x76220 in Perl_pp_entersub ()
#9  0x6ec00 in Perl_runops_standard ()
#10 0x244b0 in S_run_body ()
#11 0x24100 in perl_run ()
#12 0x214d8 in main ()

==============================================================================
"WorldSecure Server <mlbaseball.com>" made the following
 annotations on 04/30/02 16:48:15
------------------------------------------------------------------------------------------------------------------------------------------------------------
[INFO] -- Virus Manager:
No Viruses were detected in this message.

==============================================================================


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


Re: located segfault, Embperl 2.0b7 Solaris 2.8, epmain.c

Posted by Gerald Richter <ri...@ecos.de>.
>
>
> Compiling and testing Embperl 2.0b7 on Solaris 2.8, gcc 2.95.3, without
> mod_perl or XML libs, produces segfault on "make test".  The segfault can
be
> corrected, and the test script then runs perfectly, by commenting out line
> 596 of epmain.c :
>
> lprintf (r -> pApp,  "[%d]PERF: input = %s\n", r -> pThread -> nPid,
> sInputfile) ;
>
> In this line, the parameter 'sInputfile' is null, and causes a segfault as

Yes, this is a "feature" of solaris clib. All other OS I know will display
<null> instead of segfaulting...

I have already found this bug and corrected it in my developement version.

Anyway thanks for the hint

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