Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

print() of a long string crashes the server #63

Open
RhodiumToad opened this issue Nov 25, 2017 · 0 comments
Open

print() of a long string crashes the server #63

RhodiumToad opened this issue Nov 25, 2017 · 0 comments

Comments

@RhodiumToad
Copy link
Member

create function t5()
  returns void
  language pllua
  as $$
    print(string.rep("foo",10000))
$$;

select t5();
LOG:  server process (PID 1394) was terminated by signal 11: Segmentation fault
DETAIL:  Failed process was running: select t5();

Looks like misuse of the luaL_buffinit protocol in luaP_print; it's using the stack too freely.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant