Segmentation fault with g_object_set / strchr
问题 This line get me a segmentation fault : g_object_set(G_OBJECT(data.udpsrc), "port", 5000, "caps", caps, NULL); where data.udpsrc = gst_element_factory_make("udpsrc", "source"); caps = gst_caps_new_empty_simple("application/x-rtp"); Here's the output with 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