Re: help with bus error/segfault [SOLVED]

2007-05-19 Thread Xavier Noria
On May 18, 2007, at 2:58 AM, Xavier Noria wrote: OK, I've got something. Very misterious!!! Fortunately the segmentation fault happens in the first call to the function and some printfs where enough to arrive to what seems the key. The C subroutine receives an array in its second argument

Re: help with bus error/segfault

2007-05-17 Thread Xavier Noria
OK, I've got something. Very misterious!!! Fortunately the segmentation fault happens in the first call to the function and some printfs where enough to arrive to what seems the key. The C subroutine receives an array in its second argument: int __next_partition_of_size_p(SV* k_avptr, SV*

Re: help with bus error/segfault

2007-05-17 Thread Marvin Humphrey
On May 17, 2007, at 5:38 AM, Xavier Noria wrote: Looks like those reported errors at the beginning are unrelated to my module indeed, it is enough to load blib.pm to get them, I copy below the output. In 5.6.2 the same command gives two errors "Conditional jump...", and no "Invalid read...

Re: help with bus error/segfault

2007-05-17 Thread Xavier Noria
On May 16, 2007, at 9:39 PM, Xavier Noria wrote: Errors? I've seen leaks (including one in DynaLoader), but I don't recall errors under 5.8.8. This is the first time I use Valgrind. Using 5.8.8 the test suite passes but there's a report that reads: ERROR SUMMARY: 18 errors from 14 cont

Re: help with bus error/segfault

2007-05-16 Thread Xavier Noria
On May 16, 2007, at 6:11 PM, Marvin Humphrey wrote: On May 16, 2007, at 5:58 AM, Xavier Noria wrote: Fortunately the tester that reported the problem (David Cantrell) is so kind as to provide a SSH account on his Linux. He's done that for me, too. Good bloke. Indeed, if I run the test u

Re: help with bus error/segfault

2007-05-16 Thread Marvin Humphrey
On May 16, 2007, at 5:58 AM, Xavier Noria wrote: Fortunately the tester that reported the problem (David Cantrell) is so kind as to provide a SSH account on his Linux. He's done that for me, too. Good bloke. Indeed, if I run the test under Valgrind in 5.6.2 there's a ==15955== Invalid wr

Re: help with bus error/segfault

2007-05-16 Thread Xavier Noria
On May 16, 2007, at 7:37 AM, Marvin Humphrey wrote: On May 15, 2007, at 11:14 AM, Xavier Noria wrote: A tester reported the failure and I can reproduce it in my Mac with 5.6.2. Do you have access to a Linux box with Valgrind on it? I think your best bet will be to use valgrind to track d

Re: help with bus error/segfault

2007-05-15 Thread Marvin Humphrey
On May 15, 2007, at 11:14 AM, Xavier Noria wrote: A tester reported the failure and I can reproduce it in my Mac with 5.6.2. Do you have access to a Linux box with Valgrind on it? I think your best bet will be to use valgrind to track down exactly where the error is happening. The cod

help with bus error/segfault

2007-05-15 Thread Xavier Noria
The last release of one of my modules works fine except in 5.6.2: http://cpantesters.perl.org/show/Algorithm- Combinatorics.html#Algorithm-Combinatorics-0.22 A tester reported the failure and I can reproduce it in my Mac with 5.6.2. The test suite runs OK but for the last two tests of a