Title: Crash when using AB09ND with bfsqrt, issue is incorrect dimension for iwork · Issue #245 · python-control/Slycot · GitHub
Open Graph Title: Crash when using AB09ND with bfsqrt, issue is incorrect dimension for iwork · Issue #245 · python-control/Slycot
X Title: Crash when using AB09ND with bfsqrt, issue is incorrect dimension for iwork · Issue #245 · python-control/Slycot
Description: I've had consistent crashing when trying to use the bfsqrt method with AB09ND. I switched on debug mode, -fcheck=all and such. I was able to track it down after also poking around using valgrind. For future reference, it is nice to run t...
Open Graph Description: I've had consistent crashing when trying to use the bfsqrt method with AB09ND. I switched on debug mode, -fcheck=all and such. I was able to track it down after also poking around using valgrind. F...
X Description: I've had consistent crashing when trying to use the bfsqrt method with AB09ND. I switched on debug mode, -fcheck=all and such. I was able to track it down after also poking around using valgrin...
Opengraph URL: https://github.com/python-control/Slycot/issues/245
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash when using AB09ND with bfsqrt, issue is incorrect dimension for iwork","articleBody":"I've had consistent crashing when trying to use the bfsqrt method with AB09ND. I switched on debug mode, -fcheck=all and such. I was able to track it down after also poking around using valgrind. For future reference, it is nice to run test suites that fail with memory checking and gdb to poke around inside the stack traces. This is much better than just what -fcheck=all does.\r\n\r\n```\r\nPYTHONMALLOC=malloc valgrind --vgdb-error=1 python3 -m pytest \u003cargs\u003e\r\n```\r\nsee https://developers.redhat.com/articles/2021/11/01/debug-memory-errors-valgrind-and-gdb#discover_uninitialized_values for more details.\r\n\r\nAnyway, for the bug fix. In the wrapper for AB09ND,\r\n```fortran\r\n integer intent(hide,cache),dimension(MAX(m,p)) :: iwork\r\n```\r\nshould become\r\n```fortran\r\n integer intent(hide,cache),dimension(MAX(1,2*n)),depend(n) :: iwork\r\n```\r\nwhich makes it consistent with the requirements in the slicot source file, and also appears to fix the issue.\r\n","author":{"url":"https://github.com/mccullerlp","@type":"Person","name":"mccullerlp"},"datePublished":"2024-12-29T23:51:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/245/Slycot/issues/245"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9d911056-b0c9-87ad-a7b2-7c80299f2fc8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A3C:270F03:10543C3:171CD75:697A0784 |
| html-safe-nonce | 43a85cff7c05b5faa7cd2b0fe864eac9152776c4681876e690866afeaf08c9c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTNDOjI3MEYwMzoxMDU0M0MzOjE3MUNENzU6Njk3QTA3ODQiLCJ2aXNpdG9yX2lkIjoiMzMyMjk3MTQ0NTEyNTU4MDY3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | de34f46faf3d4cf7db723fc3e3cac70705cf2b425eb410a6ab13f4fb8b745922 |
| hovercard-subject-tag | issue:2762493150 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-control/Slycot/245/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2163cccfd364355149acce8227a1eeb77cc722f57e6a5a04410059c677e6a5b7/python-control/Slycot/issues/245 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2163cccfd364355149acce8227a1eeb77cc722f57e6a5a04410059c677e6a5b7/python-control/Slycot/issues/245 |
| og:image:alt | I've had consistent crashing when trying to use the bfsqrt method with AB09ND. I switched on debug mode, -fcheck=all and such. I was able to track it down after also poking around using valgrind. F... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mccullerlp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24021c77440f544078f9cbe80d78a2fb16ccff65fca92deda9da3c51d1cdc5fc |
| turbo-cache-control | no-preview |
| go-import | github.com/python-control/Slycot git https://github.com/python-control/Slycot.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 66001480 |
| octolytics-dimension-repository_nwo | python-control/Slycot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 66001480 |
| octolytics-dimension-repository_network_root_nwo | python-control/Slycot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bd34d6cb576e14ec8da51f144ef82b621f68256d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width