Re: [Rd] Memory crash

2008-10-03 Thread Göran Broström
Prof Brian Ripley wrote: Very likely your C code is writing out of bounds and has corrupted R's memory heap. Use the tools discussed in 'Writing R Extensions' (such as Valgrind) to help you track this down. Brian, thanks a lot; I installed valgrind, and the error was promptly spotted (your q

Re: [Rd] Memory crash

2008-10-03 Thread Prof Brian Ripley
Very likely your C code is writing out of bounds and has corrupted R's memory heap. Use the tools discussed in 'Writing R Extensions' (such as Valgrind) to help you track this down. On Fri, 3 Oct 2008, Göran Broström wrote: Hello, I get a segfault when running glmmboot in my own package glm

[Rd] Memory crash

2008-10-03 Thread Göran Broström
Hello, I get a segfault when running glmmboot in my own package glmmML. Has happened many time before, but this time I get no hint of where in my C functions the error might be. I give the output below. Can this be an R bug? I suspect it has to do with repeated calls to 'vmmin' like this: