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

pass_clang_binsrch.pm fails with Use of uninitialized value $line #267

Open
jketema opened this issue Nov 7, 2023 · 3 comments
Open

pass_clang_binsrch.pm fails with Use of uninitialized value $line #267

jketema opened this issue Nov 7, 2023 · 3 comments
Labels

Comments

@jketema
Copy link

jketema commented Nov 7, 2023

When running creduce on some particular large C++ file. I see the following errors:

===< pass_clang_binsrch :: replace-function-def-with-decl >===
Use of uninitialized value $line in pattern match (m//) at c:/.../pass_clang_binsrch.pm line 36.
===< pass_clang_binsrch :: remove-unused-function >===
Use of uninitialized value $line in pattern match (m//) at c:/.../pass_clang_binsrch.pm line 36.

Is there some way for me to diagnose why this is happening?

@jketema jketema changed the title pass_clang_binsrch.pm fails with Use of uninitialized value $line in pattern match (m//) at pass_clang_binsrch.pm fails with Use of uninitialized value $line Nov 7, 2023
@eeide
Copy link
Member

eeide commented Nov 8, 2023

Hmm. How large is the input file?

My uninformed guess is that something is running out of memory—how else would $line be uninit'ed at that point?

@eeide eeide added the bug label Nov 8, 2023
@jketema
Copy link
Author

jketema commented Nov 8, 2023

Hmm. How large is the input file?

About 25MB.

@jketema
Copy link
Author

jketema commented Nov 9, 2023

It might indeed be a size problem, once pass_lines :: 0 had reduced the file to about 15MB and I restarted creduce, I no longer got the error.

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

No branches or pull requests

2 participants