libstdc++在ubuntu 64位中崩溃
libstdc++ crashing in ubuntu 64 bit
我有一些从RHEL6.2系统64位机器编译的GUI库。我的任务是在Ubuntu 64位机器上运行它。。所以我试了一下Ubuntu 12.04.1&Ubuntu 11.04在这两方面我都面临着类似的问题。。
分段故障(堆芯倾倒(*分割故障
回溯:/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSsC1ERKSs+0xb([0x7f14e2728f2b]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5070f2b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (gdb) bt
#0 0x00007ffff5070f2b in std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::basic_string(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
我无法将它编译到我的电脑上,因为我无法获得源代码。只有他们给我的图书馆。。谁能帮我解决这个问题吗。。
G++版本g++(Ubuntu/Linaro 4.6.3-1ubuntu5(4.6.3
请帮帮我。。提前感谢//
谢谢你的回复。。
是的,我交叉检查了两个gcc版本
这是我的主机,我可以在这里运行我的应用程序
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ls -ld /usr/lib/x86_64-linux-gnu/libstdc++.so.6
lrwxrwxrwx 1 root root 19 Apr 16 2012 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.16
我试图运行但不工作的电脑是
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ls -ld /usr/lib/x86_64-linux-gnu/libstdc++.so.6
lrwxrwxrwx 1 root root 19 Apr 16 2012 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.16
两者都是精确的Ubuntu 12.04
我无法确定我的错在哪里。
请帮忙。。
Ubuntu 12.04和11.04都使用比RHEL6.2更新得多的库。检查stdlib的版本。我打赌他们是不同的。
一般来说,你不能只拿起一个二进制文件(一个程序或一个库(,然后在另一个程序上运行。如果你有一个.rpm或.deb包,你会发现应该有版本依赖性。
通过使用ldd,您还可以查看您的库所依赖的其他库。
相关文章:
- 将应用程序从32位移植到64位时出现问题
- 64位机器上的C++内存对齐
- qmake:检测目标位宽(32 位或 64 位)
- NDK 问题:在 32 位上崩溃,在 64 位上不一致
- 带有ATL子类的Windows 10 64位上的随机崩溃
- 调用64位C/C++DLL的C#应用程序崩溃,但运行32位版本
- 向iOS应用程序添加64位切片会导致崩溃
- 简单的 C++ .Net 控制台应用程序在 64 位 Win7 中崩溃
- WaitForMultipleObjects 在 64 位窗口上崩溃
- 在Windows7 64位上使用MinGW的Eclipse CDT-调试配置崩溃[可能已经解决,但仍然很奇怪]
- 64位exe在visual studio外崩溃,但在visual studio内工作
- c++ Mex文件在64位linux上崩溃matlab,但不是32位windows,但程序在matlab外运行良好
- 64位系统中的程序崩溃
- g++ 4.6.3在64位服务器上构建代码时会崩溃
- 我的c++和c#互操作在64位崩溃了,为什么?指针的大小
- 从32位迁移到64位后,DoModal静默崩溃
- libstdc++在ubuntu 64位中崩溃
- 在Win7 64位上因未处理的首次机会异常而崩溃(在XP 32位、Linux 64位上没有问题)
- MinGW编译的程序在64位Windows上崩溃
- c++应用程序在64位windows上崩溃,但在32位windows上运行良好