Skip to content

Commit

Permalink
Merge pull request #24 from acoolnev/failed_exceptions_in_aws_lambda
Browse files Browse the repository at this point in the history
Exceptions do not work in ClickHouse integrated to AWS Lambda
  • Loading branch information
alexey-milovidov authored May 15, 2024
2 parents b70ecba + 65d2ac3 commit 854538c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DwarfInstructions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static bool isPointerValid(pint_t ptr)
{
unsigned char mincore_res = 0;
auto page_size = sysconf(_SC_PAGESIZE);
return ptr && (0 == syscall(SYS_mincore, (void*)(ptr / page_size * page_size), 1, &mincore_res) || errno == ENOSYS);
return ptr && (0 == syscall(SYS_mincore, (void*)(ptr / page_size * page_size), 1, &mincore_res) || errno == ENOSYS || errno == EPERM);
}

template <typename A, typename R>
Expand Down

0 comments on commit 854538c

Please sign in to comment.