perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarrod Stenberg <slo...@yahoo.com>
Subject Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags? Ignore previous.
Date Wed, 21 Aug 2002 21:47:45 GMT

More info.

I discovered that the segfaults are related to DBI. 
Given:

# DBI is already loaded.
$dbh = ...
$sth = $dbh->prepare(...);
$sth->execute();

And the above is a successful query leaving me a
handle with stuff to do.  If I do this:

    while ($h = $sth->fetchrow_hashref()) {
        #do stuff
    }

within the same block, it works fine.

But, if I do this:

    [$ while ($h = $sth->fetchrow_hashref()) $]
       [# do stuff #]
    [$ endwhile $]

It segfaults the httpd instance.  I'm using namespaces
as prescribed, I think.  What gives?  Any ideas?

-Jarrod
P.S.  Sorry about the double post.  My laptop went
whacky for a moment.

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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


Mime
View raw message