惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
IT之家
IT之家
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Help Net Security
V
V2EX
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
博客园 - 叶小钗
J
Java Code Geeks
博客园 - 【当耐特】
月光博客
月光博客
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件

博客园 - 一字千金

day6矩阵论---SVD(奇异值分解)lora关系 day5 线性代数--范数和内积 day4--特征值和特征向量 day3 向量 day2 线性代数--矩阵 day1线性代数---行列式 C++程序员大模型学习计划(每天2小时) libprotobuf.so出现未定义符号 linux C++崩溃堆栈信息打印 看懂成交密度,秒辨股市资金真假动向 安装android studio时出现下面报错source-36_r01.zip安装失败 异动拉升横盘突破筛选股票 sh看门狗脚本 QLabel设置QToolTip显示的样式 自动化http请求脚本 批量遍历文件夹内得文件生成md5值 g_JavaVM->AttachCurrentThread((void **) &pEnv, NULL))返回-1 python使用pg数据库 批量获取git所有分支命令 大模型之智能体 深⼊了解 GPT-4和ChatGPT的API 初识GPT-4和ChatGTP 什么是大模型以及需要掌握哪些基础知识 linux下检测程序内存泄漏方法步骤 pycharm2024下载安装一键激活2099年 linux根据进程名查找进程并杀死进程脚本 linux根据进程名称定时获取进程内存脚本 QGridLayout删除旧窗口还有清干净 linux编译安装ccache3.2.4
容器运行报错线程创建失败
一字千金 · 2026-07-09 · via 博客园 - 一字千金

redhat容器内部执行程序报错如下

Starting program: /home/soft/HPCServer/./HPCServer
warning: Error disabling address space randomization: Operation not permitted
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.34-105.oe2203sp1.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
warning: Ignoring non-absolute filename: <libnsl.so.1>
Missing separate debuginfo for libnsl.so.1
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/96/fffd935288296af9a07b535c736e0e376ba55a.debug
warning: Ignoring non-absolute filename: <./libsasl2.so.3>
Missing separate debuginfo for ./libsasl2.so.3
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/57/d7f694ff1bff339da151ca41399c5c94a6933a.debug
hpr tls index{2}
hlog.async=>_sync=1
SyncLogHandler!
schina !!! HPR_CreateThread_Local HPR_Thread_Create error, return -1 3

schina !!! HPR_InitThread_Local HPR_CreateThread_Local error, return -1 2

schina !!! HPR_ThreadPool_Create HPR_InitThread_Local error, return -1 3


Program received signal SIGSEGV, Segmentation fault.
0x00007fc9839a1081 in __gnu_cxx::__exchange_and_add (__val=-1, __mem=0x3030303030307838) at /usr/include/c++/4.8/ext/atomicity.h:49
49 /usr/include/c++/4.8/ext/atomicity.h: No such file or directory.
Missing separate debuginfos, use: dnf debuginfo-install e2fsprogs-1.46.4-17.oe2203sp1.x86_64 keyutils-libs-1.6.3-4.oe2203sp1.x86_64 krb5-libs-1.19.2-6.oe2203sp1.x86_64 libgcc-10.3.1-20.x86_64 libselinux-3.3-2.oe2203sp1.x86_64 libstdc++-10.3.1-20.x86_64 libxcrypt-4.4.26-4.oe2203sp1.x86_64 pcre2-10.39-6.oe2203sp1.x86_64 zlib-1.2.11-22.oe2203sp1.x86_64

解决方法:
修改dockersrun命令

#!/bin/bash
docker stop hpcserver
docker rm hpcserver
docker run -d \
  --name hpcserver \
  --restart=unless-stopped \
  -p 0.0.0.0:30990:30990 \
  -p 0.0.0.0:31250:1250/udp \
  -e HPC_MSGHANDER_IP="10.19.170.33" \
  -e MY_POD_NAME=hpcserver \
  --cpu-period=100000 \
  --cpu-quota=100000 \
  --memory=1005Mi \
  --ulimit nproc=65535:65535 \
  --ulimit nofile=65535:65535 \
  --security-opt seccomp=unconfined \
  --cap-add=SYS_PTRACE \
  --mount type=bind,source=/home/ssd/AlgorithmLib,destination=/home/ssd/AlgorithmLib \
  --mount type=bind,source=/home/ssd/HMSProxy,destination=/home/ssd/HMSProxy \
  --mount type=bind,source=/home/ssd/log/HPCServer/,destination=/home/ssd/log/HPCServer/ \
  --mount type=bind,source=/opt/opsmgr/web/opsMgrAgent/data/custom/,destination=/opt/opsmgr/web/opsMgrAgent/data/custom/ \
  docker.hikcloud:30001/hpc-deepmind/hpcserver:V4.1.0-20260707

1. --ulimit nproc=65535:65535 (最重要)

  • 增加容器内可创建的最大进程/线程数
  • 解决 HPR_Thread_Create error 问题

2. --ulimit nofile=65535:65535

  • 增加文件描述符限制
  • 防止因文件描述符不足导致的问题

3. --security-opt seccomp=unconfined

  • 禁用 seccomp 安全策略
  • 允许程序使用 clone 系统调用创建线程
  • 解决 errno = 1 (EPERM) 问题

4. --cap-add=SYS_PTRACE

  • 添加 ptrace 系统调用权限
  • 允许程序进行调试和跟踪