{"action":"created","issue":{"url":"https://api.github.com/repos/SiLab-Bonn/pyBAR/issues/11","labels_url":"https://api.github.com/repos/SiLab-Bonn/pyBAR/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/SiLab-Bonn/pyBAR/issues/11/comments","events_url":"https://api.github.com/repos/SiLab-Bonn/pyBAR/issues/11/events","html_url":"https://github.com/SiLab-Bonn/pyBAR/issues/11","id":71049000,"number":11,"title":"Malloc error using analysis extension with 32-bit Ubuntu","user":{"login":"DavidLP","id":6951141,"avatar_url":"https://avatars.githubusercontent.com/u/6951141?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidLP","html_url":"https://github.com/DavidLP","followers_url":"https://api.github.com/users/DavidLP/followers","following_url":"https://api.github.com/users/DavidLP/following{/other_user}","gists_url":"https://api.github.com/users/DavidLP/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidLP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidLP/subscriptions","organizations_url":"https://api.github.com/users/DavidLP/orgs","repos_url":"https://api.github.com/users/DavidLP/repos","events_url":"https://api.github.com/users/DavidLP/events{/privacy}","received_events_url":"https://api.github.com/users/DavidLP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"DavidLP","id":6951141,"avatar_url":"https://avatars.githubusercontent.com/u/6951141?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidLP","html_url":"https://github.com/DavidLP","followers_url":"https://api.github.com/users/DavidLP/followers","following_url":"https://api.github.com/users/DavidLP/following{/other_user}","gists_url":"https://api.github.com/users/DavidLP/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidLP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidLP/subscriptions","organizations_url":"https://api.github.com/users/DavidLP/orgs","repos_url":"https://api.github.com/users/DavidLP/repos","events_url":"https://api.github.com/users/DavidLP/events{/privacy}","received_events_url":"https://api.github.com/users/DavidLP/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-04-26T10:39:47Z","updated_at":"2015-04-27T19:11:42Z","closed_at":null,"body":"A potential runtime bug was reported on the Mailing list. The usage of the analysis library causes a malloc error on:\r\n\r\nUbuntu 14.04 32-bit\r\nPython 2.7.9 |Continuum Analytics, Inc.| (default, Mar  9 2015, 16:21:41) \r\n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2\r\n\r\nExample Output 1:\r\n```\r\n2015-04-24 18:19:18,658 - root - [INFO    ] (MainThread) Scan parameter(s) from raw data file(s): None\r\n2015-04-24 18:19:18,659 - root - [INFO    ] (MainThread) Opening output PDF file: /home/sgrinstein/workspace/CNM103/module_test/7_module_test_digital_scan.pdf\r\n2015-04-24 18:19:18,661 - root - [INFO    ] (MainThread) Interpreting raw data file(s): /home/sgrinstein/workspace/CNM103/module_test/7_module_test_digital_scan.h5\r\npython: malloc.c:2372: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *(sizeof(size_t))) - 1)) & ~((2 *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long) old_end & pagemask) == 0)' failed.\r\n```\r\nExample Output 2:\r\n```\r\n2015-04-24 18:42:04,756 - root - [INFO    ] (MainThread) Create selected cluster histograms\r\n2015-04-24 18:42:04,761 - root - [INFO    ] (MainThread) Closing output PDF file: test_analysis//unit_test_data_1.pdf\r\npython: malloc.c:3695: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed.\r\n```\r\nNeither the build and testing on Windows 7 / Windows Server 32/64 bit, Ubuntu 12.04 LTS Server 64 bit and Ubuntu 14.04 LTS 64 bit showed this error before.\r\n\r\nA Valgrind report was created showing ~~one memory leak~~ a heap block overrun in Clusterizer::allocateResultHistograms()."},"comment":{"url":"https://api.github.com/repos/SiLab-Bonn/pyBAR/issues/comments/96783354","html_url":"https://github.com/SiLab-Bonn/pyBAR/issues/11#issuecomment-96783354","issue_url":"https://api.github.com/repos/SiLab-Bonn/pyBAR/issues/11","id":96783354,"user":{"login":"themperek","id":4158544,"avatar_url":"https://avatars.githubusercontent.com/u/4158544?v=3","gravatar_id":"","url":"https://api.github.com/users/themperek","html_url":"https://github.com/themperek","followers_url":"https://api.github.com/users/themperek/followers","following_url":"https://api.github.com/users/themperek/following{/other_user}","gists_url":"https://api.github.com/users/themperek/gists{/gist_id}","starred_url":"https://api.github.com/users/themperek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themperek/subscriptions","organizations_url":"https://api.github.com/users/themperek/orgs","repos_url":"https://api.github.com/users/themperek/repos","events_url":"https://api.github.com/users/themperek/events{/privacy}","received_events_url":"https://api.github.com/users/themperek/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T19:11:42Z","updated_at":"2015-04-27T19:11:42Z","body":"\r\nCannot reproduce on ubuntu 14.04.2 32bit but one test fails:\r\n== on floats?\r\n\r\n```\r\nFAIL: test_threshold_analysis (__main__.TestAnalysis)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"test_analysis.py\", line 255, in test_threshold_analysis\r\n    self.assertTrue(data_equal, msg=error_msg)\r\nAssertionError: HistNoise: Sum first array: 89077.2468745, Sum second array: 89077.2468745\r\nHistThreshold: Sum first array: 719849.92, Sum second array: 719849.92\r\n\r\n\r\n----------------------------------------------------------------------\r\nRan 16 tests in 137.341s\r\n\r\nFAILED (failures=1)\r\n```\r\n\r\nFull log: https://dl.dropboxusercontent.com/u/2937630/pybar.ubuntu.14.04.x86.txt"}}