Skip to content

[YQL-17697] Disable core dumps for udf_resolver #1439

New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ydb/library/yql/tools/udf_resolver/udf_resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#ifdef _linux_
#include <sys/types.h>
#include <sys/prctl.h>
#include <sys/resource.h>
#include <sys/syscall.h>
#include <sys/socket.h>
#ifndef GRND_RANDOM
Expand Down Expand Up @@ -273,6 +274,12 @@ int main(int argc, char **argv) {

NYql::SendSignalOnParentThreadExit(SIGTERM);

#ifdef _linux_
if (rlimit limit = {0, 0}; setrlimit(RLIMIT_CORE, &limit) != 0) {
ythrow TSystemError() << "Failed to set RLIMIT_CORE";
}
#endif

if (res.Has("filter-syscalls")) {
#ifdef _linux_

Expand Down