Comment 4 for bug 80828

Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 80828] Re: Crash is called: Bus error (core dumped)

William Grant wrote:
> After using gdb on the core dump, there is code preventing this crash,
> like so:
>
> 1291 if( !X11_ipc ) {
> 1292 fprintf(stderr, "(X11_make_palette) 0 == X11_ipc\n");
> 1293 return -1;
> 1294 }
> 1295
> 1296 fprintf( X11_ipc, "%c %c %c %c %d\n",
>
> The problem here is that X11_ipc is null, so fprintf segfaults...
> However, surely line 1291 should have caught that? Apparently not...

... except that it's SIGBUS, not SIGSEGV. Silly me.