免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2664 | 回复: 1
打印 上一主题 下一主题

[FreeBSD] 程序执行Spinlock called when not threaded类错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-16 21:21 |只看该作者 |倒序浏览
一个小程序,g++编译通过,可在执行的时候出现如下错误:

Fatal error 'Spinlock called when not threaded.' at line 87 in file /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
Abort trap (core dumped)

恳请高手指出错误原因,谢谢!

论坛徽章:
0
2 [报告]
发表于 2006-10-17 08:08 |只看该作者
按照惯例,应当贴出源代码(或者稍事修改隐藏之后的源代码),

我对这块不熟悉,不过google一下,有很多类似的问题和解决办法,你可以尝试一下,如果能够解决, 再行分析其中机制不迟。下面即是其一:
February 17, 2004
spin lock called when not threaded
After cvsup about 4 days ago, gnome would not longer start.
The message was "spin lock called when not threaded"

After poking around found out there was some sort of library change for libc_r.so

The fix was to map libc_r.so to libpthread.so
That is done with --> /etc/libmap.conf
----8<--- snip 8<------

libc_r.so.5 libpthread.so.1
libc_r.so libpthread.so

----8<--- snip 8<------

After that fix Gnome is functioning again.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP