首页 > 解决方案 > 如何解决 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,并且每个库都已完美安装。有人知道如何解决这个问题吗?

标签: c++githubsipopalvoip

解决方案


根据运行您的应用程序的用户无权设置指定策略的文档,错误代码EPERM如此。

该策略只允许设置调度程序优先级,所以我猜应用程序要求的优先级高于允许用户使用的优先级?这个问题可能包含一些关于如何解决这个问题的线索:Why does pthread_setschedparam() generate EPERM on opensuse 11.4


推荐阅读