Skip to content

evil-args hangs in some cases, easily re-producible #10

@hubgitname

Description

@hubgitname

Interesting package so I set out to test it on a c program.
downloaded the cscope codebase https://github.com/portante/cscope
In file main.c we have:

    if (linemode == NO) {
	signal(SIGINT, SIG_IGN);	/* ignore interrupts */

#if defined(KEY_RESIZE) && !defined(__DJGPP__)
	winch_action.sa_sigaction = sigwinch_handler;
	sigemptyset(&winch_action.sa_mask);
	winch_action.sa_flags = SA_SIGINFO;
	sigaction(SIGWINCH,&winch_action,NULL);
#endif

I was on the first argument of sigaction() call like so:
sigaction(SIGWINCH,&winch_a|ction,NULL);
invoked evil-jump-out-args took me to the beg of string sigaction.
another invocation and it hangs. probably continuously searching.
I had to issue C-g to ask it to give up.
Emacs 26.1 with the latest version of evil-args.
Please let me know if you're not able to recreate. I found
several instances where it would hang in that file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions