libc: ../src/pj/os_core_unix.c:692: pj_thread_this: assertion "!"Calling pjlib from unknown/external

使用PjSip通信的时候,在切换用户的时候经常会报这个错,走过很多弯路,最后才发现是Java GC回收导致对象被销毁:

http://www.pjsip.org/docs/book-latest/html/intro_pjsua2.html#problems-with-garbage-collection

Garbage collection (GC) exists in Java and Python (and other languages, but we don’t support those for now), and there are some problems with it when it comes to PJSUA2 usage:

1.premature destruction of PJSUA2 objects which are created in Java and Python space and passed to the native space without keeping reference to the object

2.it delays the destruction of objects (including PJSUA2 objects), causing the code in object’s destructor to be executed out of order

3.the destruction operation by GC may run on different thread not previously registered to PJLIB, causing assertion


我们原先的消息发送是先添加好友,然后发送消息的时候直接选择好友,如下:

初始化好友:

publi
当你在Centos系统中启动MYSQL服务时,出现了"./mysqld: /lib64/libc.so.6: version `GLIBC_2.28' not found"的错误提示。这个错误通常是由于系统中缺少GLIBC_2.28版本导致的。 要解决这个问题,你可以按照以下步骤进行操作: 1. 首先,需要下载GLIBC的2.28版本。你可以使用以下命令下载并解压缩GLIBC-2.28的源代码: ```shell cd /usr/local/ wget https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.28.tar.xz --no-check-certificate tar -xf glibc-2.28.tar.xz ``` 2. 进入解压缩后的glibc-2.28目录并创建一个build目录: ```shell cd glibc-2.28/ mkdir build cd build/ ``` 3. 使用configure命令设置安装路径: ```shell ../configure --prefix=/usr/local/glibc-2.28 ``` 4. 接着,编译和安装GLIBC-2.28: ```shell make make install ``` 完成上述步骤后,系统应该已经成功安装了GLIBC-2.28版本。尝试重新启动MYSQL服务,应该不再出现"./mysqld: /lib64/libc.so.6: version `GLIBC_2.28' not found"的错误提示了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [libstdc++6_4.7.2-5_amd64.7z](https://download.csdn.net/download/yunlong3727/12547104)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [解决/lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by](https://blog.csdn.net/LJL_1003/article/details/127968993)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [Centos /lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by](https://blog.csdn.net/NinjaKilling/article/details/125979091)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值