完全托管的Cloud Run上的错误micronaut-setsockopt,RoutingInBoundHandler

在我自己的应用程序中以及在将micronaut-gcp hello-world example部署到Cloud Run(完全托管)后看到的情况

服务启动时,我从gVisor沙箱看到警告:

#include <stdio.h> 
#include <conio.h>
#include <stdlib.h>

#include <math.h>

int dete(int,int (*)[]);

int main()
{
   int a[3][3]=
   {
        1,4,3,2,1,5,1
   };

   int b[4][4]=
   {
        5,-2,-6,7,-10,-3,-4,6,1
   };

    int ans1,ans2;
    ans1=dete(3,a);//ans1 = 46 and this is correct
    ans2=dete(4,b);//ans2 = 174 but it is giving 5169 which is wrong
    printf("%d,%d",ans1,ans2);
    getch();
}

int dete(int row,int arr[][row])
{
     int col_main_mark,col_main,row_main,col_minor,cof,x,y;
     int minor[row-1][row-1];
     static int det=0;

     if(row==2)//condition to stop recursion
     {
          det = arr[0][0] * arr[1][1] - arr[0][1] * arr[1][0];
          return det;
     }

     for(col_main_mark=0; col_main_mark<row; col_main_mark++)//for specific col value of main matrix (arr[row][row])
     {
          cof=arr[0][col_main_mark];

          //following two loop will make the minor matrix (minor[row-1][row-1]) from the main marix
          for(row_main=0; row_main<row; row_main++)
          {
               for(col_main=0,col_minor=0; col_main<row; col_main++)
               {
                    if(col_main==col_main_mark)
                    continue;

                    minor[row_main][col_minor]=arr[row_main+1][col_main]; col_minor++;
               }
          }

          det = det + cof * pow(-1,col_main_mark) * dete(row-1,minor);  
     }
     return det;
}

,稍后,我看到来自RoutingInBoundHandler的错误:

Container Sandbox Limitation: Unsupported syscall setsockopt(0x41,0x6,0x3ecbfbbfdb1c,0x4,0x3a). Please,refer to https://gvisor.dev/c/linux/amd64/setsockopt for more information.

即使出现上述错误消息,我也可以成功命中hello-world控制器。

当我在本地运行或将相同的容器部署到本地k8s群集时,看不到RoutingInBoundHandler的错误日志。

我假设以上消息与沙盒环境有关...是否应该使用我的micronaut / netty配置设置?

wgphgp 回答:完全托管的Cloud Run上的错误micronaut-setsockopt,RoutingInBoundHandler

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3092957.html

大家都在问