MaciekAber / pysam

Automatically exported from code.google.com/p/pysam
0 stars 0 forks source link

Bam.fetch('chr1', 0, 0) segfaults #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. samfile = pysam.Samfile('ex1.bam', 'rb')
2. samfile.fetch('chr1', 0, 0)
3. 'segfault'/python malloc memory corruption

What is the expected output? What do you see instead?
There should be an empty iterator returned.
It segfaults instead.

What version of the product are you using? On what operating system?
Revision 129, Ubuntu 10.4

Please provide any additional information below.
I attached a patch for the segfault_tests that exposes this.

Original issue reported on code.google.com by finkerna...@mathematik.uni-marburg.de on 18 Oct 2010 at 2:25

Attachments:

GoogleCodeExporter commented 8 years ago
Added the test case - no segfault on my machine.

Rel-0.3 returns empty iterator.

Bw,
Andreas

Original comment by andreas....@gmail.com on 2 Nov 2010 at 8:08