![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
we have found a bug in CVS head using PL/Perl: |
#2
| |||
| |||
|
|
On Tue, Jul 05, 2005 at 09:54:52PM +0200, Hans-Jürgen Schönig wrote: we have found a bug in CVS head using PL/Perl: How current is your checkout? Mine's from this morning and I don't get a crash with the example you posted: |
#3
| |||
| |||
|
|
Michael Fuhr <mike (AT) fuhr (DOT) org> writes: On Tue, Jul 05, 2005 at 09:54:52PM +0200, Hans-Jürgen Schönig wrote: we have found a bug in CVS head using PL/Perl: How current is your checkout? Mine's from this morning and I don't get a crash with the example you posted: None for me either (trying on a Fedora Core 3 x86 box; don't currently have plperl built on my other machine). Platform-specific issue maybe? |
#4
| |||
| |||
|
|
I am running FC4 on x86. There is no core dump. |
|
I have compiled it all over again cleanly. The last elog is never reached so something seems to go wrong inside the SQL call ... |
#5
| |||
| |||
|
|
On Tue, Jul 05, 2005 at 10:49:54PM +0200, Hans-Jürgen Schönig wrote: I am running FC4 on x86. There is no core dump. Just to be sure: where are you looking? I don't know if it's configurable on your platform, but I usually find core dumps under $PGDATA/base/<databaseoid>/. |
#6
| |||
| |||
|
|
we have found a bug in CVS head using PL/Perl: [hs@hp hs]$ psql test < /tmp/core.sql DROP FUNCTION CREATE FUNCTION NOTICE: sql: SELECT 10, 10 FROM pg_locks WHERE transaction IS NOT NULL AND pid = pg_backend_pid() server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. connection to server was lost DROP FUNCTION func(); CREATE OR REPLACE FUNCTION func() RETURNS int4 AS ' $sql = "SELECT 10, 10 FROM pg_locks " . "WHERE transaction IS NOT NULL AND pid = pg_backend_pid() "; elog(NOTICE, "sql: $sql"); my $rv = spi_exec_query($sql); return 0; ' LANGUAGE 'plperlu'; SELECT func(); somehow Perl does not seem to like the SPI. only the development code seems to be affected. thanks a lot, hans ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend |
#7
| |||
| |||
|
|
Has this been fixed? --------------------------------------------------------------------------- Hans-Jürgen Schönig wrote: we have found a bug in CVS head using PL/Perl: [hs@hp hs]$ psql test < /tmp/core.sql DROP FUNCTION CREATE FUNCTION NOTICE: sql: SELECT 10, 10 FROM pg_locks WHERE transaction IS NOT NULL AND pid = pg_backend_pid() server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. connection to server was lost |
#8
| |||
| |||
|
|
no, this one seems to be fine now. i have no idea what went wrong. the code cored at some very "unlikely" place. |
|
somehow rebooting helped ... - this was very strange. fortunately it works nicely now ... |
#9
| |||
| |||
|
|
Michael Fuhr wrote: Are you saying that it *did* dump core, or that it *didn't*? it cored; my core-size settings are ok ... |
#10
| |||
| |||
|
|
Michael Fuhr wrote: So were you able to get a stack trace from the core dump? yes, but i did not keep the backtrace. i did not expect the db to work after the reboot. you shouldn't worry to much about that. i don't believe it is a postgresql related problem ... |
![]() |
| Thread Tools | |
| Display Modes | |
| |