Mailing List Archive

Segfault with Embperl, Apache::Session
Trying to use Apache::Session with Embperl 1.2.1, mod_perl 1.21, Apache 1.3.9.
I've got this running on another machine just fine with the exact same setup (I
think).

I created a db called sessions with a table called sessions:

mysql> show fields from sessions;
+-----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+-------+
| id | varchar(16) | | PRI | | |
| length | int(11) | YES | | NULL | |
| a_session | text | YES | | NULL | |
+-----------+-------------+------+-----+---------+-------+
3 rows in set (0.00 sec)

When I try access an Embperl page that uses %udat I get:

[Thu Apr 13 14:51:05 2000] [notice] Apache/1.3.9 (Unix) mod_perl/1.21
configured -- resuming normal operations
panic: restartop
[Thu Apr 13 14:51:23 2000] [notice] child pid 14373 exit signal Segmentation
Fault (11)


--
Jason Bodnar + jbodnar@tivoli.com + Tivoli Systems

Homer: Well, the evening began at the Gentleman's Club, where we were
discussing Wittgenstein over a game of backgammon.

Scully: Mr. Simpson, it's a felony to lie to the FBI.

Homer: We were sitting in Barney's car eating packets of mustard. Ya
happy?

The Springfield Files
RE: Segfault with Embperl, Apache::Session [ In reply to ]
> Trying to use Apache::Session with Embperl 1.2.1, mod_perl 1.21,
> Apache 1.3.9.
> I've got this running on another machine just fine with the exact
> same setup (I
> think).
>
>
> When I try access an Embperl page that uses %udat I get:
>
> [Thu Apr 13 14:51:05 2000] [notice] Apache/1.3.9 (Unix) mod_perl/1.21
> configured -- resuming normal operations
> panic: restartop
> [Thu Apr 13 14:51:23 2000] [notice] child pid 14373 exit signal
> Segmentation
> Fault (11)
>
>

Any chance to get a stack backtrace from gdb? Is mod_perl link staticly into
Apache or loaded as DSO? If the second, than upgrade to mod_perl 1.22

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 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: Segfault with Embperl, Apache::Session [ In reply to ]
On 13-Apr-2000 Gerald Richter wrote:
>> Trying to use Apache::Session with Embperl 1.2.1, mod_perl 1.21,
>> Apache 1.3.9.
>> I've got this running on another machine just fine with the exact
>> same setup (I
>> think).
>>
>>
>> When I try access an Embperl page that uses %udat I get:
>>
>> [Thu Apr 13 14:51:05 2000] [notice] Apache/1.3.9 (Unix) mod_perl/1.21
>> configured -- resuming normal operations
>> panic: restartop
>> [Thu Apr 13 14:51:23 2000] [notice] child pid 14373 exit signal
>> Segmentation
>> Fault (11)
>>
>>
>
> Any chance to get a stack backtrace from gdb? Is mod_perl link staticly into
> Apache or loaded as DSO? If the second, than upgrade to mod_perl 1.22

If you tell me what to do I'll try to get a stack backtrace.

mod_perl is staticly linked.

--
Jason Bodnar + jbodnar@tivoli.com + Tivoli Systems

Second class? What about Social Security, bus discounts, Medic-Alert
jewelery, Gold Bond powder, pants all the way up to your armpits, and
all those other senior perks? Oh, if you ask me, old folks have it
pretty sweet.

-- Homer Simpson
Raging Abe Simpson and His Grumbling Grandson in
"The Curse of the Flying Hellfish"
Re: Segfault with Embperl, Apache::Session [ In reply to ]
On 13-Apr-2000 Mark Ng wrote:
> can you tell me the following about your 2 systems (the one that works and
> the new
> one), I have the same problem.
>
> I need to know:
> Versions of: Perl

Both are 5.004_04

> apache

Both are 1.3.9

> modperl

Both are 1.21

> embperl

Both are 1.2.1

> OS (Exact version and path level)

Machine where I'm getting the errors: SunOS esc-dev 5.7 Generic_106541-04 sun4u
sparc
Machine where it works: SunOS twidow.dev.tivoli.com 5.6 Generic_105181-16 sun4u
sparc

Hmmm ... maybe it's a problem with Solaris 5.7?

> cc compiler used.

Used gcc 2.8.0 for everything.


>
> Mark
>
> Jason Bodnar wrote:
>
>> Trying to use Apache::Session with Embperl 1.2.1, mod_perl 1.21, Apache
>> 1.3.9.
>> I've got this running on another machine just fine with the exact same setup
>> (I
>> think).
>>
>> I created a db called sessions with a table called sessions:
>>
>> mysql> show fields from sessions;
>> +-----------+-------------+------+-----+---------+-------+
>> | Field | Type | Null | Key | Default | Extra |
>> +-----------+-------------+------+-----+---------+-------+
>> | id | varchar(16) | | PRI | | |
>> | length | int(11) | YES | | NULL | |
>> | a_session | text | YES | | NULL | |
>> +-----------+-------------+------+-----+---------+-------+
>> 3 rows in set (0.00 sec)
>>
>> When I try access an Embperl page that uses %udat I get:
>>
>> [Thu Apr 13 14:51:05 2000] [notice] Apache/1.3.9 (Unix) mod_perl/1.21
>> configured -- resuming normal operations
>> panic: restartop
>> [Thu Apr 13 14:51:23 2000] [notice] child pid 14373 exit signal Segmentation
>> Fault (11)
>>
>> --
>> Jason Bodnar + jbodnar@tivoli.com + Tivoli Systems
>>
>> Homer: Well, the evening began at the Gentleman's Club, where we were
>> discussing Wittgenstein over a game of backgammon.
>>
>> Scully: Mr. Simpson, it's a felony to lie to the FBI.
>>
>> Homer: We were sitting in Barney's car eating packets of mustard. Ya
>> happy?
>>
>> The Springfield Files
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
>> For additional commands, e-mail: embperl-help@perl.apache.org

--
Jason Bodnar + jbodnar@tivoli.com + Tivoli Systems

I strive for greatness but will settle for mediocrity. -- Jason Bodnar
RE: Segfault with Embperl, Apache::Session [ In reply to ]
> If you tell me what to do I'll try to get a stack backtrace.
>

http://perl.apache.org/embperl/Faq.pod.1.html#make_test_fails_with_a_SIGxxxx
_

Gerald
RE: Segfault with Embperl, Apache::Session [ In reply to ]
#0 0xff1d7540 in Perl_sv_clear ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#1 0xff1d7880 in Perl_sv_free ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#2 0xff1ea2a8 in Perl_free_tmps ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#3 0xff1cc1a4 in Perl_pp_nextstate ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#4 0xff1cc07c in Perl_runops ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#5 0xff19b188 in perl_call_sv ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#6 0xff059a2c in CallCV ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#7 0xff05a088 in EvalAndCall ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#8 0xff05a390 in EMBPERL_EvalTransFlags ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#9 0xff05a3e4 in EMBPERL_EvalTrans ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#10 0xff050e7c in ScanCmdEvals ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#11 0xff053e5c in EMBPERL_ProcessBlock ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#12 0xff05aa84 in EMBPERL_EvalMain ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#13 0xff053adc in ProcessFile ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#14 0xff054430 in EMBPERL_ExecuteReq ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#15 0xff04d32c in XS_HTML__Embperl__Req_ExecuteReq ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#16 0xff1d1558 in Perl_pp_entersub ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#17 0xff1cc07c in Perl_runops ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#18 0xff19b188 in perl_call_sv ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#19 0xff059a2c in CallCV ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#20 0xff05a088 in EvalAndCall ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#21 0xff05a390 in EMBPERL_EvalTransFlags ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#22 0xff05a3e4 in EMBPERL_EvalTrans ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#23 0xff050e7c in ScanCmdEvals ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#24 0xff053e5c in EMBPERL_ProcessBlock ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#25 0xff05aa84 in EMBPERL_EvalMain ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#26 0xff053adc in ProcessFile ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#27 0xff054430 in EMBPERL_ExecuteReq ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#28 0xff04d32c in XS_HTML__Embperl__Req_ExecuteReq ()
from
/opt/gnu/depot/perl5.004_04/lib/site_perl/sun4-solaris/auto/HTML/Embperl/Embperl
.so
#29 0xff1d1558 in Perl_pp_entersub ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#30 0xff1cc07c in Perl_runops ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#31 0xff19b188 in perl_call_sv ()
from /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so
#32 0x5bffc in perl_call_handler ()
#33 0x5b880 in perl_run_stacked_handlers ()
#34 0x5a45c in perl_handler ()
#35 0x7c544 in ap_invoke_handler ()
#36 0x98348 in ap_some_auth_required ()
#37 0x983c8 in ap_process_request ()
#38 0x8c1f4 in ap_child_terminate ()
#39 0x8c45c in ap_child_terminate ()
#40 0x8c65c in ap_child_terminate ()
#41 0x8cf40 in ap_child_terminate ()
#42 0x8dadc in main ()



On 13-Apr-2000 Gerald Richter wrote:
>> If you tell me what to do I'll try to get a stack backtrace.
>>
>
> http://perl.apache.org/embperl/Faq.pod.1.html#make_test_fails_with_a_SIGxxxx
> _
>
> Gerald

--
Jason Bodnar + jbodnar@tivoli.com + Tivoli Systems

Love isn't hopeless. Look, maybe I'm no expert on the subject, but there
was one time I got it right.

-- Homer Simpson
Another Simpson's Clip Show
RE: Segfault with Embperl, Apache::Session [ In reply to ]
>
> #0 0xff1d7540 in Perl_sv_clear ()
> from
> /opt/gnu/depot/perl5.004_04/lib/sun4-solaris/5.00404/CORE/libperl.so

It crashs somewhere deep inside of Perl, so it's hard to say what's happeing
here.

I would first try to recompile all modules (maybe Perl itself also), to make
sure things fit together

Gerald
Re: Segfault with Embperl, Apache::Session [ In reply to ]
The binaries on both boxes are the same. They get rdist'd out from one
machine every night.

I'm going to rebuild the latest versions of everything on the 2.7 machine
tomorrow and see if that makes a difference.

At 10:57 PM 4/13/00 -0400, Mark Imbriaco wrote:
>On Thu, 13 Apr 2000, Jason Bodnar wrote:
>
>> Hmmm ... maybe it's a problem with Solaris 5.7?
>
>Can you try the binaries from the 2.6 box on the 2.7 box to see if that
>works? That would at least kind of indicate whether it's an OS bug or a
>configuration bug.
>
>-Mark
>


--
Jason Bodnar + Tivoli Systems = jbodnar@tivoli.com
Re: Segfault with Embperl, Apache::Session [ In reply to ]
On Thu, 13 Apr 2000, Jason Bodnar wrote:

> Hmmm ... maybe it's a problem with Solaris 5.7?

Can you try the binaries from the 2.6 box on the 2.7 box to see if that
works? That would at least kind of indicate whether it's an OS bug or a
configuration bug.

-Mark