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

Bug: Illegal instruction (core dumped) #663

Open
marinafloresp opened this issue Oct 7, 2024 · 1 comment
Open

Bug: Illegal instruction (core dumped) #663

marinafloresp opened this issue Oct 7, 2024 · 1 comment
Assignees

Comments

@marinafloresp
Copy link

marinafloresp commented Oct 7, 2024

Describe the bug
I updated to the last version of MACS3 (3.0.2) and now I get this error whenever I run the program: /tmp/slurmd/job1000362/slurm_script: line 105: 138001 Illegal instruction (core dumped) macs3 callpeak -t ${bamFiles[@]} --outdir ${PEAK_DIR}/MACS/BAMPE/group -n ${GROUP} -f BAMPE -g 2.9e9 -q 5e-2 --keep-dup all --nomodel --broad --broad-cutoff 5e-2

To Reproduce
The command line I am using is: macs3 callpeak -t ${bamFiles[@]} --outdir ${PEAK_DIR}/MACS/BAMPE/group -n ${GROUP} -f BAMPE -g 2.9e9 -q 5e-2 --keep-dup all --nomodel --broad --broad-cutoff 5e-2

Expected behavior
This command line was working with MACS3 v3.0.0 until I got the same error as in issue #[637] and I updated to the latest version.

System (please complete the following information):

  • OS: Red Hat Enterprise Linux 9.4 (Plow)
  • Python version 3.9.6
  • MACS Version 3.0.2 and 3.0.1
@taoliu
Copy link
Contributor

taoliu commented Oct 7, 2024

It may happen if MACS3 was compiled and installed on the node of a certain type of CPU but executed on the node of a different kind of CPU. I would suggest you double-check if this is the case since you are using SLURM. Perhaps specifically ask for certain nodes with the same CPU architecture as the one when MACS3 was installed.

Another suggestion is that you can try to disable all optimization of MACS3 codes in setup.py and reinstall it again. To do so, please download the source code then in the setup.py script in L57:

MACS/setup.py

Lines 56 to 58 in db961ca

# CFLAG
extra_c_args = ["-w","-O3", "-g0"]

Then change this line to extra_c_args = [""], and follow this instruction to install through pip install ..

@taoliu taoliu self-assigned this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants