Red Hat Bugzilla – Bug 202482
global variable named 'pipe' messes gstreamer plugin gstgnomevfs
Last modified: 2007-11-30 17:11:40 EST
Description of problem:
When I compile the test program I have attached the program gives me the
following output :
ERROR: Caught a segmentation fault while loading plugin file:
- remove it and restart.
- run with --gst-disable-segtrap and debug.
Version-Release number of selected component (if applicable):
I tryed this with both x86 and x86-64 plataforms with the latest gstreamer
Steps to Reproduce:
1. compile the program
2. run it
segfault in the /usr/lib/gstreamer-0.10/libgstgnomevfs.so plugin
a simple test with the videotestsrc being displayed in a window.
An interesting point is that if I change the name of the pipe variable it works
ok. My guess is that this package is using this name "pipe" so it conflicts with
my variable and this messes everything.
Created attachment 134161 [details]
program that gives me a problem...
Version used :
The pipe(3) function is provided by glibc, not gstreamer.
Obviously you can't name your variables in a way which will preempt standard
library functions that are used by the application, even indirectly.