c/c++语言开发共享使用g_object_set / strchr进行分段错误

这行给我一个分段错误

g_object_set(G_OBJECT(data.udpsrc), "port", 5000, "caps", caps, NULL); 

哪里

这是gdb的输出:

 Program received signal SIGSEGV, Segmentation fault. strchr () at ../ports/sysdeps/arm/armv6/strchr.S:28 28 ../ports/sysdeps/arm/armv6/strchr.S: No such file or directory. (gdb) bt #0 strchr () at ../ports/sysdeps/arm/armv6/strchr.S:28 #1 0x76e618d8 in g_param_spec_pool_lookup () from /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 #2 0x76e5c6a4 in g_object_set_valist () from /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 #3 0x76e5d00c in g_object_set () from /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 #4 0x00010dc4 in main () 

    这是Bug 740191 。 您至少需要将Gstreamer更新为1.4.5版本。

      以上就是c/c++开发分享使用g_object_set / strchr进行分段错误相关内容,想了解更多C/C++开发(异常处理)及C/C++游戏开发关注计算机技术网(www.ctvol.com)!)。

      本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

      ctvol管理联系方式QQ:251552304

      本文章地址:https://www.ctvol.com/c-cdevelopment/519613.html

      (0)
      上一篇 2020年12月5日
      下一篇 2020年12月5日

      精彩推荐