Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support for ruby19 #1

Open
unexist opened this Issue Jun 8, 2010 · 2 comments

Comments

Projects
None yet
2 participants

unexist commented Jun 8, 2010

plruby does not work with ruby19 (ruby 1.9.1p378) and just segfaults.

Steps to reproduce:

  1. create function foo() returns int as '1' language 'plruby';
    select foo();

  2. STATEMENT: drop function foo(int);
    (eval):1: [BUG] Segmentation fault
    ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]

-- control frame ----------
c:0003 p:0021 s:0006 b:0006 l:0010ec d:000005 EVAL   (eval):1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0010ec d:0010ec TOP   
---------------------------
LOG:  server process (PID 11159) was terminated by signal 11: Segmentation fault
LOG:  terminating any other active server processes

I am currently investigating the code, apparently I have experience in embedding ruby but not with pg-pl stuff.

Contributor

tfoldi commented Sep 20, 2010

for me it gives:

template1=# create function foo() returns int as '1' language 'plruby';
CREATE FUNCTION
template1=# select foo();

ERROR:  cannot create internal procedure (plruby.c:640)
DETAIL:
Insecure: can't define method
<<===def PLtemp.proc_84239(args)
1
end
===>>

could you send more info? ruby 1.9.2

Contributor

tfoldi commented Sep 20, 2010

Hmm, and if reduce the safe level, it works perfectly

template1=#  select foo();
 foo
-----
   1

@koizumistr koizumistr added a commit to koizumistr/postgresql-plruby that referenced this issue Jul 1, 2017

@koizumistr koizumistr Merge pull request #1 from koizumistr/gitignore-cleanup_2
.gitignore cleanup
c443275
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment