{"action":"created","issue":{"url":"https://api.github.com/repos/uwhpsc-2016/homework2/issues/47","repository_url":"https://api.github.com/repos/uwhpsc-2016/homework2","labels_url":"https://api.github.com/repos/uwhpsc-2016/homework2/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/uwhpsc-2016/homework2/issues/47/comments","events_url":"https://api.github.com/repos/uwhpsc-2016/homework2/issues/47/events","html_url":"https://github.com/uwhpsc-2016/homework2/issues/47","id":153420352,"number":47,"title":"Segmentation fault (core dumped) in make test","user":{"login":"jdjshx","id":18150389,"avatar_url":"https://avatars.githubusercontent.com/u/18150389?v=3","gravatar_id":"","url":"https://api.github.com/users/jdjshx","html_url":"https://github.com/jdjshx","followers_url":"https://api.github.com/users/jdjshx/followers","following_url":"https://api.github.com/users/jdjshx/following{/other_user}","gists_url":"https://api.github.com/users/jdjshx/gists{/gist_id}","starred_url":"https://api.github.com/users/jdjshx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdjshx/subscriptions","organizations_url":"https://api.github.com/users/jdjshx/orgs","repos_url":"https://api.github.com/users/jdjshx/repos","events_url":"https://api.github.com/users/jdjshx/events{/privacy}","received_events_url":"https://api.github.com/users/jdjshx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-06T10:07:57Z","updated_at":"2016-05-06T18:06:43Z","closed_at":null,"body":"I test my jacobi method in C file and I can get the correct answer. But when I make test in python, there is a segmentation fault (core dumped). I am confused here since if there is something wrong with my memory allocation, then I can not get the correct answer by directly calling jacobi method in C file 's main(). Could u look at my code, give me some hints about what's wrong with my code."},"comment":{"url":"https://api.github.com/repos/uwhpsc-2016/homework2/issues/comments/217516978","html_url":"https://github.com/uwhpsc-2016/homework2/issues/47#issuecomment-217516978","issue_url":"https://api.github.com/repos/uwhpsc-2016/homework2/issues/47","id":217516978,"user":{"login":"mvelegar","id":6796223,"avatar_url":"https://avatars.githubusercontent.com/u/6796223?v=3","gravatar_id":"","url":"https://api.github.com/users/mvelegar","html_url":"https://github.com/mvelegar","followers_url":"https://api.github.com/users/mvelegar/followers","following_url":"https://api.github.com/users/mvelegar/following{/other_user}","gists_url":"https://api.github.com/users/mvelegar/gists{/gist_id}","starred_url":"https://api.github.com/users/mvelegar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvelegar/subscriptions","organizations_url":"https://api.github.com/users/mvelegar/orgs","repos_url":"https://api.github.com/users/mvelegar/repos","events_url":"https://api.github.com/users/mvelegar/events{/privacy}","received_events_url":"https://api.github.com/users/mvelegar/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T18:06:43Z","updated_at":"2016-05-06T18:06:43Z","body":"@jdjshx I changed the test_jacobi script to use the same A,b you had in your testing C file. I do not get a seg fault, instead I get NaN error:\r\n\r\nFAIL: test_solve_jacobi (__main__.TestSolver)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"test_homework2.py\", line 279, in test_solve_jacobi\r\n    self.assertAlmostEqual(error,0)\r\nAssertionError: nan != 0 within 7 places\r\n \r\n\r\nMake sure you are initializing all the arrays you are using to 0.0 before using them, and work out your jacobi loop by hand. Do you see any places where you are using garbage values? "}}