Re: DBI and unicode seg. fault

From: Tim Bunce (Tim.Bunce_at_pobox.com)
Date: 07/23/04


Date: Fri, 23 Jul 2004 02:17:17 +0100
To: Ondrej Koala Vacha <koala@vju.cz>

On Thu, Jul 22, 2004 at 11:13:21PM +0200, Ondrej Koala Vacha wrote:
> On Thu, 22 Jul 2004, Tim Bunce wrote:
>
> > The trace shows that the connect() method has returned but the prepare()
> > method has not been entered. The segmentation fault is probably from
> > Encode::encode().
>
> No, the example generated a sql query:
>
> 040722 23:07:17 218 Connect koala@localhost on test
> 218 Query select á
>
>
> Encode::encode works fine. I have found one solution: in open.pm comment
> two binmode commands, lines 133+134:
>
> # binmode(STDOUT, ":$1");
> # binmode(STDERR, ":$1");
>
> I don't know why :(

Please try to isolate the problem further. A stack trace from the
core file would be a _big_ help. Try using
        http://search.cpan.org/search%3fmodule=Devel::CoreStack

Reproducing it without the DBI, if possible, would also help.

Tim.



Relevant Pages

  • Re: thread & freebsd
    ... Segmentation fault. ... Cannot find thread, Thread ID=2753, generic error ... code or other `trace' information. ...
    (comp.unix.programmer)
  • Re: using thread in C++
    ... Segmentation fault. ... But When I trace the backtrace, gdb tells me ...
    (comp.programming.threads)
  • Re: segmentation fault in sockets library of sicstus prolog
    ... sometimes gives segmentation fault and I could trace the error to this ... even my crystal ball doesn't know the answers... ... cluster with AMD OpteronProcessor 252. ...
    (comp.lang.prolog)
  • Re: DBI and unicode seg. fault
    ... > use encoding 'latin2'; ... > require DBI; ... The trace shows that the connectmethod has returned but the prepare ... The segmentation fault is probably from ...
    (perl.dbi.users)
  • Fwd: DBD::ODBC and placeholders
    ... I went back to my code where I built this using dbi ... Here is the trace output of the mysql ... 'INSERT into queue_stats (qdate, qtime, callid, queue, exten, q ...
    (perl.dbi.users)