On Sat, Aug 22, 2020 at 8:39 AM Tomas Kalibera <tomas.kalib...@gmail.com> wrote:
>
> On 8/21/20 11:45 PM, m19tdn+9alxwj7d2bmk--- via R-devel wrote:
> > Ah yes, this is related. I reported v2010 below, but it looks like I was 
> > updated to this Insider Build overnight without my knowledge, and conflated 
> > it with the new installation R v4 this morning.
> >
> > I will continue to look into the issue with the methods Tomas mentioned.
>
> It is interesting that a rare 5 years old problem would re-appear on
> current Insider builds. Which build of Windows are you running exactly?
> I've seen another report about a crash on 20190.1000. It'd be nice to
> know if it is present also in newer builds, i.e. in 20197.

I installed the latest 20197 build in a vm, and I can indeed reproduce
this problem.

What seems to be happening is that R triggers an infinite recursion in
Windows unwinding mechanism, and eventually dies with a stack
overflow. Attached a backtrace of the initial 100 frames of the main
thread (the pattern in the top ~30 frames continues forever).

The microsoft blog doesn't mention anything related to exception
handling has changed in recent versions:
https://docs.microsoft.com/en-us/windows-insider/at-home/active-dev-branch
#39431 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39432 0x00007ffe105a8b07 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39433 0x00007ffe105a7258 in ntdll!RtlInitializeExtendedContext () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39434 0x00007ffe10639d5e in ntdll!KiUserExceptionDispatcher () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39435 0x00007ffe105a9584 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39436 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39437 0x00007ffe105a8b07 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39438 0x00007ffe105a7258 in ntdll!RtlInitializeExtendedContext () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39439 0x00007ffe10639d5e in ntdll!KiUserExceptionDispatcher () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39440 0x00007ffe105a9584 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39441 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39442 0x00007ffe105a8b07 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39443 0x00007ffe105a7258 in ntdll!RtlInitializeExtendedContext () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39444 0x00007ffe10639d5e in ntdll!KiUserExceptionDispatcher () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39445 0x00007ffe105a9584 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39446 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39447 0x00007ffe105a8b07 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39448 0x00007ffe105a7258 in ntdll!RtlInitializeExtendedContext () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39449 0x00007ffe10639d5e in ntdll!KiUserExceptionDispatcher () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39450 0x00007ffe105a9584 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39451 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39452 0x00007ffe105a8b07 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39453 0x00007ffe105a7258 in ntdll!RtlInitializeExtendedContext () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39454 0x00007ffe10639d5e in ntdll!KiUserExceptionDispatcher () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39455 0x00007ffe105a9584 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39456 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39457 0x00007ffe105a8b07 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39458 0x00007ffe105a7258 in ntdll!RtlInitializeExtendedContext () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39459 0x00007ffe10639d5e in ntdll!KiUserExceptionDispatcher () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39460 0x00007ffe105a9584 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39461 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39462 0x00007ffe105a8b07 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39463 0x00007ffe105a7258 in ntdll!RtlInitializeExtendedContext () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39464 0x00007ffe10639d5e in ntdll!KiUserExceptionDispatcher () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39465 0x00007ffe105a9584 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39466 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39467 0x00007ffe105a8b07 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39468 0x00007ffe105a7258 in ntdll!RtlInitializeExtendedContext () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39469 0x00007ffe10639d5e in ntdll!KiUserExceptionDispatcher () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39470 0x00007ffe105a9584 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39471 0x00007ffe105a8d77 in ntdll!RtlVirtualUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39472 0x00007ffe105a7e1f in ntdll!RtlUnwindEx () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39473 0x00007ffe105a6f2d in ntdll!RtlUnwind () from 
C:\WINDOWS\SYSTEM32\ntdll.dll
#39474 0x00007ffe1044665b in msvcrt!_setjmpex () from 
C:\WINDOWS\System32\msvcrt.dll
#39475 0x000000006c7947ff in R_jumpctxt (targetcptr=<optimized out>, mask=12, 
val=0x120cbe50) at context.c:240
#39476 0x000000006c794c1f in Rf_findcontext (mask=67051416, mask@entry=12, 
env=env@entry=0x172adbc8, val=0xc) at context.c:345
#39477 0x000000006c83af79 in do_usemethod (call=0x172add50, op=<optimized out>, 
args=<optimized out>, env=0x172adbc8) at objects.c:568
#39478 0x000000006c7ebdd1 in bcEval (body=<optimized out>, 
body@entry=0x172add88, rho=<optimized out>, rho@entry=0x172adbc8, 
useCache=useCache@entry=TRUE) at eval.c:6436
#39479 0x000000006c7fbd01 in Rf_eval (e=0x172add88, rho=0x172adbc8, 
rho@entry=0x0) at eval.c:723
#39480 0x000000006c7fd9e0 in R_execClosure (call=<optimized out>, 
call@entry=0x172a08a0, newrho=<optimized out>, newrho@entry=0x172adbc8, 
sysparent=<optimized out>, rho=<optimized out>, rho@entry=0x172a0280, 
arglist=<optimized out>, arglist@entry=0x172adc70, op=<optimized out>, 
op@entry=0x172ade30) at eval.c:1888
#39481 0x000000006c7fec9a in Rf_applyClosure (call=call@entry=0x172a08a0, 
op=op@entry=0x172ade30, arglist=<optimized out>, arglist@entry=0x6c89a4db 
<InBytesMem+43>, rho=0x172a0280, rho@entry=0x0, suppliedvars=<optimized out>) 
at eval.c:1814
#39482 0x000000006c7f2b47 in bcEval (body=<optimized out>, 
body@entry=0x172a0de0, rho=<optimized out>, rho@entry=0x172a0280, 
useCache=useCache@entry=TRUE) at eval.c:7067
#39483 0x000000006c7fbd01 in Rf_eval (e=0x172a0de0, rho=0x172a0280, 
rho@entry=0x100000000) at eval.c:723
#39484 0x000000006c7fd9e0 in R_execClosure (call=<optimized out>, 
call@entry=0x1214a728, newrho=<optimized out>, newrho@entry=0x172a0280, 
sysparent=<optimized out>, rho=<optimized out>, rho@entry=0x172a17f0, 
arglist=<optimized out>, arglist@entry=0x172a0478, op=<optimized out>, 
op@entry=0x172a10f0) at eval.c:1888
#39485 0x000000006c7fec9a in Rf_applyClosure (call=call@entry=0x1214a728, 
op=op@entry=0x172a10f0, arglist=<optimized out>, arglist@entry=0xfe04485c00, 
rho=0x172a17f0, rho@entry=0x721d6, suppliedvars=<optimized out>) at eval.c:1814
#39486 0x000000006c7f2b47 in bcEval (body=<optimized out>, 
body@entry=0x1214aa70, rho=<optimized out>, rho@entry=0x172a17f0, 
useCache=useCache@entry=TRUE) at eval.c:7067
#39487 0x000000006c7fbd01 in Rf_eval (e=0x1214aa70, rho=0x172a17f0, 
rho@entry=0x12145500) at eval.c:723
#39488 0x000000006c7fd9e0 in R_execClosure (call=<optimized out>, 
call@entry=0x172a1898, newrho=<optimized out>, newrho@entry=0x172a17f0, 
sysparent=<optimized out>, rho=<optimized out>, rho@entry=0x1214ae98, 
arglist=<optimized out>, arglist@entry=0x1214af40, op=<optimized out>, 
op@entry=0x1214ab18) at eval.c:1888
#39489 0x000000006c7fec9a in Rf_applyClosure (call=0x172a1898, op=0x1214ab18, 
arglist=<optimized out>, rho=0x1214ae98, suppliedvars=<optimized out>) at 
eval.c:1814
#39490 0x000000006c8397b5 in applyMethod (call=call@entry=0x172a1898, 
op=op@entry=0x1214ab18, args=<optimized out>, rho=rho@entry=0x1214ae98, 
newvars=newvars@entry=0x172a1908) at objects.c:118
#39491 0x000000006c83a588 in dispatchMethod (sxp=sxp@entry=0x1214ab18, 
dotClass=dotClass@entry=0x45d3d68, cptr=cptr@entry=0x4487bd0, 
method=method@entry=0x121071d8, generic=generic@entry=0x120c5450 
"getDLLRegisteredRoutines", rho=rho@entry=0x1214ae98, 
callrho=callrho@entry=0x12145768, defrho=defrho@entry=0x45db0e0, op=<optimized 
out>, op=<optimized out>) at objects.c:436
#39492 0x000000006c83b0f4 in Rf_usemethod (call=0x1214b058, args=<optimized 
out>, ans=<synthetic pointer>, defrho=0x45db0e0, callrho=0x12145768, 
rho=0x1214ae98, obj=0x120cd318, generic=0x120c5450 "getDLLRegisteredRoutines") 
at objects.c:476
#39493 do_usemethod (call=0x1214b058, op=<optimized out>, args=<optimized out>, 
env=0x1214ae98) at objects.c:565
#39494 0x000000006c7ebdd1 in bcEval (body=<optimized out>, 
body@entry=0x1214b090, rho=<optimized out>, rho@entry=0x1214ae98, 
useCache=useCache@entry=TRUE) at eval.c:6436
#39495 0x000000006c7fbd01 in Rf_eval (e=0x1214b090, rho=0x1214ae98, 
rho@entry=0xf) at eval.c:723
#39496 0x000000006c7fd9e0 in R_execClosure (call=<optimized out>, 
call@entry=0x12140f48, newrho=<optimized out>, newrho@entry=0x1214ae98, 
sysparent=<optimized out>, rho=<optimized out>, rho@entry=0x12145768, 
arglist=<optimized out>, arglist@entry=0x1214af40, op=<optimized out>, 
op@entry=0x12145538) at eval.c:1888
#39497 0x000000006c7fec9a in Rf_applyClosure (call=call@entry=0x12140f48, 
op=op@entry=0x12145538, arglist=<optimized out>, arglist@entry=0x1214af40, 
rho=rho@entry=0x12145768, suppliedvars=<optimized out>) at eval.c:1814
#39498 0x000000006c7fbeac in Rf_eval (e=0x12140f48, rho=rho@entry=0x12145768) 
at eval.c:846
#39499 0x000000006c800f9a in do_set (call=0x12140ea0, op=0x4560088, 
args=<optimized out>, rho=0x12145768) at ../include/Rinlinedfuns.h:88
#39500 0x000000006c7fc0e5 in Rf_eval (e=0x12140ea0, rho=rho@entry=0x12145768) 
at eval.c:798
#39501 0x000000006c7ffa37 in do_begin (call=0x12140e68, op=0x456b180, 
args=0x12140e30, rho=0x12145768) at ../include/Rinlinedfuns.h:88
#39502 0x000000006c7fc0e5 in Rf_eval (e=0x12140e68, rho=0x12145768) at 
eval.c:798
#39503 0x000000006c801f93 in do_eval (call=<optimized out>, op=<optimized out>, 
args=<optimized out>, rho=<optimized out>) at eval.c:3331
#39504 0x000000006c7ebf69 in bcEval (body=<optimized out>, 
body@entry=0x12146b18, rho=<optimized out>, rho@entry=0x121460d0, 
useCache=useCache@entry=TRUE) at eval.c:7099
#39505 0x000000006c7fbd01 in Rf_eval (e=0x12146b18, rho=0x121460d0, 
rho@entry=0xa) at eval.c:723
#39506 0x000000006c7fd9e0 in R_execClosure (call=<optimized out>, 
call@entry=0x121464f8, newrho=<optimized out>, newrho@entry=0x121460d0, 
sysparent=<optimized out>, rho=<optimized out>, rho@entry=0x45db0e0, 
arglist=<optimized out>, arglist@entry=0x12146220, op=<optimized out>, 
op@entry=0x12146f08) at eval.c:1888
#39507 0x000000006c7fec9a in Rf_applyClosure (call=call@entry=0x121464f8, 
op=op@entry=0x12146f08, arglist=<optimized out>, arglist@entry=0x12146220, 
rho=rho@entry=0x45db0e0, suppliedvars=<optimized out>) at eval.c:1814
#39508 0x000000006c7fbeac in Rf_eval (e=0x121464f8, rho=0x45db0e0) at eval.c:846
#39509 0x000000006c801f93 in do_eval (call=<optimized out>, op=<optimized out>, 
args=<optimized out>, rho=<optimized out>) at eval.c:3331
#39510 0x000000006c7ebf69 in bcEval (body=<optimized out>, 
body@entry=0x12146b18, rho=<optimized out>, rho@entry=0x121467d0, 
useCache=useCache@entry=TRUE) at eval.c:7099
#39511 0x000000006c7fbd01 in Rf_eval (e=0x12146b18, rho=0x121467d0, 
rho@entry=0x0) at eval.c:723
#39512 0x000000006c7fd9e0 in R_execClosure (call=<optimized out>, 
call@entry=0x12142618, newrho=<optimized out>, newrho@entry=0x121467d0, 
sysparent=<optimized out>, rho=<optimized out>, rho@entry=0x12142308, 
arglist=<optimized out>, arglist@entry=0x12146920, op=<optimized out>, 
op@entry=0x12146f08) at eval.c:1888
#39513 0x000000006c7fec9a in Rf_applyClosure (call=call@entry=0x12142618, 
op=op@entry=0x12146f08, arglist=<optimized out>, arglist@entry=0x6c89a4db 
<InBytesMem+43>, rho=0x12142308, rho@entry=0x6e51209c <R_EvalDepth>, 
suppliedvars=<optimized out>) at eval.c:1814
#39514 0x000000006c7f2b47 in bcEval (body=<optimized out>, 
body@entry=0x12142928, rho=<optimized out>, rho@entry=0x12142308, 
useCache=useCache@entry=TRUE) at eval.c:7067
#39515 0x000000006c7fbd01 in Rf_eval (e=0x12142928, rho=0x12142308, 
rho@entry=0x3700000037) at eval.c:723
#39516 0x000000006c7fd9e0 in R_execClosure (call=<optimized out>, 
call@entry=0x12142f10, newrho=<optimized out>, newrho@entry=0x12142308, 
sysparent=<optimized out>, rho=<optimized out>, rho@entry=0x12142b58, 
arglist=<optimized out>, arglist@entry=0x121423b0, op=<optimized out>, 
op@entry=0x121429d0) at eval.c:1888
#39517 0x000000006c7fec9a in Rf_applyClosure (call=call@entry=0x12142f10, 
op=op@entry=0x121429d0, arglist=<optimized out>, arglist@entry=0x6c89a4db 
<InBytesMem+43>, rho=0x12142b58, rho@entry=0xfc8e0, suppliedvars=<optimized 
out>) at eval.c:1814
#39518 0x000000006c7f2b47 in bcEval (body=<optimized out>, 
body@entry=0x12142f48, rho=<optimized out>, rho@entry=0x12142b58, 
useCache=useCache@entry=TRUE) at eval.c:7067
#39519 0x000000006c7fbd01 in Rf_eval (e=0x12142f48, rho=0x12142b58, 
rho@entry=0x4) at eval.c:723
#39520 0x000000006c7fd9e0 in R_execClosure (call=<optimized out>, 
call@entry=0x12143178, newrho=<optimized out>, newrho@entry=0x12142b58, 
sysparent=<optimized out>, rho=<optimized out>, rho@entry=0x45db0e0, 
arglist=<optimized out>, arglist@entry=0x12142c00, op=<optimized out>, 
op@entry=0x12143028) at eval.c:1888
#39521 0x000000006c7fec9a in Rf_applyClosure (call=call@entry=0x12143178, 
op=op@entry=0x12143028, arglist=<optimized out>, arglist@entry=0x12142c00, 
rho=rho@entry=0x45db0e0, suppliedvars=<optimized out>) at eval.c:1814
#39522 0x000000006c7fbeac in Rf_eval (e=0x12143178, rho=rho@entry=0x45db0e0) at 
eval.c:846
#39523 0x000000006c823525 in R_ReplFile (fp=0x7ffe10464a90 <msvcrt!_iob+144>, 
fp@entry=0x2f3d484352415f52, rho=0x45db0e0) at main.c:99
#39524 0x000000006c8240fd in setup_Rmainloop () at main.c:951
#39525 0x000000006c825579 in Rf_mainloop () at main.c:1119
#39526 0x000000000040171a in AppMain (argc=1, argv=0x45b1820) at rterm.c:140
#39527 0x000000000040158a in WinMain (Instance=<optimized out>, 
PrevInstance=PrevInstance@entry=0x0, CmdLine=<optimized out>, 
CmdShow=<optimized out>) at graphappmain.c:23
#39528 0x00000000004033a2 in main (flags=<optimized out>, cmdline=<optimized 
out>, inst=<optimized out>) at 
C:/msys64/home/mingw-packages/mingw-w64-crt-git/src/mingw-w64-v5.0.4/mingw-w64-crt/crt/crt0_c.c:18
#39529 0x00000000004013c5 in __tmainCRTStartup () at 
C:/msys64/home/mingw-packages/mingw-w64-crt-git/src/mingw-w64-v5.0.4/mingw-w64-crt/crt/crtexe.c:334
#39530 0x000000000040152b in mainCRTStartup () at 
C:/msys64/home/mingw-packages/mingw-w64-crt-git/src/mingw-w64-v5.0.4/mingw-w64-crt/crt/crtexe.c:212
Detaching from program: C:\Program Files\R\R-4.0.2patched\bin\x64\Rterm.exe, 
Pid 7876
[Inferior 1 (process 7876) detached]
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to