primer3-org / primer3

Primer3 is a command line tool to select primers for polymerase chain reaction (PCR).
GNU General Public License v2.0
218 stars 62 forks source link

Signal 11 segmentation fault in thal.c #65

Closed InvisOn closed 2 years ago

InvisOn commented 2 years ago

I'm trying to use primer3 from Julia but I'm getting a segmentation fault whenever I try to call thal() from thal.c

I've made a repo to recreate the issue.

https://github.com/InvisOn/recreate_primer3_segfault

untergasser commented 2 years ago

Hi,

I have no experience with debugging Julia. If you could create input which creates the bug using the binaries from our repo, I could have a look.

Best,

Andreas

InvisOn commented 2 years ago

I managed to fix my issue by writing a helper function to initializes thal() parameters and call thal() with them. (and not derefencing a null pointer) It seems the problem was my lack of C knowledge. Nothing a good ol' rousing round of learning C couldn't fix.