60675

Segmentation fault with g_object_set / strchr

Question:

This line get me a <strong>segmentation fault</strong> :

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

where

<ul><li>data.udpsrc = gst_element_factory_make("udpsrc", "source");</li> <li>caps = gst_caps_new_empty_simple("application/x-rtp");</li> </ul>

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 #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 ()

Answer1:

This is <a href="https://bugzilla.gnome.org/show_bug.cgi?id=740191" rel="nofollow">Bug 740191</a>. You need to update Gstreamer to 1.4.5 version at least.

Recommend

  • How to get Integer and float input without `scanf()` in c?
  • Hexadecimal find and replace
  • capture stream from raspberrry pi using gstreamer in opencv
  • Splitting a string at a delimiter and storing substrings in char **array in C
  • Direct Media and Direct RTP Setup in Asteisk
  • Output conflicts between C & C++
  • FFmpeg NaCl module avformat_open_input (on rtsp stream) returns -5: I/O error
  • Segmentation fault when using strcpy?
  • Error Raised When Attempting to Assign Value At Index of Array With x86 Assembly GNU GAS
  • haskell negative decimal numbers [duplicate]
  • Boost Fusion container of shared pointers (shared_ptr) causing Segmentation Fault (sigsegv) or garba
  • How to encode h.264 live stream to RTP packet with Java
  • RTCP receiver report sending interval
  • System.Data.SqlClient Namespace for MySQL?
  • Is there a way to let the gdb repeat the same instrcutions on every start again?
  • Doubt regarding a tail optimized code under 'gdb'
  • SSB dbgen Linux - Segmentation Fault
  • Is a NULL pointer's dereference also equals NULL?
  • adMob | Extend Banner size?
  • Segmentation Fault 11 on upgrading to Swift 2.0
  • gdb call function - how to use std::cout as parameter?
  • GDB skips over my code!
  • WebSphere MQ 6 message segmentation option ignored in put()?
  • Upgrade to g++ 4.7 (with c++11 support): any ABI incompatibility?
  • Multiple flexboxes with margin-right, except the last one in the row? Without JS?
  • how do i write assembly code from c#?
  • Memory error in python- how to use more memory
  • Differences in dis-assembled C code of GCC and Borland?
  • Algorithm for a smudge tool?
  • Spring Data JPA custom method causing PropertyReferenceException
  • C# - Serializing and deserializing static member
  • Modifying destination and filename of gulp-svg-sprite
  • Sending data from AppleScript to FileMaker records
  • Deserializing XML into class C#
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • How to include full .NET prerequisite for Wix Burn installer
  • python draw pie shapes with colour filled
  • Is it possible to post an object from jquery to bottle.py?
  • Checking variable from a different class in C#
  • How to Embed XSL into XML