GDB执行时,Apache IGNITE C 客户端应用程序具有许多细分故障
Apache Ignite C++ Client Application has many Segmentation Fault when It executed by GDB
我正在使用IGNITE C 客户端(Apache-ignite-2.8.0.0.20190213)。
在编译IGNITE C 应用程序时,它没有问题。但是,如果它是由GDB开始的,则会发生分割故障。
我在没有GDB的情况下执行了我的应用程序,这也没有问题。
我以前看到过这样的问题。
如何编译CMAKE上的IGNITE应用?
它是否需要其他一些JVM选项或环境值?
ignite::IgniteConfiguration cfg;
cfg.jvmOpts.push_back("-Djava.net.preferIPv4Stack=true");
cfg.springCfgPath = "/myapp/config/ignite.xml";
cfg.jvmLibPath = "//usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so";
cfg.igniteHome = "/root/ignite";
cfg.jvmClassPath = "/usr/lib/jvm/java-8-openjdk-amd64/lib";
// Start a node.
auto ignite = ignite::Ignition::Start(cfg);
错误:
Signal: SIGSEGV (Segmentation fault)
Feb 19, 2019 3:15:55 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/myapp/config/ignite.xml]
Feb 19, 2019 3:15:55 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.GenericApplicationContext@5b1d2887: startup date [Tue Feb 19 15:15:55 UTC 2019]; root of context hierarchy
[15:15:55] __________ ________________
[15:15:55] / _/ ___/ |/ / _/_ __/ __/
[15:15:55] _/ // (7 7 // / / / / _/
[15:15:55] /___/___/_/|_/___/ /_/ /___/
[15:15:55]
[15:15:55] ver. 2.8.0.20190216#20190219-sha1:DEV
[15:15:55] 2019 Copyright(C) Apache Software Foundation
[15:15:55]
[15:15:55] Ignite documentation: http://ignite.apache.org
[15:15:55]
[15:15:55] Quiet mode.
[15:15:55] ^-- Logging to file '/root/ignite/work/log/ignite-2f8a0281.0.log'
[15:15:55] ^-- Logging by 'JavaLogger [quiet=true, config=null]'
[15:15:55] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:15:55]
[15:15:55] OS: Linux 4.15.0-20-generic amd64
[15:15:55] VM information: OpenJDK Runtime Environment 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12 Oracle Corporation OpenJDK 64-Bit Server VM 25.191-b12
Signal: SIGSEGV (Segmentation fault)
[15:16:06] Configured plugins:
[15:16:06] ^-- None
[15:16:06]
[15:16:06] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler [tryStop=false, timeout=0, super=AbstractFailureHandler [ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, SYSTEM_CRITICAL_OPERATION_TIMEOUT]]]]
[15:16:06] Message queue limit is set to 0 which may lead to potential OOMEs when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and receiver sides.
[15:16:06] Security status [authentication=off, tls/ssl=off]
Signal: SIGSEGV (Segmentation fault)
Signal: SIGSEGV (Segmentation fault)
很难说,我的建议是将-Xint
添加到JVM选项中以避免JIT。辩论者可能会因JIT而感到困惑。
相关文章:
- 试图在visual studio上用C++创建一个桌面应用程序
- FFmpeg:制作一个应用程序比直接使用ffmepg更好吗
- 在C应用程序中运行C++(带有STL)函数
- 使用VerQueryValue检索应用程序的文件描述
- Qt C++静态thread_local QNetworkAccessManager是线程应用程序的好选择吗
- 使用调试/崩溃报告将应用程序部署到客户端
- C++控制台应用程序阻止退出
- 码头化的C++应用程序是否向后兼容早期的内核版本
- 将应用程序从32位移植到64位时出现问题
- 如何改变c++应用程序的视觉效果
- WM_CTLCOLORSTATIC从未在WIN32应用程序中触发
- PC中的程序和PHONE中的本机描述应用程序之间的数据连接
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- 示例外壳应用程序显示的 V8 "segmentation fault (core dumped)"错误
- phytec phyBOARD iMX-6在从闪存而不是SD卡运行qt5 opengles应用程序时表现不佳(FPS减半
- 为什么导入Mixed native/CLR lib.dll的本机C++应用程序没有在Mixed lib.dll中的外部变
- 如何从Windows应用程序输出到标准?
- C++应用程序 MySQL odbc 数据库连接错误:在引发"otl_tmpl_exception<>"实例后终止调用
- GDB执行时,Apache IGNITE C 客户端应用程序具有许多细分故障
- 为跨平台应用程序创建许多本机 GUI 前端