GNOME Bugzilla – Bug 394505
Nonstandard use of realpath causes segfault on NetBSD
Last modified: 2007-01-09 22:52:22 UTC
I'm trying to play a DVD with Totem 2.16.4 on NetBSD, but I get a segfault in realpath. As far as I can see, this comes from totem_disc_resolve_link in src/plparse/totem-disc.c. The problem is that realpath is called with the second argument being NULL. This is a glibc extension (for automatic storage allocation), but causes a segfault with the NetBSD libc.
Thanks for the report, I'll look into it.
Created attachment 79843 [details] [review] totem-dont-use-realpath.patch Possible patch
Could you please test the attached patch? It's against SVN trunk, but should apply cleanly to the stable version.
Yes, with this patch I can play the disc. Thanks!
Hopefully worked well enough :) 2007-01-09 Bastien Nocera <hadess@hadess.net> * src/plparse/totem-disc.c: (canonicalize_filename), (totem_resolve_symlink), (cd_cache_get_dev_from_volumes), (cd_cache_get_dev_from_drives), (cd_cache_new): Don't use realpath(), to avoid crashes on NetBSD (Closes: #394505) Fixed in trunk and gnome-2-16