-
Notifications
You must be signed in to change notification settings - Fork 99
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
Segfault while using ColPack coloring method #59
Comments
Sorry for the slow response. I must have missed the e-mail informing me of this issue. I have tried to reproduce this error (on a Fedora 33 system) and cannot. I think it may be an issue of the version of ColPack that is linked to CppAD in the Debian release. Here is what works for me and should work for you on your system:
All the tests passed (for me). I then edited the file
I then re-ran the following command (n the
This time I got 1000 lines with
And got the following message at the end:
|
I've followed the exact same steps as you, and I still have some segfaults when I change the code to launch the test 10000 times.
(there was no segfaults when running with Valgrind, I got OK for all the tests) Anyway, I was using ColPack because my benchmarks had shown better performances by using it, but it was probably just because of a different compilation flag between ColPack and CppAD. So now I'm using the default coloring method of CppAD, and everything works perfectly. |
@Saelyos Do you get the error if you use the master branch ? |
Yes, I've followed the same steps with master, and I still get the error. |
I changed my loop to execute 10,000 times:
Then in the build/example/sparse directory I executed the command:
Perhaps you could figure out how to change the file |
@Saelyos |
I haven't solved this problem and I haven't had the time to investigate on why it fails when I use ColPack with CppAD or Adol-C. |
thank you so much |
Hello,
I'm experiencing random segfaults when using the ColPack coloring method to compute a sparse jacobian. I can reproduce them with
sparse_exemple
. To make them occur more frequently I've changed the line ofsparse.cpp
:with
This problem might be related to this issue: coin-or/Adol-C/19, and in that case the problem could come from
ColPack
. I'm not completely convinced it's the same issue, because the bug inAdol-C
only appears with column coloring and not with row coloring, andCppAD
uses row coloring.Additional information
OS: Debian 10
CppAD version: 20200000.2
The text was updated successfully, but these errors were encountered: