c++ - 如何解决 libopal 中的断言错误?
问题描述
我刚刚编写了一个脚本,该脚本调用了我从github获得的一个项目,该项目调用了一个普通的电话号码,并且在开发过程中我运行该脚本没有问题。但是将它部署在我的服务器上并在那里进行测试,我收到以下错误消息
Starting sipcmd
in debug mode
Manager
Init
initialising SIP endpoint...
TestChanAudio
TestChanAudio
Listening for SIP signalling on 0.0.0.0:5060
assert.cxx(112) PWLib Assertion fail: Function pthread_setschedparam failed, file ptlib/unix/tlibthrd.cxx, line 745, Error=1
Assertion fail: Function pthread_setschedparam failed, file ptlib/unix/tlibthrd.cxx, line 745, Error=1
<A>bort, <C>ore dump, <T>hrow exception, <I>gnore?
两台机器都在运行 linux,并且每个库都已完美安装。有人知道如何解决这个问题吗?
解决方案
根据运行您的应用程序的用户无权设置指定策略的文档,错误代码EPERM
如此。
该策略只允许设置调度程序优先级,所以我猜应用程序要求的优先级高于允许用户使用的优先级?这个问题可能包含一些关于如何解决这个问题的线索:Why does pthread_setschedparam() generate EPERM on opensuse 11.4
推荐阅读
- reactjs - React - Redux - 只显示一些数据
- python - 查看一个字符串是否以另一个字符串的结尾字符开头?
- javascript - Javascript 检查重复项并添加重复的 id
- php - 文件中数字的回声总和
- html - 间隔在 Outlook 中被拉伸?
- java - 适用于 Mac OS 的 Appium:有没有办法在 Messages 应用程序中正确发送 Enter 键?
- python - Visual Studio 代码仅在 unittest 模块中运行第一个测试函数
- python - 在平面方法中编辑 __doc__?
- php - 如何在 php 中通过 CURL 打印 GET 请求数据?
- php - 如何通过php将数据存储在会话中作为cookie?