Re: [R] Mysterious seg fault --- SOLVED

2018-08-15 Thread Chris Evans
, all! Chris - Original Message - > From: "Rolf Turner" > To: "Richard M. Heiberger" > Cc: r-help@r-project.org, "Achim Zeileis" , "peter > dalgaard" , "Henrik > Bengtsson" > Sent: Wednesday, 15 August, 2018 04:58:32

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread Rolf Turner
On 15/08/18 13:00, Richard M. Heiberger wrote: There is no explanation other than gremlins and the malevolence that the computer gods hold towards me. fortune nomination. I demur. I already have a fortune with gremlins in it attributed to me (fortune(213)). cheers, Rolf -- Technical

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread Richard M. Heiberger
There is no explanation other than gremlins and the malevolence that the computer gods hold towards me. fortune nomination. On Tue, Aug 14, 2018 at 7:12 PM, Rolf Turner wrote: > On 14/08/18 23:01, peter dalgaard wrote: >> >> Hmm, >> >>> .Fortran(stats:::C_setsmu, as.integer(0)) >> >> [[1]] >>

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread Rolf Turner
On 14/08/18 23:01, peter dalgaard wrote: Hmm, .Fortran(stats:::C_setsmu, as.integer(0)) [[1]] [1] 0 .Fortran(stats:::C_setsmu, as.integer(fumble)) Error: object 'fumble' not found .Fortran(stats:::C_setsmu, fumble=as.integer(fumble)) Error: object 'fumble' not found

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread peter dalgaard
Hmm, > .Fortran(stats:::C_setsmu, as.integer(0)) [[1]] [1] 0 > .Fortran(stats:::C_setsmu, as.integer(fumble)) Error: object 'fumble' not found > .Fortran(stats:::C_setsmu, fumble=as.integer(fumble)) Error: object 'fumble' not found > .Fortran(stats:::C_setsmu, nphi=as.integer(nphi)) Error:

Re: [R] Mysterious seg fault --- SOLVED

2018-08-13 Thread Rolf Turner
On 13/08/18 23:39, peter dalgaard wrote: It's odd, possibly a bug, that you don't get Error: object 'nphi' not found but I can't offhand see where the evaluation of args to .C/.Fortran is supposed to take place. If it is indeed a bug then it would be nice an it were fixed. If that is

Re: [R] Mysterious seg fault --- SOLVED

2018-08-13 Thread peter dalgaard
It's odd, possibly a bug, that you don't get Error: object 'nphi' not found but I can't offhand see where the evaluation of args to .C/.Fortran is supposed to take place. -pd > On 13 Aug 2018, at 11:54 , Rolf Turner wrote: > > > On 13/08/18 20:45, Henrik Bengtsson wrote: > >> On Mon, Aug

Re: [R] Mysterious seg fault --- SOLVED

2018-08-13 Thread Rolf Turner
On 13/08/18 20:45, Henrik Bengtsson wrote: On Mon, Aug 13, 2018 at 3:51 AM Rolf Turner wrote: OK everybody! You can relax. :-) I managed to spot the loony. After mucking around with valgrind, and before trying gdb, I had one more look at my code and *finally* saw the stupid thing that

Re: [R] Mysterious seg fault --- SOLVED

2018-08-13 Thread Henrik Bengtsson
On Mon, Aug 13, 2018 at 3:51 AM Rolf Turner wrote: > > > OK everybody! You can relax. :-) I managed to spot the loony. After > mucking around with valgrind, and before trying gdb, I had one more look > at my code and *finally* saw the stupid thing that I had been doing. > > In the call to

Re: [R] Mysterious seg fault --- SOLVED

2018-08-12 Thread Rolf Turner
OK everybody! You can relax. :-) I managed to spot the loony. After mucking around with valgrind, and before trying gdb, I had one more look at my code and *finally* saw the stupid thing that I had been doing. In the call to .Fortran() I had a line nphi=as.integer(nphi), but "nphi"