Re: speeding up XS_DBI_dispatch()

demerphq <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <CANgJU+Xw931nn1SLirHHRDFs2Se318GrE_DRyg5kpwsxw+GiRA@mail.gmail.com>
On 11 February 2012 14:55, Tim Bunce <[email protected]> wrote:
> On Fri, Feb 10, 2012 at 04:48:38PM -0800, Jan Dubois wrote:
>> MSVCRT!abort
>> perl514!PerlEnvGetenv+0x13 [perlhost.h @ 462]
>> DBI!dbi_bootinit+0x276 [DBI.xs @ 468]
>> DBI!XS_DBI__clone_dbis+0x71 [DBI.c @ 4280]
>>
>> Anyways, I would suggest trying a workaround by moving the getenv()
>> call outside the cloning operation.
>
> Hopefully the above will do the trick. Meanwhile, aborting if getenv is
> called during a CLONE sure seems like a bug worthy of a ticket for p5p.

I am not so sure. During a clone, the internals are potentially in an
indeterminate state. I could see it being argued that the only thing
you should be doing during a clone is cloning, not environment
lookups.

But of course, if we can fix it that would be better. And the above is
pure speculation.

Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.