【问题标题】:Segmentation fault with g_object_set / strchrg_object_set / strchr 的分段错误
【发布时间】:2017-01-12 13:08:27
【问题描述】:

这条线给我一个分段错误

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

在哪里

  • data.udpsrc = gst_element_factory_make("udpsrc", "source");
  • caps = gst_caps_new_empty_simple("application/x-rtp");

这是 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 ()

【问题讨论】:

标签: c gstreamer raspbian strchr


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2014-04-24
    • 2011-11-01
    • 2017-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-18
    • 1970-01-01
    相关资源
    最近更新 更多