2024年4月22日 星期一

runtime/cgo: pthread_create failed: Operation not permitted

 跑docker的時候噴錯如下:


runtime/cgo: pthread_create failed: Operation not permitted

SIGABRT: abort

PC=0x7f1fd83469fc m=0 sigcode=18446744073709551610


goroutine 0 gp=0x12690280 m=0 mp=0x12691580 [idle]:

runtime: g 0 gp=0x12690280: unknown pc 0x7f1fd83469fc

stack: frame={sp:0x7fffa7f376c0, fp:0x0} stack=[0x7fffa773a000,0x7fffa7f37c20)

0x00007fffa7f375c0:  0x0002f7ff0002ebe1  0x0002ffff0002fa1e

0x00007fffa7f375d0:  0x000e00ff0003134b  0x0010ffff000e01f0

0x00007fffa7f375e0:  0x0000000000000000  0x0000000000000000

0x00007fffa7f375f0:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37600:  0x0002a6ff0002a6de  0x0002b73f0002b735

0x00007fffa7f37610:  0x0002b81f0002b81e  0x0002ceaf0002cea2

0x00007fffa7f37620:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37630:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37640:  0x0001faff0001fad7  0x0001fb930001fb93

0x00007fffa7f37650:  0x0001fbef0001fbcb  0x0001ffff0001fbfa

0x00007fffa7f37660:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37670:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37680:  0x0001fa8f0001fa87  0x0001faaf0001faa9

0x00007fffa7f37690:  0x0001fabf0001fab7  0x0001facf0001fac3

0x00007fffa7f376a0:  0x0000000000000000  0x0000000000000000

0x00007fffa7f376b0:  0x0000000000000000  0x00007f1fd83469ee

0x00007fffa7f376c0: <0x0000000000000000  0x0000000000000000

0x00007fffa7f376d0:  0x0000000000000000  0x0000000000000000

0x00007fffa7f376e0:  0x0000000000000000  0x0000000000000000

0x00007fffa7f376f0:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37700:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37710:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37720:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37730:  0x0000000000000000  0x0000000000000000

0x00007fffa7f37740:  0x0000000000000000  0x374c47a345892e00

0x00007fffa7f37750:  0x00007f1fd82af3c0  0x0000000000000006

0x00007fffa7f37760:  0x0000000000000001  0x00007fffa7f37a90

0x00007fffa7f37770:  0x0000000012690280  0x00007f1fd82f2476

0x00007fffa7f37780:  0x00007f1fd84cbe90  0x00007f1fd82d87f3

0x00007fffa7f37790:  0x0000000000000020  0x0000000000000000

0x00007fffa7f377a0:  0x0000000000000000  0x0000000000000000

0x00007fffa7f377b0:  0x0000000000000000  0x0000000000000000

runtime: g 0 gp=0x12690280: unknown pc 0x7f1fd83469fc

stack: frame={sp:0x7fffa7f376c0, fp:0x0} stack=[0x7fffa773a000,0x7fffa7f37c20)

.......



解決辦法:
在Docker前使用 --security-opt seccomp=unconfined  

e.g.,

docker run -it --rm --security-opt seccomp=unconfined ollama/ollama



沒有留言:

張貼留言

iscsi 連線問題筆記

如果要進行umount但是出現target buzy sudo fuser -km 掛載點 sudo umount 掛載點 iSCSI重啟 sudo open-iscsi restart  掛載lun iscsiadm -m discovery -t sendtargets -p...