Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hubgitname opened this issue Apr 10, 2019 · 0 comments
Open

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

hubgitname opened this issue Apr 10, 2019 · 0 comments

Comments

@hubgitname
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant