Re: [Rd] dgTMatrix Segmentation Fault

2021-06-09 Thread Ben Bolker
Nice! On 6/9/21 9:00 PM, Dario Strbenac via R-devel wrote: Good day, Thanks to handy hints from Martin Morgan, I ran R under gdb and checked for any numeric overflow. We pinpointed the cause: (gdb) info locals i = 0 j = 10738 m = 20 n = 5 ans = 0x5b332790 aa = 0x5b3327c0 Th

Re: [Rd] dgTMatrix Segmentation Fault

2021-06-09 Thread Dario Strbenac via R-devel
Good day, Thanks to handy hints from Martin Morgan, I ran R under gdb and checked for any numeric overflow. We pinpointed the cause: (gdb) info locals i = 0 j = 10738 m = 20 n = 5 ans = 0x5b332790 aa = 0x5b3327c0 There is a line of C code in dgeMatrix.c for (i = 0; i < m; i++) a

Re: [Rd] dgTMatrix Segmentation Fault

2021-06-09 Thread Serguei Sokol
Le 08/06/2021 à 18:32, Martin Maechler a écrit : Dario Strbenac on Tue, 8 Jun 2021 09:00:04 + writes: > Good day, Indeed, changing the logical test is a > workaround to the problem. However, a segmentation fault > means that the software tried to access an invalid memory