-
Notifications
You must be signed in to change notification settings - Fork 215
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
qucsator crashes when noise analysis is enabled in S-parameters simulation #133
Comments
I am getting this backtrace from the debugger:
|
This is the offending commit: 379559d, see this line change. By comparison other getters are also broken. |
Fix issue Qucs#133 The C memcpy was replaced by loops, but it causes the kernel to segfault during SP analysis with Noise. For memcpy is good with POD and tends to be inlined [1]. Replacement candidate is std:copy. Please provide testcase and testbench. [1] http://nadeausoftware.com/articles/2012/05/c_c_tip_how_copy_memory_quickly
Fix issue Qucs#133 The C memcpy was replaced by loops, but it causes the kernel to segfault during SP analysis with Noise. memcpy is good with POD and tends to be inlined [1]. Replacement candidate is std:copy. Please provide testcase and testbench. [1] http://nadeausoftware.com/articles/2012/05/c_c_tip_how_copy_memory_quickly
Funny, I totally missed that the inner loop condition is wrong... [1] http://nadeausoftware.com/articles/2012/05/c_c_tip_how_copy_memory_quickly |
Inner loop condition was using the outer loop index.
Fix merged. |
With this simple circuit
qucsator
segfaults (andqucs
does not even realize that, see #132 ); when the noise analysis is disabled simulation works fine.Schematic file is available at https://gist.github.com/in3otd/b90e9f9b658d4e1db290/download
Edit: works in 0.0.17 but not in 0.0.18 or later
The text was updated successfully, but these errors were encountered: