![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
ERROR: error from Perl function: creation of Perl function failed: (in cleanup) Undefined subroutine &main::mksafefunc called at (eval 4) line 2. at (eval 4) line 2. |
#3
| |||
| |||
|
|
"Greg Sabino Mullane" <greg (AT) turnstep (DOT) com> writes: ERROR: error from Perl function: creation of Perl function failed: (in cleanup) Undefined subroutine &main::mksafefunc called at (eval 4) line 2. at (eval 4) line 2. I could not duplicate this in either 8.0 or HEAD branches. It looks a bit like an old bug that we had in plperl, though. Are you sure your plperl.so is up to date? |
#4
| |||
| |||
|
|
On Wed, Aug 17, 2005 at 06:46:20PM -0400, Tom Lane wrote: "Greg Sabino Mullane" <greg (AT) turnstep (DOT) com> writes: ERROR: error from Perl function: creation of Perl function failed: (in cleanup) Undefined subroutine &main::mksafefunc called at (eval 4) line 2. at (eval 4) line 2. I could not duplicate this in either 8.0 or HEAD branches. It looks a bit like an old bug that we had in plperl, though. Are you sure your plperl.so is up to date? Could this be another "depends on the junk on your stack" bug? I get different results depending on the OS and version of PostgreSQL: |
#5
| |||
| |||
|
|
Could this be another "depends on the junk on your stack" bug? |
#6
| |||
| |||
|
|
Michael Fuhr <mike (AT) fuhr (DOT) org> writes: Could this be another "depends on the junk on your stack" bug? Looks that way --- but I've still had no success in reproducing it, either on x86/Linux or PPC/Darwin. Anyone have some variant test cases? |
#7
| |||
| |||
|
|
I could not duplicate this in either 8.0 or HEAD branches. It looks a bit like an old bug that we had in plperl, though. Are you sure your plperl.so is up to date? |

#8
| |||
| |||
|
|
Tom Lane asked: I could not duplicate this in either 8.0 or HEAD branches. It looks a bit like an old bug that we had in plperl, though. Are you sure your plperl.so is up to date? Looks like Michael is already far along, but yes, my plperl.so was up to date. This is on a Red Hat Linux box, using --with-perl and --with-gnu-ld as the only compile options. It's a very subtle bug: on my box, simply leaving out the trigger definition, or having the function not do a spi_exec_query will not raise the error. |
#9
| |||
| |||
|
|
Tom Lane once mentioned that "Valgrind is fairly useless for debugging postgres," but has anybody tried it for this problem? I tried using the FreeBSD port but it's having trouble (first I had to hack in support for a system call, now it's terminating the postmaster with SIBGUS on a call to setproctitle). |
#10
| |||
| |||
|
|
Tom Lane once mentioned that "Valgrind is fairly useless for debugging postgres," but has anybody tried it for this problem? I've got valgrind working, but not sure exactly how to use it to debug this problem. What's the procedure? |
![]() |
| Thread Tools | |
| Display Modes | |
| |