GNOME Bugzilla – Bug 158681
Cannot find registry.xml.tmp
Last modified: 2005-10-03 11:31:22 UTC
While trying to compile the helloworld example I got a segfault. I ran strace and found this error: 'access("/home/blake/.gstreamer-0.8/registry.xml.tmp", F_OK) = -1 ENOENT (No such file or directory)'. I tried copying registry.xml to registry.xml.tmp but still got a segfault (access("/home/blake/.gstreamer-0.8/registry.xml.tmp", F_OK) = 0 rename("/home/blake/.gstreamer-0.8/registry.xml.tmp", "/home/blake/.gstreamer-0.8/registry.xml") = 0 gettimeofday({1100848354, 959346}, NULL) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++) After running the program, registry.xml.tmp is deleted. Also, running in gdb, it segfaulted and gdb pointed me to popt.c line 943: 'Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1078571680 (LWP 14602)] 0x40498157 in poptStrippedArgv (con=0x804a0d0, argc=2, argv=0xbffff7f4) at popt.c:943 943 popt.c: No such file or directory. in popt.c' I know that the error is caused by gst_init, and passing NULL pointers to gst_init makes an assertion fail (GStreamer-ERROR **: No default scheduler name - do you have a registry ?). Thanks! Blake blakebrogdon@gmail.com
Ok, I ran gst-register per the instructions at http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/chapter-troubleshooting.html but I still get a segfault. Heres the new error msg: access("/usr/local/var/cache/gstreamer-0.8/registry.xml.tmp", F_OK) = -1 ENOENT (No such file or directory) --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Blake blakebrogdon@gmail.com
Created attachment 34012 [details] Backtrace of gst-launch-0.8 run in gdb I can't even run gst-launch-0.8 w/o a segfault.
Created attachment 34013 [details] Strace gst-launch-0.8 strace gst-launch-0.8 fakesrc ! fakesink
I just noticed this: I have had two versions of gst installed. One I made myself and one that is an archlinux package. The homemade one installs to /usr/local and the arch one installs to /opt, so do not worry that the directories are different. thanks.
Created attachment 34015 [details] Backtrace of gst-launch-0.8 run in gdb
installing the same major version of a package (even in 2 different prefixes) is looking for trouble why doing that in the first place ? disclamer : i don't know how archlinux manage its packages at all (only src based distro i used where LFS then gentoo) in a standard install, it should look for registry files there : /var/lib/cache/gstreamer-0.8/registry.xml ~/.gstreamer-0.8/registry.xml if you ran gst-register both as root and as user
They were never installed at the same time.
could you please a) clean up ALL gstreamer from your system. You are running into weird bugs that do not make sense and we need to start from a common ground. This includes source installs, packages, .gstreamer directories, cache files, anything, for all users. b) install 1 and only 1 version of GStreamer, preferably one from a package from your distro c) if your distro does not do this by itself (which it should) when installing the package, run "gst-register" as root d) run "gst-launch -v fakesrc ! fakesink" and tell us if that works.
No reply, closing. Please reopen the bug if you can still replicate it! thanks