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

Stack overflow for some binaries #1267

Closed
deetch opened this issue Jan 25, 2021 · 5 comments · Fixed by #1361
Closed

Stack overflow for some binaries #1267

deetch opened this issue Jan 25, 2021 · 5 comments · Fixed by #1361

Comments

@deetch
Copy link

deetch commented Jan 25, 2021

Using bap version 2.3.0-alpha+aacced7 the analysis of some binaries raises a stack overflow. An example of stderr is given here:

Failed to build the project:
(("Stack overflow")
  "Raised by primitive operation at file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 754, characters 26-45\
 \nCalled from file \"src/map.ml\", line 1677, characters 11-85\
 \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 2572, characters 29-274\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 60-63\
 \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
 \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
 \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
 \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
 \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
 \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
 \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
 \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
 \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
[...]

In this case the binary was doxygen.
doxygen.gz

@ivg
Copy link
Member

ivg commented Jan 25, 2021

Can you please also include such information as bap --version?

@ivg
Copy link
Member

ivg commented Jan 25, 2021

While I am waiting for the bactrace to come up on my side, if you have the full trace somewhere nearby, I will really appreciate if you will share it with me.

@deetch
Copy link
Author

deetch commented Jan 25, 2021

doxygen-trace.txt

@ivg ivg added the bug label Jan 26, 2021
@ivg
Copy link
Member

ivg commented Jan 26, 2021

Thanks, we can reproduce the issue and are working, slowly, on the fix.

@ivg
Copy link
Member

ivg commented Nov 11, 2021

closed with #1361

@ivg ivg closed this as completed Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants