jdwije / qemacs

A fast and lightweight emacs.
GNU Lesser General Public License v2.1
15 stars 2 forks source link

SegFault on dired.c do_dired #2

Open jdwije opened 9 years ago

jdwije commented 9 years ago

This is the offending code:

    /* if active file is found, go directly on it */
    for(i=0;i<hs->items.nb_items;i++) {
        get_dired_filename(e, filename, sizeof(filename), i);
        if (!strcmp(filename, 
                    s->b->filename)) { // this LOC causes a segfault on osx disable whilst fixing
            e->offset = eb_goto_pos(e->b, i, 0);
            break;
        }
    }
jdwije commented 9 years ago

seems to happen when dired on a directory in the dired buffer!

ie: bug does not trigger when selected on

but does trigger when selected on

and then invoking the fired command (ctrl + x ctrl + d)

jdwije commented 9 years ago

This seems to be occurring whenever EditState *s is a null pointer!

jdwije commented 9 years ago

Could be happening when exec_command is invoked in qe.c on line 3067