Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#228 Segfaults with GCC 4.5 FreeBSD AMD64

closed-fixed
menu-cache (20)
5
2012-11-13
2010-06-08
Anonymous
No

Hi,
`menu-cache-gen -i <somefile>` segfaults consistently here. I'm suspecting that's why lxpanel menu became empty.

Everything installed is the latest upstream stable release and the latest weekly GCC 4.5 snapshot.

stderr shows this:
(menu-cache-gen:6997): GLib-CRITICAL **: g_path_get_dirname: assertion `file_name != NULL' failed

The backtrace tells me that strlen() from libc and the loop in this function is where the segfault occurs:

from menu-cache-gen.c:

static int dirname_index( const char* dir )
{
GSList* l;
int i = 0;
for( l = all_used_dirs; l; l = l->next )
{
if( strcmp(dir, l->data) == 0 )
return i;
++i;
}
return -1;
}

Discussion

    • assigned_to: nobody --> lstranger
    • status: open --> closed-fixed
     
  • I believe it is fixed in current GIT. Feel free to reopen it with additional details if you get into this again.
    Thank you very much.