GNOME Bugzilla – Bug 579118
Segmentation fault when adding file to project
Last modified: 2009-04-19 21:28:28 UTC
Steps to reproduce: 1. Create new project form existing sources 2. Right click on file in sidebar 3. Add to Project 4. Pick target from imported Makefile 5. Click add 6. Segmentation fault. Stack trace:
+ Trace 214495
Other information: Also posted on Launchpad: https://bugs.launchpad.net/ubuntu/+source/anjuta/+bug/361524
Created attachment 132740 [details] [review] Fix to segfault Adds detection in function impl_add_source (gbf-mkfile-project.c) on path to check if its relative or absolute before passing it to uri_normalize.
The problem is that if uri_normalize is passed a NULL value for the first argument, it results in a segfault, and g_path_skip_root will return NULL if the pathname given isn't absolute. From gbf-mkfile-project.c (line 3241 on latest svn): group_uri = uri_normalize (g_path_skip_root (GBF_MKFILE_NODE (g_node->parent)->id), project->project_root_uri);
Thanks a lot for the patch! This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.