加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 如何找出导致GLib-GObject-CRITICAL的代码在哪里?

发布时间:2020-12-14 01:21:03 所属栏目:Linux 来源:网络整理
导读:当C/C++应用程序因以下重要问题而失败时,您能告诉我如何找出导致错误的代码在哪里? 我试图在调试器中运行它,尝试在程序失败时执行’bt’.但它没有显示导致CRITICAL的代码在哪里: (process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/
当C/C++应用程序因以下重要问题而失败时,您能告诉我如何找出导致错误的代码在哪里?

我试图在调试器中运行它,尝试在程序失败时执行’bt’.但它没有显示导致CRITICAL的代码在哪里:

(process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed,use IA__g_type_init() prior to this function

(process:3155): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed,use IA__g_type_init() prior to this function

(process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed,use IA__g_type_init() prior to this function

(process:3155): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed,use IA__g_type_init() prior to this function

解决方法

你可以打破g_log然后从那里做回溯.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读