-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
Error in context
command: max() arg is an empty sequence
#753
Comments
@zhouguoqionghai Could you explain further what steps you're taking prior to the error? What GDB/GEF commands are you running? Also let us know what architecture you're using? Also please fix the compilation instructions ( |
I am just a newbie to gef. Thanks for your talented work. It's easy to reproduce on my X64 computer,through some experiments, I found each time when I use si command, In this scenario, when it reach
My architecture is:
|
I haven't read the gef code now. At the moment, I change line 8048 from |
Thanks for your input. |
I also tried to reproduce but couldn't, although your error message makes sense (from https:/hugsy/gef/blob/dev/gef.py#L8697). if not nb_argument:
if is_x86_32():
nb_argument = len(parameter_set)
else:
nb_argument = max([function_parameters.index(p)+1 for p in parameter_set], default=0) @zhouguoqionghai It would be appreciated if you could us the complete reproduction steps, along with the output from GEF in debug mode. Thanks |
Just an easy helloworld code. #include <stdio.h>
int main(int argc, char* argv[])
{
printf("hello world\n");
return 0;
} This is my steps
|
Well, I find this check line is not in my installed gef. I just use |
Before reporting bugs we ask to try with gef from the
You can start by re-trying with it. |
context
command: max() arg is an empty sequence
@zhouguoqionghai in case you don't know how to install GEF from the latest
|
dev
branch?gdb -nx
the closed ones) - and the PR?
Step 1: Describe your environment
version
in GEF.Step 2: Describe your problem
Steps to reproduce
Minimalist test case
In function print_guessed_arguments,
nb_argument = max(function_parameters.index(p)+1 for p in parameter_set)
happened to be the problem.Observed Results
Expected results
Traces
The text was updated successfully, but these errors were encountered: