kokizzu / plv8js

Automatically exported from code.google.com/p/plv8js
Other
0 stars 0 forks source link

invalid plcoffee code causes postgresql to segfault #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
create or replace function test1(i int) returns setof record as $$              
  return [{ i: true }]                                                          
$$ language plcoffee;                                                           

select test1(2);

Shows this in the logs:

LOG:  duration: 0.859 ms  statement: create or replace function test1(i int) 
returns setof record as $$
      return [{ i: true }]
    $$ language plcoffee;
LOG:  server process (PID 83707) was terminated by signal 11: Segmentation fault

Original issue reported on code.google.com by joevan...@gmail.com on 10 May 2012 at 10:13

GoogleCodeExporter commented 9 years ago
9.1.2 on OSX.

Original comment by joevan...@gmail.com on 10 May 2012 at 10:13

GoogleCodeExporter commented 9 years ago
Hmm, it isn't necessarily about plcoffee.  plv8 also fails.

Original comment by umi.tan...@gmail.com on 11 May 2012 at 1:00

GoogleCodeExporter commented 9 years ago
Fixed.  Thanks for the report!

Original comment by umi.tan...@gmail.com on 11 May 2012 at 1:36