2010/1/22 Nick Treleaven <nick.treleaven@btinternet.com>
On Fri, 22 Jan 2010 15:26:17 +0000
Ronan Chilvers <ronan@d3r.com> wrote:

> Program received signal SIGSEGV, Segmentation fault.
> get_build_group (src=GEANY_BCS_PROJ, grp=<value optimised out>) at
> build.c:431
> 431 ft = doc->file_type;
> (gdb) bt
> #0  get_build_group (src=GEANY_BCS_PROJ, grp=<value optimised out>) at
> build.c:431
> #1  0x000000000041e1ff in build_remove_menu_item (src=8929568,
> grp=GEANY_GBG_FT, cmd=0) at build.c:470
> #2  0x000000000047b565 in project_close (open_default=1) at project.c:357

Thanks for the backtraces.

Seems to be this code at build.c:431:

               case GEANY_GBG_EXEC:
                       if ((doc = document_get_current()) == NULL)
                               ft = doc->file_type;

Should be doc... != NULL. I just committed this fix.

Please svn up and check if this fixes it.

Thanks Nick. I've recompiled so we'll see what happens.

Cheers
--
Ronan
D3R Ltd
t 0333 800 2288
f 0333 800 2289
e ronan@d3r.com
w http://d3r.com