Closed asesidaa closed 1 year ago
Hi @asesidaa ,
I am pretty sure that you did not increase the stack size. For larger programs you need to increase the maximum stack size using the ulimit command line tool prior to running phasar-cli.
Cheers Martin
Hi @asesidaa,
did my reply help? If there are no updates within 24 hours I will consider this issue as resolved and close it.
Cheers Martin
Bug description
When analyzing mpi libraries, stackoverflow will happen (resulting in segmentation fault)
Steps to reproduce
--disable-mpi-fortran --disable-dlopen
, extract bitcode.phasar-cli --data-flow-analysis=ide-solvertest --module=./libmpi.so.40.10.4.bc --entry-points=__ALL__
Actual result: Get segmentation fault (when using ASAN, it shows stackoverflow) Expected result: Analysis finishes normally
Context (Environment)
Operating System:
Build Type:
bootstarp.sh
)Possible solution
Currently, for OpenMPI, I have identified that the following functions will crash Phasar:
mca_coll_base_comm_unselect
ompi_datatype_init
mca_coll_base_comm_select
The crash happens when processing normal edge functions. However, if I usellvm-extract
to extract these functions and analyze separately, no crash happens. Currently as a workaround I just skip these functions and the analysis can proceed normally.