What can cause an MFC OpenInventor program to freeze inside nvwgf2umx.dll - visual-studio-2012

I am currently facing the hardest bug chase of my young developer career. The software we provide is used only in the company internally having several hundred users / computers, but only on one the software does not work. The problematic program is based on MFC and uses OpenInventor for 3D visualisation.
When the user starts the software and creates a new file, internally a new CDocument is created connect to a view that uses/displays an SoWinFullViewer. The user can see that frame of the MFC view is created but the SoWinFullViewer is not displayed. In this state the whole application freezes.
I am unable to reproduce the issue on my developing machine or on any other computer.
For debugging, I deployed an debug build on the problematic computer. But the debug build runs fine. So I deployed a release build with debugging symboles and used the Remote Debugger from Visual Studio. When I start the release build via Remote Debugger everything works fine. If I start the program first on the problematic computer manually, then attach the process via Remote Debugger and then create the new file, the program freezes. After pausing the program, the debugger stands always in a thread of nvwgf2umx.dll.
I expected an issue with the GPU driver, so I let the IT reinstalled the GPU drivers. The problem stayed alive. The only option I see right now is to let the IT reinstall the whole system - praying that this will solve the issue.
What can I do for further debugging? What can cause an application to freeze inside nvwgf2umx.dll ?
Based on the comment I pulled a dump and analyzed it with WinDbg. This is the result of
!analyze -v :
Microsoft (R) Windows Debugger Version 10.0.22000.194 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [S:\_PROJECTS-GL\_DEP_L-D\L-DL\L-DL-FSCC\_Home\zimmde1\_Scratch\lisa (3).DMP]
User Mini Dump File with Full Memory: Only application data is available
Symbol search path is: srv*
Executable search path is:
Windows 10 Version 19042 MP (12 procs) Free x64
Product: WinNt, suite: SingleUserTS
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Debug session time: Tue Jan 11 08:45:35.000 2022 (UTC + 1:00)
System Uptime: 0 days 22:16:14.694
Process Uptime: 0 days 1:39:10.000
................................................................
................................................................
.....
Loading unloaded module list
.
For analysis of this file, run !analyze -v
ntdll!NtWaitForAlertByThreadId+0x14:
00007ffe`0c250764 c3 ret
0:000> .symfix
0:000> .sympath+ E:\Sandboxes\HeliosBuild\build\VS2012\Release\binx64
Symbol search path is: srv*;E:\Sandboxes\HeliosBuild\build\VS2012\Release\binx64
Expanded Symbol search path is: cache*;SRV*https://msdl.microsoft.com/download/symbols;e:\sandboxes\heliosbuild\build\vs2012\release\binx64
************* Path validation summary **************
Response Time (ms) Location
Deferred srv*
OK E:\Sandboxes\HeliosBuild\build\VS2012\Release\binx64
0:000> .sympath+ https://driver-symbols.nvidia.com/
Symbol search path is: srv*;E:\Sandboxes\HeliosBuild\build\VS2012\Release\binx64;https://driver-symbols.nvidia.com/
Expanded Symbol search path is: cache*;SRV*https://msdl.microsoft.com/download/symbols;e:\sandboxes\heliosbuild\build\vs2012\release\binx64;https://driver-symbols.nvidia.com/
************* Path validation summary **************
Response Time (ms) Location
Deferred srv*
OK E:\Sandboxes\HeliosBuild\build\VS2012\Release\binx64
Deferred https://driver-symbols.nvidia.com/
0:000> .srcpath+ E:\Sandboxes\HeliosBuild\src
Source search path is: E:\Sandboxes\HeliosBuild\src
************* Path validation summary **************
Response Time (ms) Location
OK E:\Sandboxes\HeliosBuild\src
0:000> ld*
Symbols loaded for nvoglv64
Symbols loaded for sysfer
[...]
Symbols already loaded for ntdll
0:000> .reload
................................................................
................................................................
.....
Loading unloaded module list
.
0:000> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*** WARNING: Unable to verify checksum for InventorBase.dll
*** WARNING: Unable to verify checksum for Inventor.dll
*** WARNING: Unable to verify checksum for InventorGui.dll
*** WARNING: Unable to verify checksum for InventorWin.dll
*** WARNING: Unable to verify checksum for lisa.exe
*** WARNING: Unable to verify checksum for InventorGL.dll
*** WARNING: Unable to verify checksum for lsvdialog.dll
KEY_VALUES_STRING: 1
Key : Analysis.CPU.mSec
Value: 2078
Key : Analysis.DebugAnalysisManager
Value: Create
Key : Analysis.Elapsed.mSec
Value: 16761
Key : Analysis.Init.CPU.mSec
Value: 4280
Key : Analysis.Init.Elapsed.mSec
Value: 492749
Key : Analysis.Memory.CommitPeak.Mb
Value: 289
Key : Timeline.OS.Boot.DeltaSec
Value: 80174
Key : Timeline.Process.Start.DeltaSec
Value: 5950
Key : WER.OS.Branch
Value: vb_release
Key : WER.OS.Timestamp
Value: 2019-12-06T14:06:00Z
Key : WER.OS.Version
Value: 10.0.19041.1
Key : WER.Process.Version
Value: 1.62.0.0
NTGLOBALFLAG: 0
PROCESS_BAM_CURRENT_THROTTLED: 0
PROCESS_BAM_PREVIOUS_THROTTLED: 0
APPLICATION_VERIFIER_FLAGS: 0
EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 0000000000000000
ExceptionCode: 80000003 (Break instruction exception)
ExceptionFlags: 00000000
NumberParameters: 0
FAULTING_THREAD: 00000138
PROCESS_NAME: lisa.exe
ERROR_CODE: (NTSTATUS) 0x80000003 - {AUSNAHME} Haltepunkt Im Quellprogramm wurde ein Haltepunkt erreicht.
EXCEPTION_CODE_STR: 80000003
STACK_TEXT:
0000007f`ecb8aa58 00007ffe`0c1d9205 : 000001b7`f99a8610 000001b7`f9e56f60 00007ffd`d77616c0 00007ffe`09e74f69 : ntdll!NtWaitForAlertByThreadId+0x14
0000007f`ecb8aa60 00007ffe`0c2289bb : 00000000`00000000 00000000`00000000 00007ffe`0c32f3f0 00000000`00000000 : ntdll!RtlAcquireSRWLockExclusive+0x165
0000007f`ecb8aad0 00007ffe`0c201276 : 0000007f`ecb8b270 0000007f`ecb8ad80 00000000`00000000 00000000`00000000 : ntdll!RtlpCallVectoredHandlers+0x87
0000007f`ecb8ab70 00007ffe`0c250bfe : 00000000`00000000 00000000`00e400ff 00007ffe`0c32f3f0 00000000`00000000 : ntdll!RtlDispatchException+0x66
0000007f`ecb8ad80 00007ffe`0c2289d7 : 00000000`00000000 00000000`00000000 00000000`0000000c 00000000`00000000 : ntdll!KiUserExceptionDispatch+0x2e
0000007f`ecb8b490 00007ffe`0c201276 : 0000007f`ecb8bc30 0000007f`ecb8b740 00000000`00000000 000001b7`f1d32200 : ntdll!RtlpCallVectoredHandlers+0xa3
0000007f`ecb8b530 00007ffe`0c250bfe : 000001b7`f4a5acd0 00000000`00000000 fe5fffff`ffffffff 000001b7`f4c42430 : ntdll!RtlDispatchException+0x66
0000007f`ecb8b740 00007ffe`0c1b445c : 00007ffe`0c1db86b 00000000`00730019 00000000`000000c7 000001b7`f996a1e0 : ntdll!KiUserExceptionDispatch+0x2e
0000007f`ecb8be58 00007ffe`0c1db86b : 00000000`00730019 00000000`000000c7 000001b7`f996a1e0 0000007f`ecb8c1b0 : ntdll!RtlpLfhFindClearBitAndSet+0x8c
0000007f`ecb8be60 00007ffe`0c1db3c7 : 000001b7`efc40000 00007ffd`00000000 00000000`00000008 00000000`00000000 : ntdll!RtlpLowFragHeapAllocFromContext+0x21b
0000007f`ecb8bf20 00000000`6c065e2a : 00000000`00000000 00000000`00000008 0000007f`ecb8c4b0 0000007f`ecb80000 : ntdll!RtlpAllocateHeapInternal+0x9a7
0000007f`ecb8c030 00007ffd`d77063b7 : 00000000`00000008 00000000`00000000 0000007f`ecb8c2c0 00007ffd`c655a8bc : nvoglv64!DllMain+0xfe7a
0000007f`ecb8c060 00007ffd`cef83c64 : 000001b7`f1bed128 00000000`00000000 000001b7`f99a8610 00007ffd`c656733e : msvcr110!malloc+0x5b
0000007f`ecb8c090 00007ffd`cefbbeb1 : 000001b7`f1bed128 00000000`00000004 0000007f`ecb8c180 ffffffff`ffffffff : InventorBase!safeMalloc+0x44
0000007f`ecb8c0d0 00007ffd`cefbc418 : 00000000`00000013 0000b287`bfaab405 0000007f`ecb8c2c0 000001b7`f99a8610 : InventorBase!SbString::toStdWString+0x91
0000007f`ecb8c160 00007ffd`c695c8a8 : 000001b7`f4c96440 000001b7`f1bed128 00000000`00000000 00000000`00000007 : InventorBase!SbString::toWideChar+0x58
0000007f`ecb8c1c0 00007ffd`c696c458 : 00000000`00000000 00000000`00000000 000001b7`f99a8610 00000000`81000b8a : Inventor!SoVRMLWorldInfo::getTypeId+0x187e8
0000007f`ecb8c4c0 00007ffd`c6991aa9 : 00000000`00000013 0000007f`ecb8c6a0 00000000`00000013 000001b7`03c20000 : Inventor!SoContextedObjectCache<SoGLBufferObjectCache>::removeSharedGroupDependency+0x8498
0000007f`ecb8c530 00007ffd`c698eeb0 : 00000000`00000013 00000000`803b0000 000001b7`f99a8610 00007ffd`c658c2cb : Inventor!SoFontServer::getCurrentBBoxCache+0x149
0000007f`ecb8c5f0 00007ffd`c63cfe4c : 0000007f`ecb8c890 00007ffd`c654e1d2 0000007f`803e0000 0000007f`803e0000 : Inventor!SoFontServer::computeStringBoxInfo+0x490
0000007f`ecb8c750 00007ffd`c681f650 : 00000000`00000001 0000007f`ecb8c890 000001b7`f9b6b828 00000000`00000000 : Inventor!SoFontServer::computeStringBoxInfo+0x1c
0000007f`ecb8c790 00007ffd`c680ef8d : 000001b7`f9b4aa70 00000000`00000000 000001b7`f9b6b730 000001b7`efb6b2b0 : Inventor!SoText2::GLRender+0x160
0000007f`ecb8ca20 00007ffd`c6442615 : 000001b7`f9b4aa70 000001b7`efb6b1e0 000001b7`f9b4aa70 000001b7`f9b6b730 : Inventor!SoShape::GLRenderP+0x12d
0000007f`ecb8caf0 00007ffd`c671ea52 : 000001b7`f99c7ec0 000001b7`81f900a2 00000000`00000000 000001b7`f9b4aa70 : Inventor!SoAction::traverse+0xb5
0000007f`ecb8cb20 00007ffd`c66cb4fb : 00000000`00000000 00000000`00000001 000001b7`f9b97090 00000000`00000000 : Inventor!SoGroupImpl::GLRender+0x152
0000007f`ecb8cb90 00007ffd`c67e8216 : 000001b7`f9b97090 000001b7`f99c35e0 000001b7`00000002 00000000`00000001 : Inventor!SoCachedGroupImpl::GLRender+0x23b
0000007f`ecb8cc40 00007ffd`c6442615 : 000001b7`f9b4aa70 00000000`00000007 000001b7`f9b6aff0 000001b7`f9b6aff0 : Inventor!SoSeparator::GLRenderBelowPath+0x106
0000007f`ecb8cc80 00007ffd`c671ea52 : 000001b7`f99c75c0 000001b7`815e0007 00000000`00000000 000001b7`f9b4aa70 : Inventor!SoAction::traverse+0xb5
0000007f`ecb8ccb0 00007ffd`c66cb4fb : 00000000`00000000 00000000`00000001 000001b7`f9b97090 00000000`00000000 : Inventor!SoGroupImpl::GLRender+0x152
0000007f`ecb8cd20 00007ffd`c67e8216 : 000001b7`f9b97090 000001b7`f99c35e0 00000000`00000002 00000000`00000001 : Inventor!SoCachedGroupImpl::GLRender+0x23b
0000007f`ecb8cdd0 00007ffd`c6442615 : 000001b7`f9b4aa70 00000000`00000007 000001b7`f99c0820 000001b7`f99c0820 : Inventor!SoSeparator::GLRenderBelowPath+0x106
0000007f`ecb8ce10 00007ffd`c671ea52 : 000001b7`f995f9e0 000001b7`815e0007 00000000`00000000 000001b7`f9b4aa70 : Inventor!SoAction::traverse+0xb5
0000007f`ecb8ce40 00007ffd`c66cb4fb : 00000000`00000000 00000000`00000001 000001b7`f9b97090 00000000`00000000 : Inventor!SoGroupImpl::GLRender+0x152
0000007f`ecb8ceb0 00007ffd`c67e8216 : 000001b7`f9b97090 000001b7`f99c35e0 000001b7`00000002 00000000`00000001 : Inventor!SoCachedGroupImpl::GLRender+0x23b
0000007f`ecb8cf60 00007ffd`c6442615 : 000001b7`f9b4aa70 00000000`000001d2 000001b7`f99be320 000001b7`f99be320 : Inventor!SoSeparator::GLRenderBelowPath+0x106
0000007f`ecb8cfa0 00007ffd`c671ea52 : 000001b7`f9960d00 000001b7`839e01d2 00000000`00000000 000001b7`f9b4aa70 : Inventor!SoAction::traverse+0xb5
0000007f`ecb8cfd0 00007ffd`c66cb4fb : 0000007f`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : Inventor!SoGroupImpl::GLRender+0x152
0000007f`ecb8d040 00007ffd`c67e8216 : 000001b7`f9b97090 00000000`00000000 000001b7`00000000 00000000`00000001 : Inventor!SoCachedGroupImpl::GLRender+0x23b
0000007f`ecb8d0f0 00007ffd`c6442615 : 000001b7`f9b4aa70 00000000`00000007 000001b7`f99c1e00 00000000`00000000 : Inventor!SoSeparator::GLRenderBelowPath+0x106
0000007f`ecb8d130 00007ffd`c6471bb2 : 000001b7`f99c1e00 000001b7`815e0007 0000007f`ecb8d198 000001b7`f99c35e0 : Inventor!SoAction::traverse+0xb5
0000007f`ecb8d160 00007ffd`c6441371 : 000001b7`f9b4aa70 000001b7`f99c1e00 000001b7`f99c1e00 000001b7`f9b4aa70 : Inventor!SoGLRenderAction::beginTraversal+0x472
0000007f`ecb8d1e0 00007ffd`c64716cb : 00000000`00000001 0000007f`ecb8d348 000001b7`f99c1e00 000001b7`f9b4aa70 : Inventor!SoAction::apply+0x181
0000007f`ecb8d290 00007ffd`c69cb08a : 000001b7`f99c1e00 000001b7`f9b4aa70 000001b7`f9abc8e0 000001b7`f9abc8e0 : Inventor!SoGLRenderAction::apply+0x20b
0000007f`ecb8d2e0 00007ffd`c6671ce4 : 0000007f`839e01d2 000001b7`f99c1e00 000001b7`f9abc8e0 00000000`00000000 : Inventor!SoLineHighlightRenderAction::apply+0x48a
0000007f`ecb8d390 00007ffd`c6670cdd : 000001b7`f9bd2350 000001b7`00000000 000001b7`00000000 000001b7`80e60000 : Inventor!SoMultiPassManagerImpl::removeAllTraversalPass+0x274
0000007f`ecb8d460 00007ffd`c644134d : 000001b7`80e60000 000001b7`f9b4aa70 00000000`80e60000 000001b7`80f00000 : Inventor!SoMultiPassManagerImpl::apply+0x36d
0000007f`ecb8d510 00007ffd`c64716f9 : 00000000`00000001 0000007f`ecb8d678 000001b7`f99c1e00 000001b7`f9b4aa70 : Inventor!SoAction::apply+0x15d
0000007f`ecb8d5c0 00007ffd`c69cb08a : 000001b7`f99c1e00 000001b7`f9b4aa70 000001b7`f9b4aa70 000001b7`f99c1e00 : Inventor!SoGLRenderAction::apply+0x239
0000007f`ecb8d610 00007ffd`c687abaf : 000001b7`f99a8610 000001b7`f99c1e00 00000000`80f20000 000001b7`f9abc8e0 : Inventor!SoLineHighlightRenderAction::apply+0x48a
0000007f`ecb8d6c0 00007ffd`c69aea6d : 000001b7`f999b640 000001b7`f999b640 00000000`00000000 000001b7`f4930550 : Inventor!SoDepthOfField::setParameters+0x154f
0000007f`ecb8d700 00007ffd`dbbdfd57 : 00000000`00000000 000001b7`f999b7c0 00000000`00000000 00000000`00000000 : Inventor!SoSceneManagerImpl::render+0x73d
0000007f`ecb8d870 00007ffd`dbbde0bc : 000001b7`f99bf420 000001b7`f99bf420 000001b7`f99bf420 0000007f`ecb8d979 : InventorGui!SoGuiViewer::doRendering+0x4e7
0000007f`ecb8d8d0 00007ffd`dbbd98c0 : 000001b7`f9b976f0 000001b7`f9b976f0 00000000`00000000 000001b7`f99bfc00 : InventorGui!SoGuiViewer::actualRedraw+0x62c
0000007f`ecb8d9e0 00007ffd`c9e4e486 : ffffffff`fffffffe 00000000`00000000 000001b7`f99bf420 000001b7`f99bf420 : InventorGui!SoGuiExaminerViewer::actualRedraw+0x230
0000007f`ecb8dac0 00007ffd`c9e0df50 : 00000000`00000002 00000000`00000000 0000007f`ecb8dc90 00000000`00060a00 : InventorWin!SoWinExaminerViewer::actualRedraw+0x26
0000007f`ecb8daf0 00007ffd`c9e0fee4 : 00000000`3f800000 00000000`00000000 0000007f`ecb8dc90 000001b7`f99bf420 : InventorWin!SoWinRenderArea::redraw+0x210
0000007f`ecb8db60 00007ffd`c9e1ade7 : 000001b7`f99bf420 000001b7`f99bf420 000001b7`f1cee020 00000000`00000000 : InventorWin!SoWinViewer::redraw+0x34
0000007f`ecb8db90 00007ffe`0b4be7e8 : 0000007f`ecb8de20 00007ffe`0c318fe0 00000000`00000001 00000000`00000000 : InventorWin!SoWinGLWidget::glxWindowProc+0x217
0000007f`ecb8dd20 00007ffe`0b4be47e : 000001b7`f994906c 00007ffd`c9e1abd0 00000000`00060a00 00007ffd`00000005 : user32!UserCallWinProcCheckWow+0x2f8
0000007f`ecb8deb0 00007ffd`c8f2f1b0 : 000001b7`f9949060 00000000`00000000 00000000`ffff0a39 00000000`ffff0a39 : user32!CallWindowProcW+0x8e
0000007f`ecb8df00 00007ffe`0b4be7e8 : 00000000`00000001 0000007f`ecb8e2b0 00000000`00000000 00000000`00000000 : opengl32!wglWndProc+0x2a0
0000007f`ecb8df70 00007ffe`0b4be36c : 0000007f`ecb8e2b0 00007ffd`c8f2ef10 00000000`00060a00 00000000`00000005 : user32!UserCallWinProcCheckWow+0x2f8
0000007f`ecb8e100 00007ffe`0b4d0f93 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : user32!DispatchClientMessage+0x9c
0000007f`ecb8e160 00007ffe`0c250ba4 : 00000000`00000229 00000000`00000000 0000007f`ecb8e840 00007ffe`0b4beb26 : user32!_fnDWORD+0x33
0000007f`ecb8e1c0 00007ffe`0a1c1124 : 00007ffe`0b4bdec3 00000000`00000040 00007ffe`0c250ba4 000001b7`efb8a8f0 : ntdll!KiUserCallbackDispatcherContinue
0000007f`ecb8e248 00007ffe`0b4bdec3 : 00000000`00000040 00007ffe`0c250ba4 000001b7`efb8a8f0 00000000`00000002 : win32u!NtUserMessageCall+0x14
0000007f`ecb8e250 00007ffe`0b4bcb53 : 00000000`00060a00 00000000`40000000 00000000`00000000 00000000`00000001 : user32!SendMessageWorker+0x823
0000007f`ecb8e2f0 00007ffe`0b4b9bed : 00007ffe`0b4b9bb0 00007ffe`0b4ce2b1 000001b7`f03cf780 00000000`00000083 : user32!RealDefWindowProcWorker+0x2c3
0000007f`ecb8e3f0 00007ffe`071cb889 : 00007ffe`0b4b9bb0 00000000`00000047 000001b7`f2010900 00000000`00000047 : user32!RealDefWindowProcA+0x3d
0000007f`ecb8e430 00007ffe`071e2f8e : 00000000`00060a00 0000007f`ecb8ed40 00000000`00000000 0000007f`ecb8ed40 : uxtheme!_ThemeDefWindowProc+0x609
0000007f`ecb8e610 00007ffe`0b4b9846 : 0000007f`ecb8e7a0 00007ffe`0b4c0d92 000001b7`f99bf420 00000000`00060a00 : uxtheme!ThemeDefWindowProcA+0xe
0000007f`ecb8e650 00007ffd`c9e1b2b3 : 000001b7`f99bf420 00000000`00060a00 00000000`00000047 00000000`007fecb8 : user32!DefWindowProcA+0x76
0000007f`ecb8e6a0 00007ffe`0b4be7e8 : 00000000`00000000 00000000`00000000 00000000`00000001 00000000`00000000 : InventorWin!SoWinGLWidget::glxWindowProc+0x6e3
0000007f`ecb8e830 00007ffe`0b4be47e : 000001b7`f2010900 00007ffd`c9e1abd0 00000000`00060a00 00007ffd`00000047 : user32!UserCallWinProcCheckWow+0x2f8
0000007f`ecb8e9c0 00007ffd`c8f2f1b0 : 000001b7`f9949060 00000000`00000000 00000000`ffff0a39 00000000`00000000 : user32!CallWindowProcW+0x8e
0000007f`ecb8ea10 00007ffe`0b4be7e8 : 00000000`00000001 00000000`01650222 00000000`00000000 00000000`00000000 : opengl32!wglWndProc+0x2a0
0000007f`ecb8ea80 00007ffe`0b4be36c : 00000000`01650222 00007ffd`c8f2ef10 00000000`00060a00 00007ffe`00000047 : user32!UserCallWinProcCheckWow+0x2f8
0000007f`ecb8ec10 00007ffe`0b4d60c0 : 00000000`00000000 00000000`00000000 00000000`00000000 00007ffe`0c250ba4 : user32!DispatchClientMessage+0x9c
0000007f`ecb8ec70 00007ffe`0c250ba4 : 00000000`00000000 0000007f`ecb8ed78 00000000`0002001e 000001b7`f03cf780 : user32!_fnINLPWINDOWPOS+0x30
STACK_COMMAND: ~0s; .ecxr ; kb
SYMBOL_NAME: nvoglv64!DllMain+fe7a
MODULE_NAME: nvoglv64
IMAGE_NAME: nvoglv64.dll
FAILURE_BUCKET_ID: BREAKPOINT_80000003_nvoglv64.dll!DllMain
OS_VERSION: 10.0.19041.1
BUILDLAB_STR: vb_release
OSPLATFORM_TYPE: x64
OSNAME: Windows 10
IMAGE_VERSION: 10.18.13.5456
FAILURE_ID_HASH: {4c63ad3f-1b0d-6f17-5a1f-34f55bfc2ead}
Followup: MachineOwner
---------
This tells me that a breakpoint in nvoglv64.dll was hit. The Stack Text shows only external code. What could cause that?
And the result of
!locks -v :
CritSec ntdll!RtlpProcessHeapsListLock+0 at 00007ffe0c318ce0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec +efb402c0 at 000001b7efb402c0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 2
CritSec +ef9b02c0 at 000001b7ef9b02c0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec +efed02c0 at 000001b7efed02c0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec shell32!g_lockObject+0 at 00007ffe0aef84a0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec +f17902c0 at 000001b7f17902c0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec +f20102c0 at 000001b7f20102c0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec +f1d27fe0 at 000001b7f1d27fe0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec ntmarta!gWrkrLock+0 at 00007ffe084cc800
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec ntmarta!gCacheLock+0 at 00007ffe084cc860
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec ntmarta!grgRightsNameCache+3f0 at 00007ffe084cd3b0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec ntmarta!grgRightsNameCache+520 at 00007ffe084cd4e0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec +fb2c02c0 at 000001b7fb2c02c0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec +fb6f02c0 at 000001b7fb6f02c0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec msvcrt!CrtLock_Setlocale+0 at 00007ffe0beff5b0
LockCount NOT LOCKED
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 0
CritSec msvcr110!wcmdln+148 at 00007ffdd7765b10
WaiterWoken No
LockCount 5
RecursionCount 1
OwningThread 30b0
EntryCount 0
ContentionCount 5
*** Locked
Scanned 16 critical sections
~*kvn
Call Site
win32u!NtUserGetMessage+0x14
user32!GetMessageA+0x46
InventorGL!SoWindowsPowerEventHandler
InventorBase!SbThread
msvcr110!beginthreadex+0x107
msvcr110!endthreadex+0x192
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
win32u!NtUserMsgWaitForMultipleObjectsEx+0x14
user32!RealMsgWaitForMultipleObjectsEx+0x1e
nvoglv64!DrvValidateVersion+0x332d
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForAlertByThreadId+0x14
ntdll!RtlpWaitOnAddressWithTimeout+0x81
ntdll!RtlpWaitOnAddress+0xae
ntdll!RtlpWaitOnCriticalSection+0xfd
ntdll!RtlpEnterCriticalSectionContended+0x1c4
ntdll!RtlEnterCriticalSection+0x42
msvcr110!freefls+0xde
ntdll!RtlpFlsDataCleanup+0x121
ntdll!LdrShutdownThread+0x48
ntdll!RtlExitUserThread+0x3e
ntdll!TppWorkerThread+0xc18
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForAlertByThreadId+0x14
ntdll!RtlpWaitOnAddressWithTimeout+0x81
ntdll!RtlpWaitOnAddress+0xae
ntdll!RtlpWaitOnCriticalSection+0xfd
ntdll!RtlpEnterCriticalSectionContended+0x1c4
ntdll!RtlEnterCriticalSection+0x42
msvcr110!freefls+0xde
ntdll!RtlpFlsDataCleanup+0x121
ntdll!LdrShutdownThread+0x48
ntdll!RtlExitUserThread+0x3e
ntdll!TppWorkerThread+0xc18
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForSingleObject+0x14
KERNELBASE!WaitForSingleObjectEx+0x8e
nvoglv64!DrvValidateVersion+0x7d8a
nvoglv64+0x7b299d
nvoglv64+0x7b2658
nvoglv64!DrvValidateVersion+0xa257
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForAlertByThreadId+0x14
ntdll!RtlpWaitOnAddressWithTimeout+0x81
ntdll!RtlpWaitOnAddress+0xae
ntdll!RtlpWaitOnCriticalSection+0xfd
ntdll!RtlpEnterCriticalSectionContended+0x1c4
ntdll!RtlEnterCriticalSection+0x42
msvcr110!freefls+0xde
ntdll!RtlpFlsDataCleanup+0x121
ntdll!LdrShutdownThread+0x48
ntdll!RtlExitUserThread+0x3e
KERNELBASE!FreeLibraryAndExitThread+0x4a
combase!CRpcThreadCache
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForAlertByThreadId+0x14
ntdll!RtlpWaitOnAddressWithTimeout+0x81
ntdll!RtlpWaitOnAddress+0xae
ntdll!RtlpWaitOnCriticalSection+0xfd
ntdll!RtlpEnterCriticalSectionContended+0x1c4
ntdll!RtlEnterCriticalSection+0x42
msvcr110!freefls+0xde
ntdll!RtlpFlsDataCleanup+0x121
ntdll!LdrShutdownThread+0x48
ntdll!RtlExitUserThread+0x3e
ntdll!TppWorkerThread+0xc18
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForAlertByThreadId+0x14
ntdll!RtlpWaitOnAddressWithTimeout+0x81
ntdll!RtlpWaitOnAddress+0xae
ntdll!RtlpWaitOnCriticalSection+0xfd
ntdll!RtlpEnterCriticalSectionContended+0x1c4
ntdll!RtlEnterCriticalSection+0x42
msvcr110!freefls+0xde
ntdll!RtlpFlsDataCleanup+0x121
ntdll!LdrShutdownThread+0x48
ntdll!RtlExitUserThread+0x3e
ntdll!TppWorkerThread+0xc18
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForSingleObject+0x14
KERNELBASE!WaitForSingleObjectEx+0x8e
nvoglv64!DrvValidateVersion+0x7d8a
nvoglv64+0x7b299d
nvoglv64+0x7b2658
nvoglv64!DrvValidateVersion+0xa257
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForMultipleObjects+0x14
KERNELBASE!WaitForMultipleObjectsEx+0xf0
KERNELBASE!WaitForMultipleObjects+0xe
nvoglv64!DrvPresentBuffers+0x1f9f6
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForMultipleObjects+0x14
winmm!timeThread+0x91
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForSingleObject+0x14
KERNELBASE!WaitForSingleObjectEx+0x8e
tsprint!CAPCThread
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForSingleObject+0x14
KERNELBASE!WaitForSingleObjectEx+0x8e
nvoglv64!DrvValidateVersion+0x7d8a
nvoglv64!DrvPresentBuffers+0x1bfe6a
nvoglv64!DrvValidateVersion+0xa257
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21
Call Site
ntdll!NtWaitForAlertByThreadId+0x14
ntdll!RtlAcquireSRWLockExclusive+0x165
ntdll!RtlpCallVectoredHandlers+0x87
ntdll!RtlDispatchException+0x66
ntdll!KiUserExceptionDispatch+0x2e (TrapFrame # 0000007f`edeff3a8)
msvcr110!_addlocaleref+0x71
msvcr110!initptd+0xac
msvcr110!CrtEndBoot+0x140
ntdll!LdrpCallInitRoutine+0x61
ntdll!LdrpInitializeThread+0x167
ntdll!LdrpInitialize+0x408
ntdll!LdrpInitialize+0x3b
ntdll!LdrInitializeThunk+0xe
Call Site
ntdll!NtWaitForSingleObject+0x14
ntdll!LdrpDrainWorkQueue+0x15e
ntdll!LdrpInitializeThread+0x8b
ntdll!LdrpInitialize+0x408
ntdll!LdrpInitialize+0x3b
ntdll!LdrInitializeThunk+0xe
Call Site
ntdll!NtWaitForSingleObject+0x14
ntdll!LdrpDrainWorkQueue+0x15e
ntdll!LdrpInitializeThread+0x8b
ntdll!LdrpInitialize+0x408
ntdll!LdrpInitialize+0x3b
ntdll!LdrInitializeThunk+0xe

Related

Backup Sharepoint Online with Azure functions

Is there a way to generate a sharepoint backup online using azure functions?
I have already authenticated the tenant using managed identity
The idea would be to download all the files in the documents and upload them to an azure storage account
I used this code but I get an error:
using namespace System.Net
param($Request, $TriggerMetadata)
$TenantSiteURL = "https://tenant.sharepoint.com"
$SiteRelativeURL = "/sites/BackupSource"
$LibraryName = "Documenti Condivisi"
$DownloadPath ="\Temp\Docs"
#Connect-PnPOnline -ManagedIdentity
Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentity
Write-Warning "Connesso"
#Set-Location -Path SPO:\$SiteRelativeURL
Get-PnPMicrosoft365Group
Push-OutputBinding -Name Response -Value ([HttpResponseContext]#{
StatusCode = [HttpStatusCode]::OK
})
2022-01-03T16:58:32.983 [Information] Executing 'Functions.HttpTrigger1' (Reason='This function was programmatically called via the host APIs.', Id=09c1fe95-6b6e-4e85-8c8f-815e37e99d04)
2022-01-03T16:58:40.915 [Information] OUTPUT:
2022-01-03T16:58:41.541 [Information] OUTPUT: Account SubscriptionName TenantId Environment
2022-01-03T16:58:41.542 [Information] OUTPUT: ------- ---------------- -------- -----------
2022-01-03T16:58:41.549 [Information] OUTPUT: MSI#50342 --- AzureCloud
2022-01-03T16:58:41.549 [Information] OUTPUT:
2022-01-03T16:58:43.530 [Error] ERROR: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.Exception :Type : System.Management.Automation.ParameterBindingExceptionMessage : Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.ErrorId : AmbiguousParameterSetLine : 13Offset : 1CommandInvocation :MyCommand : Connect-PnPOnlineBoundParameters :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys : …Values : …SyncRoot : …ScriptLineNumber : 13OffsetInLine : 1HistoryId : 1ScriptName : C:\home\site\wwwroot\HttpTrigger1\run.ps1Line : Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentityPositionMessage : At C:\home\site\wwwroot\HttpTrigger1\run.ps1:13 char:1+ Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentity+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PSScriptRoot : C:\home\site\wwwroot\HttpTrigger1PSCommandPath : C:\home\site\wwwroot\HttpTrigger1\run.ps1InvocationName : Connect-PnPOnlinePipelineLength : 1PipelinePosition : 1CommandOrigin : InternalErrorRecord :Exception :Type : System.Management.Automation.ParentContainsErrorRecordExceptionMessage : Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.HResult : -2146233087CategoryInfo : InvalidArgument: (:) [Connect-PnPOnline], ParentContainsErrorRecordExceptionFullyQualifiedErrorId : AmbiguousParameterSet,PnP.PowerShell.Commands.Base.ConnectOnlineInvocationInfo :MyCommand : Connect-PnPOnlineScriptLineNumber : 13OffsetInLine : 1HistoryId : 1ScriptName : C:\home\site\wwwroot\HttpTrigger1\run.ps1Line : Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentityPositionMessage : At C:\home\site\wwwroot\HttpTrigger1\run.ps1:13 char:1+ Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentity+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PSScriptRoot : C:\home\site\wwwroot\HttpTrigger1PSCommandPath : C:\home\site\wwwroot\HttpTrigger1\run.ps1CommandOrigin : InternalScriptStackTrace : at <ScriptBlock>, C:\home\site\wwwroot\HttpTrigger1\run.ps1: line 13TargetSite :Name : ThrowAmbiguousParameterSetExceptionDeclaringType : System.Management.Automation.CmdletParameterBinderController, System.Management.Automation, Version=7.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35MemberType : MethodModule : System.Management.Automation.dllStackTrace :at System.Management.Automation.CmdletParameterBinderController.ThrowAmbiguousParameterSetException(UInt32 parameterSetFlags, MergedCommandParameterMetadata bindableParameters)at System.Management.Automation.CmdletParameterBinderController.ValidateParameterSets(Boolean prePipelineInput, Boolean setDefault)at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 arguments)at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)at System.Management.Automation.CommandProcessor.BindCommandLineParameters()at System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)--- End of stack trace from previous location where exception was thrown ---at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)Data : System.Collections.ListDictionaryInternalSource : System.Management.AutomationHResult : -2146233087CategoryInfo : InvalidArgument: (:) [Connect-PnPOnline], ParameterBindingExceptionFullyQualifiedErrorId : AmbiguousParameterSet,PnP.PowerShell.Commands.Base.ConnectOnlineInvocationInfo :MyCommand : Connect-PnPOnlineScriptLineNumber : 13OffsetInLine : 1HistoryId : 1ScriptName : C:\home\site\wwwroot\HttpTrigger1\run.ps1Line : Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentityPositionMessage : At C:\home\site\wwwroot\HttpTrigger1\run.ps1:13 char:1+ Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentity+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PSScriptRoot : C:\home\site\wwwroot\HttpTrigger1PSCommandPath : C:\home\site\wwwroot\HttpTrigger1\run.ps1CommandOrigin : InternalScriptStackTrace : at <ScriptBlock>, C:\home\site\wwwroot\HttpTrigger1\run.ps1: line 13Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException : Result: ERROR: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.Exception :Type : System.Management.Automation.ParameterBindingExceptionMessage : Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.ErrorId : AmbiguousParameterSetLine : 13Offset : 1CommandInvocation :MyCommand : Connect-PnPOnlineBoundParameters :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys :Length : 3Length : 15Values :Length : 30IsPresent : TrueSyncRoot :Comparer : System.OrdinalIgnoreCaseComparerCount : 2Keys : …Values : …SyncRoot : …ScriptLineNumber : 13OffsetInLine : 1HistoryId : 1ScriptName : C:\home\site\wwwroot\HttpTrigger1\run.ps1Line : Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentityPositionMessage : At C:\home\site\wwwroot\HttpTrigger1\run.ps1:13 char:1+ Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentity+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PSScriptRoot : C:\home\site\wwwroot\HttpTrigger1PSCommandPath : C:\home\site\wwwroot\HttpTrigger1\run.ps1InvocationName : Connect-PnPOnlinePipelineLength : 1PipelinePosition : 1CommandOrigin : InternalErrorRecord :Exception :Type : System.Management.Automation.ParentContainsErrorRecordExceptionMessage : Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.HResult : -2146233087CategoryInfo : InvalidArgument: (:) [Connect-PnPOnline], ParentContainsErrorRecordExceptionFullyQualifiedErrorId : AmbiguousParameterSet,PnP.PowerShell.Commands.Base.ConnectOnlineInvocationInfo :MyCommand : Connect-PnPOnlineScriptLineNumber : 13OffsetInLine : 1HistoryId : 1ScriptName : C:\home\site\wwwroot\HttpTrigger1\run.ps1Line : Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentityPositionMessage : At C:\home\site\wwwroot\HttpTrigger1\run.ps1:13 char:1+ Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentity+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PSScriptRoot : C:\home\site\wwwroot\HttpTrigger1PSCommandPath : C:\home\site\wwwroot\HttpTrigger1\run.ps1CommandOrigin : InternalScriptStackTrace : at <ScriptBlock>, C:\home\site\wwwroot\HttpTrigger1\run.ps1: line 13TargetSite :Name : ThrowAmbiguousParameterSetExceptionDeclaringType : System.Management.Automation.CmdletParameterBinderController, System.Management.Automation, Version=7.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35MemberType : MethodModule : System.Management.Automation.dllStackTrace :at System.Management.Automation.CmdletParameterBinderController.ThrowAmbiguousParameterSetException(UInt32 parameterSetFlags, MergedCommandParameterMetadata bindableParameters)at System.Management.Automation.CmdletParameterBinderController.ValidateParameterSets(Boolean prePipelineInput, Boolean setDefault)at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 arguments)at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)at System.Management.Automation.CommandProcessor.BindCommandLineParameters()at System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)--- End of stack trace from previous location where exception was thrown ---at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)Data : System.Collections.ListDictionaryInternalSource : System.Management.AutomationHResult : -2146233087CategoryInfo : InvalidArgument: (:) [Connect-PnPOnline], ParameterBindingExceptionFullyQualifiedErrorId : AmbiguousParameterSet,PnP.PowerShell.Commands.Base.ConnectOnlineInvocationInfo :MyCommand : Connect-PnPOnlineScriptLineNumber : 13OffsetInLine : 1HistoryId : 1ScriptName : C:\home\site\wwwroot\HttpTrigger1\run.ps1Line : Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentityPositionMessage : At C:\home\site\wwwroot\HttpTrigger1\run.ps1:13 char:1+ Connect-PnPOnline -Url $TenantSiteURL -ManagedIdentity+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PSScriptRoot : C:\home\site\wwwroot\HttpTrigger1PSCommandPath : C:\home\site\wwwroot\HttpTrigger1\run.ps1CommandOrigin : InternalScriptStackTrace : at <ScriptBlock>, C:\home\site\wwwroot\HttpTrigger1\run.ps1: line 13Exception: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.Stack: at System.Management.Automation.CmdletParameterBinderController.ThrowAmbiguousParameterSetException(UInt32 parameterSetFlags, MergedCommandParameterMetadata bindableParameters)at System.Management.Automation.CmdletParameterBinderController.ValidateParameterSets(Boolean prePipelineInput, Boolean setDefault)at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 arguments)at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)at System.Management.Automation.CommandProcessor.BindCommandLineParameters()at System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)--- End of stack trace from previous location where exception was thrown ---at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2022-01-03T16:58:43.540 [Warning] WARNING: Connesso
2022-01-03T16:58:43.657 [Error] ERROR: There is currently no connection yet. Use Connect-PnPOnline to connect.
There is no PowerShell command available for backup and restore in SharePoint Online.
Use the recycle bin and version history.
Use a 3rd party tool for backup and restore like SharePoint farm to Azure with MABS .
Manually backup sites, lists, and libraries (Information
about manual migration of SharePoint Online
content
Create a Microsoft 365 support request (Restore options in
SharePoint Online)
Backup solutions for SharePoint online here
you can back up a SharePoint online Azure with MABS. Refer here

Using mutex to synchronize two kernel threads causes a system panic

I used the mutex to synchronize the two kernel threads. After running, panic occurred in the system and abnormal memory was found in mutex by kdump.
Here is a simplified code example, You can run it directly to reproduce the problem.
I changed the memory allocation method to use kmalloc instead of vmalloc, and then it worked, Who knows why?
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/kthread.h>
#include <linux/slab.h>
struct product {
struct list_head list;
struct mutex lock;
bool finish;
};
struct task_struct *task1;
struct task_struct *task2;
spinlock_t spin;
struct list_head products;
struct product *create_product(void)
{
struct product *p_prod;
p_prod = vmalloc(sizeof(struct product));
// p_prod = kmalloc(sizeof(struct product), GFP_KERNEL);
if(!p_prod)
return NULL;
INIT_LIST_HEAD(&p_prod->list);
mutex_init(&p_prod->lock);
p_prod->finish = false;
return p_prod;
}
void remove_product(struct product **pp_prod)
{
vfree(*pp_prod);
// kfree(*pp_prod);
*pp_prod = NULL;
}
int producer(void *data)
{
while(!kthread_should_stop())
{
struct product *p_prod = create_product();
if(!p_prod)
continue;
spin_lock(&spin);
list_add_tail(&p_prod->list, &products);
spin_unlock(&spin);
while (true)
{
mutex_lock(&p_prod->lock);
if(p_prod->finish)
{
mutex_unlock(&p_prod->lock);
schedule();
break;
}
mutex_unlock(&p_prod->lock);
}
remove_product(&p_prod);
}
do_exit(0);
}
int consumer(void *data)
{
while(!kthread_should_stop())
{
struct product *p_prod;
spin_lock(&spin);
if(list_empty(&products))
{
spin_unlock(&spin);
schedule();
continue;
}
p_prod = list_first_entry(&products, struct product, list);
list_del(&p_prod->list);
spin_unlock(&spin);
mutex_lock(&p_prod->lock);
p_prod->finish = true;
mutex_unlock(&p_prod->lock);
}
do_exit(0);
}
static int __init kdemo_init(void) {
printk(">>> demo driver begin!\n");
spin_lock_init(&spin);
INIT_LIST_HEAD(&products);
task1 = kthread_run(producer, NULL, "hdz-producer");
task2 = kthread_run(consumer, NULL, "hdz-consumer");
return 0;
}
static void __exit kdemo_exit(void) {
kthread_stop(task1);
kthread_stop(task2);
printk(">>> demo driver exit!\n");
}
module_init(kdemo_init);
module_exit(kdemo_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("xxxx#xxx.com");
MODULE_VERSION("1.0");
dmesg log and consumer stack
[ 176.599116] >>> demo driver begin!
[ 177.167659] BUG: unable to handle kernel NULL pointer dereference at 0000000000000fb0
[ 177.167695] IP: [<ffffffff9e0caa47>] wake_q_add+0x17/0x50
[ 177.167719] PGD 0
[ 177.167729] Oops: 0002 [#1] SMP
[ 177.167743] Modules linked in: kdemo(OE) mpt3sas mptctl mptbase nvmet_rdma nvmet nvme_rdma nvme_fabrics nvme nvme_core drbd(OE) dell_rbu kvdo(OE) uds(OE) bonding sha512_ssse3 sha512_generic qat_api(OE) usdm_drv(OE) intel_qat(OE) authenc uio ib_isert iscsi_target_mod ib_srpt target_core_mod ib_srp scsi_transport_srp scsi_tgt ib_ucm rpcrdma sunrpc rdma_ucm ib_umad ib_uverbs ib_iser rdma_cm ib_ipoib iw_cm libiscsi scsi_transport_iscsi ib_cm mlx5_ib ib_core intelcas(OE) inteldisk(OE) iTCO_wdt iTCO_vendor_support dell_smbios sparse_keymap dcdbas skx_edac intel_powerclamp coretemp intel_rapl iosf_mbi kvm irqbypass crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd sg joydev pcspkr ipmi_si i2c_i801 lpc_ich shpchp ipmi_devintf ipmi_msghandler mei_me acpi_power_meter
[ 177.168071] mei acpi_pad wmi nfit libnvdimm dm_multipath binfmt_misc ip_tables xfs libcrc32c mgag200 drm_kms_helper crc32c_intel syscopyarea sysfillrect sysimgblt mlx5_core fb_sys_fops ttm ixgbe drm igb mlxfw devlink mdio ptp i2c_algo_bit pps_core i2c_core dca sr_mod cdrom sd_mod crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common ahci libahci libata mpt2sas raid_class scsi_transport_sas megaraid_sas dm_mirror dm_region_hash dm_log dm_mod
[ 177.168263] CPU: 24 PID: 5412 Comm: hdz-consumer Kdump: loaded Tainted: G OE ------------ 3.10.0-862.el7.x86_64 #1
[ 177.168297] Hardware name: Dell Inc. PowerEdge R740/08D89F, BIOS 2.10.2 02/24/2021
[ 177.168320] task: ffff93db22af3f40 ti: ffff93dc89354000 task.ti: ffff93dc89354000
[ 177.168344] RIP: 0010:[<ffffffff9e0caa47>] [<ffffffff9e0caa47>] wake_q_add+0x17/0x50
[ 177.168372] RSP: 0018:ffff93dc89357e48 EFLAGS: 00010246
[ 177.168389] RAX: 0000000000000000 RBX: ffffbe2ce6533018 RCX: 0000000000000fb0
[ 177.168410] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff93dc89357e58
[ 177.168432] RBP: ffff93dc89357e48 R08: ffffbe2ce6533000 R09: 0000000000000000
[ 177.168453] R10: 0000000000000001 R11: 0000000000000001 R12: ffffbe2ce6533014
[ 177.168475] R13: ffff93dc89357e58 R14: 0000000000000000 R15: 0000000000000000
[ 177.168497] FS: 0000000000000000(0000) GS:ffff93dca9400000(0000) knlGS:0000000000000000
[ 177.168540] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 177.168560] CR2: 0000000000000fb0 CR3: 00000002b7a0e000 CR4: 00000000007607e0
[ 177.168583] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 177.168606] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 177.168629] PKRU: 00000000
[ 177.168640] Call Trace:
[ 177.168656] [<ffffffff9e711b2e>] __mutex_unlock_slowpath+0x5e/0x90
[ 177.168679] [<ffffffff9e710fab>] mutex_unlock+0x1b/0x20
[ 177.168699] [<ffffffffc0637064>] consumer+0x64/0x90 [kdemo]
[ 177.168723] [<ffffffffc0637000>] ? 0xffffffffc0636fff
[ 177.168746] [<ffffffff9e0bae31>] kthread+0xd1/0xe0
[ 177.168765] [<ffffffff9e0bad60>] ? insert_kthread_work+0x40/0x40
[ 177.168788] [<ffffffff9e71f61d>] ret_from_fork_nospec_begin+0x7/0x21
[ 177.168811] [<ffffffff9e0bad60>] ? insert_kthread_work+0x40/0x40
[ 177.168831] Code: 09 00 00 31 c9 31 d2 e8 18 41 ff ff eb e4 66 0f 1f 44 00 00 0f 1f 44 00 00 55 48 8d 8e b0 0f 00 00 31 c0 ba 01 00 00 00 48 89 e5 <f0> 48 0f b1 96 b0 0f 00 00 48 85 c0 74 0b 5d c3 66 0f 1f 84 00
[ 177.168996] RIP [<ffffffff9e0caa47>] wake_q_add+0x17/0x50
[ 177.169017] RSP <ffff93dc89357e48>
[ 177.169959] CR2: 0000000000000fb0
producer stask
crash> bt 5411
PID: 5411 TASK: ffff93db22af4f10 CPU: 1 COMMAND: "hdz-producer"
bt: page excluded: kernel virtual address: ffffffffffffffff type: "cpu_online_map"
#0 [ffff93dca8e48e48] crash_nmi_callback at ffffffff9e0533b7
#1 [ffff93dca8e48e58] nmi_handle at ffffffff9e71790c
#2 [ffff93dca8e48eb0] do_nmi at ffffffff9e717b2d
#3 [ffff93dca8e48ef0] end_repeat_nmi at ffffffff9e716d79
#4 [ffff93dca8e48f28] __vmalloc_node_range at ffffffff9e1d7518
[exception RIP: mutex_unlock+20]
RIP: ffffffff9e710fa4 RSP: ffff93ddafd73e98 RFLAGS: 00000202
RAX: 0000000000000010 RBX: 0000000000000010 RCX: 0000000000000202
RDX: ffff93ddafd73e98 RSI: 0000000000000018 RDI: 0000000000000001
RBP: ffffffff9e710fa4 R8: ffffffff9e710fa4 R9: 0000000000000018
R10: ffff93ddafd73e98 R11: 0000000000000202 R12: ffffffffffffffff
R13: ffffbe2ce6535010 R14: ffffffffc0639240 R15: 0000000000000000
ORIG_RAX: ffffffffc0639240 CS: 0010 SS: 0018
--- <(unknown) exception stack> ---
#5 [ffff93ddafd73e98] mutex_unlock at ffffffff9e710fa4
#6 [ffff93ddafd73ea0] producer at ffffffffc0637145 [kdemo]
#7 [ffff93ddafd73ec8] kthread at ffffffff9e0bae31
#8 [ffff93ddafd73f50] ret_from_fork_nospec_begin at ffffffff9e71f61d

Communicate Kernel module and user space (Driver)

I am working with a SoC FPGA. In the past I have been testing some peripherals through polling, and now I want to work with interrupts.
I have followed some tutorials and now I have a driver which can detect interrupts on the IRQ 72. The problem is that I want to reply to that IRQ and I have been trying different things but none seems to work.
The last attempt was about a C program which would do the logic part, I mean, it will perform some action when the Kernel tells it an interrupt is present. This program is writting it's PID on a file, I want the kernel to read the PID to send the program a SIGUSR1 signal, and then the program will do smth.
Kernel module:
#include <linux/module.h> // Needed by all modules
#include <linux/kernel.h> // Needed for KERN_INFO
#include <linux/fs.h> // Needed by filp
#include <asm/uaccess.h> // Needed by segment descriptors
#include <linux/init.h> /*Needed for the macros*/
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/of.h>
#define DEVNAME "test_int"
static irq_handler_t __test_isr(int irq, void *dev_id, struct pt_regs *regs){
printk (KERN_INFO DEVNAME ": ISR\n");
return (irq_handler_t) IRQ_HANDLED;
}
static int __test_int_driver_probe(struct platform_device* pdev){
// Create variables
struct file *f;
char buf[128];
mm_segment_t fs;
int i;
// Init the buffer with 0
for(i=0;i<128;i++)
buf[i] = 0;
// PID file
// It is an inteer, so i guess 4Bytes would be better
f = filp_open("/home/root/modInt/miPID", O_RDONLY, 0);
if(f == NULL)
printk(KERN_ALERT "filp_open error!!.\n");
else{
// Get current segment descriptor
fs = get_fs();
// Set segment descriptor associated to kernel space
set_fs(get_ds());
// Read the file
f->f_op->read(f, buf, 128, &f->f_pos);
// Restore segment descriptor
set_fs(fs);
// See what we read from file
printk("El PID es buf:%s\n",buf);
}
filp_close(f,NULL);
int irq_num;
irq_num = platform_get_irq(pdev, 0);
printk(KERN_INFO DEVNAME ": La IRQ %d va a ser registrada!\n", irq_num);
return request_irq(irq_num, (irq_handler_t) __test_isr, 0, DEVNAME, NULL);
}
static int __test_int_driver_remove (struct platform_device *pdev){
int irq_num;
irq_num = platform_get_irq (pdev, 0);
printk(KERN_INFO "test_int: Abandonando la captura de la IRQ %d !\n", irq_num);
free_irq(irq_num, NULL);
return 0;
}
static const struct of_device_id __test_int_driver_id[] = {
{.compatible = "altr , socfpga-mysoftip"},
{}
};
static struct platform_driver __test_int_driver = {
.driver= {
.name = DEVNAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr (__test_int_driver_id),
},
.probe = __test_int_driver_probe,
.remove = __test_int_driver_remove
};
module_platform_driver (__test_int_driver);
MODULE_LICENSE("GPL");
Program:
#include<stdio.h>
#include<signal.h>
#include<unistd.h>
void sig_handler(int signo)
{
if (signo == SIGUSR1)
printf("Senal SIGUSR1 recibida\n");
}
int main(void){
int pid=getpid();
FILE *f = fopen("miPID", "w");
if (f == NULL){
printf("Error opening file!\n");
exit(1);
}
fprintf(f, "%d", pid);
fclose(f);
printf("My process ID : %d\n", pid);
if (signal(SIGUSR1, sig_handler) == SIG_ERR)
printf("\nNo se ha podido capturar SIGINT\n");
// A long long wait so that we can easily issue a signal to this process
while(1)
sleep(1);
return 0;
}
Compiles well under ARM arch. Errors when instantiating de module:
root#socfpga:~/modInt# insmod sigGen.ko
[ 63.121696] sigGen: loading out-of-tree module taints kernel.
[ 63.129185] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 63.138088] pgd = ee7b0000
[ 63.140801] [00000000] *pgd=3fcb2831
[ 63.144381] Internal error: Oops: 80000007 [#1] PREEMPT SMP ARM
[ 63.144385] Modules linked in: sigGen(O+)
[ 63.144399] CPU: 1 PID: 1350 Comm: insmod Tainted: G O 4.14.73-rt45-ltsi #2
[ 63.144401] Hardware name: Altera SOCFPGA
[ 63.144406] task: ee9c3f00 task.stack: ee618000
[ 63.144411] PC is at 0x0
[ 63.144423] LR is at __test_int_driver_probe+0x80/0x108 [sigGen]
[ 63.144427] pc : [<00000000>] lr : [<bf0000ec>] psr: a0070013
[ 63.144430] sp : ee619c20 ip : c0814080 fp : ee619ccc
[ 63.144433] r10: 00000000 r9 : 00000003 r8 : bf000000
[ 63.144437] r7 : ef279600 r6 : ee4c6000 r5 : ffffe000 r4 : 00000000
[ 63.144441] r3 : ee4c6058 r2 : 00000080 r1 : ee619c28 r0 : ee4c6000
[ 63.144446] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 63.144450] Control: 10c5387d Table: 2e7b004a DAC: 00000051
[ 63.144454] Process insmod (pid: 1350, stack limit = 0xee618218)
[ 63.144457] Stack: (0xee619c20 to 0xee61a000)
[ 63.144465] 9c20: 00000000 c04c3280 00000000 00000000 00000000 00000000 00000000 00000000
[ 63.144472] 9c40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 63.144478] 9c60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 63.144484] 9c80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 63.144491] 9ca0: 00000000 00000000 ef279610 ef279610 ef279610 bf002014 fffffdfb bf002014
[ 63.144499] 9cc0: ee619cec ee619cd0 c050ffb8 bf000078 ef279610 c0cabf84 c0cabf9c 00000000
[ 63.144506] 9ce0: ee619d1c ee619cf0 c050def8 c050ff68 00000000 ef279610 bf002014 ef279644
[ 63.144512] 9d00: 00000000 bf0020c8 11b4365c bf002080 ee619d3c ee619d20 c050e084 c050dcf4
[ 63.144519] 9d20: 00000000 bf002014 c050dfc8 00000000 ee619d64 ee619d40 c050bf34 c050dfd4
[ 63.144526] 9d40: ef02b06c ef28f248 c07afb2c bf002014 ef26a380 c0c56658 ee619d74 ee619d68
[ 63.144533] 9d60: c050d86c c050bec4 ee619d9c ee619d78 c050d338 c050d84c bf0012c8 ee619d88
[ 63.144540] 9d80: bf002014 bf005000 00000000 00000001 ee619db4 ee619da0 c050edb0 c050d198
[ 63.144547] 9da0: bf002080 bf005000 ee619dc4 ee619db8 c050ff08 c050ed34 ee619dd4 ee619dc8
[ 63.144554] 9dc0: bf005020 c050fec4 ee619e44 ee619dd8 c0101870 bf00500c ee618000 ef001e40
[ 63.144561] 9de0: ee619df8 ee618038 ee619e34 ee619df8 c025d0cc c025bb1c ee619e44 ee619e08
[ 63.144569] 9e00: c025bb1c c0257780 00000001 0000001f ee4037c0 ee618008 00000001 bf002080
[ 63.144575] 9e20: 00000001 bf002080 00000001 ee72fbc0 bf0020c8 11b4365c ee619e6c ee619e48
[ 63.144582] 9e40: c01accac c010182c ee619e6c ee619e58 c024c6a8 ee619f40 00000001 ee4bc9c0
[ 63.144590] 9e60: ee619f1c ee619e70 c01aba50 c01acc44 bf00208c 00007fff bf002080 c01a8a04
[ 63.144596] 9e80: bf002264 00000000 c0947650 bf0021b0 bf002180 00000000 c0803938 ee619f40
[ 63.144603] 9ea0: ee619eec ee619eb0 c026b078 c0264e58 00000001 00000000 00000000 00000000
[ 63.144609] 9ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 63.144615] 9ee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 00000003 000188e1
[ 63.144622] 9f00: 0000017b c01080c4 ee618000 00000000 ee619fa4 ee619f20 c01ac274 c01a9c24
[ 63.144629] 9f20: 7fffffff 00000000 00000003 00000000 00000000 f0b1e000 0001ef00 00000000
[ 63.144636] 9f40: f0b1e412 f0b1e000 0001ef00 f0b3c7a8 f0b3c5d4 f0b35a50 00003000 00003080
[ 63.144643] 9f60: 00000000 00000000 00000000 000016fc 0000002c 0000002d 00000018 00000000
[ 63.144649] 9f80: 00000012 00000000 00000000 00000000 00000000 beb4cd88 00000000 ee619fa8
[ 63.144656] 9fa0: c0107ee0 c01ac1e4 00000000 00000000 00000003 000188e1 00000000 00000002
[ 63.144662] 9fc0: 00000000 00000000 beb4cd88 0000017b 00000000 00000000 b6f67000 00000000
[ 63.144669] 9fe0: beb4cbc0 beb4cbb0 00013fef b6eb7990 60070010 00000003 00000000 00000000
[ 63.144695] [<bf0000ec>] (__test_int_driver_probe [sigGen]) from [<c050ffb8>] (platform_drv_probe+0x5c/0xc0)
[ 63.144708] [<c050ffb8>] (platform_drv_probe) from [<c050def8>] (driver_probe_device+0x210/0x2e0)
[ 63.144718] [<c050def8>] (driver_probe_device) from [<c050e084>] (__driver_attach+0xbc/0xc0)
[ 63.144731] [<c050e084>] (__driver_attach) from [<c050bf34>] (bus_for_each_dev+0x7c/0xb0)
[ 63.144741] [<c050bf34>] (bus_for_each_dev) from [<c050d86c>] (driver_attach+0x2c/0x30)
[ 63.144749] [<c050d86c>] (driver_attach) from [<c050d338>] (bus_add_driver+0x1ac/0x224)
[ 63.144757] [<c050d338>] (bus_add_driver) from [<c050edb0>] (driver_register+0x88/0x108)
[ 63.144766] [<c050edb0>] (driver_register) from [<c050ff08>] (__platform_driver_register+0x50/0x58)
[ 63.144778] [<c050ff08>] (__platform_driver_register) from [<bf005020>] (__test_int_driver_init+0x20/0x1000 [sigGen])
[ 63.144792] [<bf005020>] (__test_int_driver_init [sigGen]) from [<c0101870>] (do_one_initcall+0x50/0x178)
[ 63.144805] [<c0101870>] (do_one_initcall) from [<c01accac>] (do_init_module+0x74/0x20c)
[ 63.144815] [<c01accac>] (do_init_module) from [<c01aba50>] (load_module+0x1e38/0x2468)
[ 63.144824] [<c01aba50>] (load_module) from [<c01ac274>] (SyS_finit_module+0x9c/0xac)
[ 63.144834] [<c01ac274>] (SyS_finit_module) from [<c0107ee0>] (ret_fast_syscall+0x0/0x5c)
[ 63.144843] Code: bad PC value
[ 63.487534] dw_mmc ff704000.dwmmc0: Unexpected interrupt latency
[ 63.613936] ---[ end trace 0000000000000002 ]---
Segmentation fault
root#socfpga:~/modInt#
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144381] Internal error: Oops: 80000007 [#1] PREEMPT SMP ARM
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144454] Process insmod (pid: 1350, stack limit = 0xee618218)
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144457] Stack: (0xee619c20 to 0xee61a000)
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144465] 9c20: 00000000 c04c3280 00000000 00000000 00000000 00000000 00000000 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144472] 9c40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144478] 9c60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144484] 9c80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144491] 9ca0: 00000000 00000000 ef279610 ef279610 ef279610 bf002014 fffffdfb bf002014
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144499] 9cc0: ee619cec ee619cd0 c050ffb8 bf000078 ef279610 c0cabf84 c0cabf9c 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144506] 9ce0: ee619d1c ee619cf0 c050def8 c050ff68 00000000 ef279610 bf002014 ef279644
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144512] 9d00: 00000000 bf0020c8 11b4365c bf002080 ee619d3c ee619d20 c050e084 c050dcf4
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144519] 9d20: 00000000 bf002014 c050dfc8 00000000 ee619d64 ee619d40 c050bf34 c050dfd4
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144526] 9d40: ef02b06c ef28f248 c07afb2c bf002014 ef26a380 c0c56658 ee619d74 ee619d68
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144533] 9d60: c050d86c c050bec4 ee619d9c ee619d78 c050d338 c050d84c bf0012c8 ee619d88
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144540] 9d80: bf002014 bf005000 00000000 00000001 ee619db4 ee619da0 c050edb0 c050d198
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144547] 9da0: bf002080 bf005000 ee619dc4 ee619db8 c050ff08 c050ed34 ee619dd4 ee619dc8
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144554] 9dc0: bf005020 c050fec4 ee619e44 ee619dd8 c0101870 bf00500c ee618000 ef001e40
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144561] 9de0: ee619df8 ee618038 ee619e34 ee619df8 c025d0cc c025bb1c ee619e44 ee619e08
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144569] 9e00: c025bb1c c0257780 00000001 0000001f ee4037c0 ee618008 00000001 bf002080
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144575] 9e20: 00000001 bf002080 00000001 ee72fbc0 bf0020c8 11b4365c ee619e6c ee619e48
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144582] 9e40: c01accac c010182c ee619e6c ee619e58 c024c6a8 ee619f40 00000001 ee4bc9c0
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144590] 9e60: ee619f1c ee619e70 c01aba50 c01acc44 bf00208c 00007fff bf002080 c01a8a04
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144596] 9e80: bf002264 00000000 c0947650 bf0021b0 bf002180 00000000 c0803938 ee619f40
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144603] 9ea0: ee619eec ee619eb0 c026b078 c0264e58 00000001 00000000 00000000 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144609] 9ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144615] 9ee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 00000003 000188e1
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144622] 9f00: 0000017b c01080c4 ee618000 00000000 ee619fa4 ee619f20 c01ac274 c01a9c24
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144629] 9f20: 7fffffff 00000000 00000003 00000000 00000000 f0b1e000 0001ef00 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144636] 9f40: f0b1e412 f0b1e000 0001ef00 f0b3c7a8 f0b3c5d4 f0b35a50 00003000 00003080
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144643] 9f60: 00000000 00000000 00000000 000016fc 0000002c 0000002d 00000018 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144649] 9f80: 00000012 00000000 00000000 00000000 00000000 beb4cd88 00000000 ee619fa8
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144656] 9fa0: c0107ee0 c01ac1e4 00000000 00000000 00000003 000188e1 00000000 00000002
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144662] 9fc0: 00000000 00000000 beb4cd88 0000017b 00000000 00000000 b6f67000 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144669] 9fe0: beb4cbc0 beb4cbb0 00013fef b6eb7990 60070010 00000003 00000000 00000000
Broadcast message from systemd-journald#socfpga (Thu 2019-02-14 04:16:01 UTC):
kernel[1283]: [ 63.144843] Code: bad PC value
I am sure there are better ways and I would like to hear them. For example, I also tried to implement the logic on the IRQ handler, but... failed.
EDIT:
I changed a little bit my code as #suren99 suggested, I also added some printk to debug, and now i get this:
root#socfpga:~/leer# insmod leer.ko
[ 527.785020] Opened the file successfully
[ 527.788953] Value of ret is: -22
[ 527.792438] The PID is: ▒▒▒8A▒▒�#
[ 527.792476] test_int: La IRQ 41 va a ser registrada!
I must add that...
ret = kernel_read(fp, offset, buf, 512);
Why this is "-22"?
printk("The PID is: %s", buf);
If I printk this, then the answer is this: ▒▒▒8A▒▒�#
printk("The PID is: %s", *buf);
And if put this, then the pointer returns "null".
What am I doing wrong?
First of all, you shouldn't check the return value of filp_open with NULL. You should check if the call has succeeded by using IS_ERR()
if (IS_ERR(f)) {
pr_err("Error opening file")
}
I believe the file_open has returned an error pointer and you are trying to dereference it
f->f_op->read(f, buf, 128, &f->f_pos);
Alternatively, you can use addr2line to find which line has caused the kernel panic

Java card weird response to long AID and Short AID applets

I create a package that contains 22 equal applets.(The applets are equal in program and different in AID.)
When I set the package AID and applet's AIDs as below, everything is OK. (I can install it and I can see it in the response of gp -list command)
Package AID = 0102030405
App1 AID = 010203040501
App2 AID = 010203040502
App3 AID = 010203040503
App4 AID = 010203040504
App5 AID = 010203040505
App6 AID = 010203040506
App7 AID = 010203040507
App8 AID = 010203040508
App9 AID = 010203040509
App10 AID = 01020304050a
App11 AID = 01020304050b
App12 AID = 01020304050c
App13 AID = 01020304050d
App14 AID = 01020304050e
App15 AID = 01020304050f
App16 AID = 010203040510
App17 AID = 010203040511
App18 AID = 010203040512
App19 AID = 010203040513
App20 AID = 010203040514
App21 AID = 010203040515
App22 AID = 010203040516
Look :
gp: gp -list
AID: A000000151000000 (|....Q...|)
ISD OP_READY: Security Domain, Card lock, Card terminate, Default selected,
CVM (PIN) management
AID: A0000001515350 (|....QSP|)
ExM LOADED: (none)
A000000151535041 (|....QSPA|)
gp: gp -install e:\PackageWithShortAIDs.cap
gp: gp -list
AID: A000000151000000 (|....Q...|)
ISD OP_READY: Security Domain, Card lock, Card terminate, Default selected,
CVM (PIN) management
AID: 010203040507 (|......|)
App SELECTABLE: (none)
AID: A0000001515350 (|....QSP|)
ExM LOADED: (none)
A000000151535041 (|....QSPA|)
AID: 0102030405 (|.....|)
ExM LOADED: (none)
010203040507 (|......|)
010203040506 (|......|)
010203040505 (|......|)
010203040504 (|......|)
010203040503 (|......|)
010203040502 (|......|)
010203040501 (|......|)
010203040513 (|......|)
010203040512 (|......|)
010203040511 (|......|)
010203040510 (|......|)
01020304050F (|......|)
01020304050E (|......|)
01020304050D (|......|)
01020304050C (|......|)
01020304050B (|......|)
01020304050A (|......|)
010203040516 (|......|)
010203040515 (|......|)
010203040514 (|......|)
010203040509 (|......|)
010203040508 (|......|)
gp:
Now,I change I change the AID of Applets as below (everything else is the same as for before) :
Package AID = 0102030405
App1 AID = 0102030405060708090001
App2 AID = 0102030405060708090002
App3 AID = 0102030405060708090003
App4 AID = 0102030405060708090004
App5 AID = 0102030405060708090005
App6 AID = 0102030405060708090006
App7 AID = 0102030405060708090007
App8 AID = 0102030405060708090008
App9 AID = 0102030405060708090009
App10 AID = 010203040506070809000a
App11 AID = 010203040506070809000b
App12 AID = 010203040506070809000c
App13 AID = 010203040506070809000d
App14 AID = 010203040506070809000e
App15 AID = 010203040506070809000f
App16 AID = 0102030405060708090010
App17 AID = 0102030405060708090011
App18 AID = 0102030405060708090012
App19 AID = 0102030405060708090013
App20 AID = 0102030405060708090014
App21 AID = 0102030405060708090015
App22 AID = 0102030405060708090016
In this case, I can load and install it. But I can't list my installed applets anymore!
gp: gp -list
AID: A000000151000000 (|....Q...|)
ISD OP_READY: Security Domain, Card lock, Card terminate, Default selected,
CVM (PIN) management
AID: A0000001515350 (|....QSP|)
ExM LOADED: (none)
A000000151535041 (|....QSPA|)
gp: gp -install e:\PackageWithLongAIDs.cap
gp: gp -list
javax.smartcardio.CardException: Get Status failed, SW: 6A88
at pro.javacard.gp.GlobalPlatform.getConcatenatedStatus(GlobalPlatform.j
ava:1020)
at pro.javacard.gp.GlobalPlatform.getStatus(GlobalPlatform.java:1070)
at pro.javacard.gp.GlobalPlatform.getRegistry(GlobalPlatform.java:673)
at pro.javacard.gp.GPTool.main(GPTool.java:499)
Exception in thread "main" javax.smartcardio.CardException: Get Status failed, S
W: 6A88
at pro.javacard.gp.GlobalPlatform.getConcatenatedStatus(GlobalPlatform.j
ava:1020)
at pro.javacard.gp.GlobalPlatform.getStatus(GlobalPlatform.java:1070)
at pro.javacard.gp.GlobalPlatform.getRegistry(GlobalPlatform.java:673)
at pro.javacard.gp.GPTool.main(GPTool.java:499)
gp:
Why?!
Update :
Debug Mode - Short AIDs :
.
.
.
A>> T=1 (4+0008) 80500000 08 9F6EB47CB0E1F31F
A<< (0028+2) (70ms) 00004198001714974248FF0200BD548DC44808E7509B8AD3DEACC41F 900
0
Host challenge: 9F6EB47CB0E1F31F
Card challenge: 00BD548DC44808E7
Card reports SCP02 with version 255 keys
Master keys:
Version 0
ENC: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F
MAC: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F
KEK: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F
Sequnce counter: 00BD
Derived session keys:
Version 0
ENC: Ver:0 ID:0 Type:DES3 Len:16 Value:DAED14FD3E4D7E6DC2A87F618D5A9EAC
MAC: Ver:0 ID:0 Type:DES3 Len:16 Value:59AEDE4C2E3E891BB50AE82028E44BF0
KEK: Ver:0 ID:0 Type:DES3 Len:16 Value:4DD4DBE895A5CFC590D4B190BF0547AC
Verified card cryptogram: 509B8AD3DEACC41F
Calculated host cryptogram: 85D04425E8C0A4BA
A>> T=1 (4+0016) 84820100 10 85D04425E8C0A4BAB5F40665FC1D88EE
A<< (0000+2) (66ms) 9000
A>> T=1 (4+0010) 84F28000 0A 4F009E0E0DBD266DC260
A<< (0011+2) (46ms) 08A000000151000000019E 9000
A>> T=1 (4+0010) 84F24000 0A 4F0078DB90059DC6D376
A<< (0009+2) (44ms) 060102030405070700 9000
A>> T=1 (4+0010) 84F22000 0A 4F000EA20738A58D27B1
A<< (0018+2) (48ms) 07A000000151535001000501020304050100 9000
A>> T=1 (4+0010) 84F21000 0A 4F0006BC7C18D19E7BDB
A<< (0183+2) (101ms) 07A000000151535001000108A0000001515350410501020304050100160
60102030405070601020304050606010203040505060102030405040601020304050306010203040
50206010203040501060102030405130601020304051206010203040511060102030405100601020
304050F0601020304050E0601020304050D0601020304050C0601020304050B0601020304050A060
1020304051606010203040515060102030405140601020304050906010203040508 9000
AID: A000000151000000 (|....Q...|)
ISD OP_READY: Security Domain, Card lock, Card terminate, Default selected,
CVM (PIN) management
AID: 010203040507 (|......|)
App SELECTABLE: (none)
AID: A0000001515350 (|....QSP|)
ExM LOADED: (none)
A000000151535041 (|....QSPA|)
AID: 0102030405 (|.....|)
ExM LOADED: (none)
010203040507 (|......|)
010203040506 (|......|)
010203040505 (|......|)
010203040504 (|......|)
010203040503 (|......|)
010203040502 (|......|)
010203040501 (|......|)
010203040513 (|......|)
010203040512 (|......|)
010203040511 (|......|)
010203040510 (|......|)
01020304050F (|......|)
01020304050E (|......|)
01020304050D (|......|)
01020304050C (|......|)
01020304050B (|......|)
01020304050A (|......|)
010203040516 (|......|)
010203040515 (|......|)
010203040514 (|......|)
010203040509 (|......|)
010203040508 (|......|)
SCardEndTransaction()
SCardDisconnect("ACS CCID USB Reader 0", false)
gp:
Debug Mode - Long AIDs :
.
.
.
A>> T=1 (4+0008) 80500000 08 E81EAC2B833E5DCF
A<< (0028+2) (70ms) 00004198001714974248FF0200B93785186688F163331EF41FA02CB8 900
0
Host challenge: E81EAC2B833E5DCF
Card challenge: 00B93785186688F1
Card reports SCP02 with version 255 keys
Master keys:
Version 0
ENC: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F
MAC: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F
KEK: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F
Sequnce counter: 00B9
Derived session keys:
Version 0
ENC: Ver:0 ID:0 Type:DES3 Len:16 Value:1EC5FBCA9A5F21F727C14461A7D7E2C6
MAC: Ver:0 ID:0 Type:DES3 Len:16 Value:2688CFFD58CCF9EB52B5D5E786364C89
KEK: Ver:0 ID:0 Type:DES3 Len:16 Value:C181FE8094950965495E0D5023AFD65D
Verified card cryptogram: 63331EF41FA02CB8
Calculated host cryptogram: A269860A0E584230
A>> T=1 (4+0016) 84820100 10 A269860A0E5842301E0CBE71E485EA79
A<< (0000+2) (66ms) 9000
A>> T=1 (4+0010) 84F28000 0A 4F00DF01359AC330E966
A<< (0011+2) (46ms) 08A000000151000000019E 9000
A>> T=1 (4+0010) 84F24000 0A 4F003E447E78BC4DE5CC
A<< (0014+2) (45ms) 0B01020304050607080900070700 9000
A>> T=1 (4+0010) 84F22000 0A 4F00D20EAEA9E44363C1
A<< (0018+2) (48ms) 07A000000151535001000501020304050100 9000
A>> T=1 (4+0010) 84F21000 0A 4F003EA1383F26463052
A<< (0020+2) (54ms) 07A000000151535001000108A000000151535041 6310
A>> T=1 (4+0010) 84F21001 0A 4F002196E82C3A537F62
A<< (0000+2) (50ms) 6A88
javax.smartcardio.CardException: Get Status failed, SW: 6A88
at pro.javacard.gp.GlobalPlatform.getConcatenatedStatus(GlobalPlatform.j
ava:1020)
at pro.javacard.gp.GlobalPlatform.getStatus(GlobalPlatform.java:1070)
at pro.javacard.gp.GlobalPlatform.getRegistry(GlobalPlatform.java:673)
at pro.javacard.gp.GPTool.main(GPTool.java:499)
SCardEndTransaction()
SCardDisconnect("ACS CCID USB Reader 0", false)
Exception in thread "main" javax.smartcardio.CardException: Get Status failed, S
W: 6A88
at pro.javacard.gp.GlobalPlatform.getConcatenatedStatus(GlobalPlatform.j
ava:1020)
at pro.javacard.gp.GlobalPlatform.getStatus(GlobalPlatform.java:1070)
at pro.javacard.gp.GlobalPlatform.getRegistry(GlobalPlatform.java:673)
at pro.javacard.gp.GPTool.main(GPTool.java:499)
gp:
Test with another Card :
I upload this package on another card (another type), but it is OK!
gp: gp -list
AID: A000000003000000 (|........|)
ISD OP_READY: Security Domain, Card lock, Card terminate, Default selected,
CVM (PIN) management
gp: gp -install e:\PackageWithLongAIDs.cap
gp: gp -list
AID: A000000003000000 (|........|)
ISD OP_READY: Security Domain, Card lock, Card terminate, Default selected,
CVM (PIN) management
AID: 0102030405060708090007 (|...........|)
App SELECTABLE: (none)
AID: 0102030405 (|.....|)
Exe LOADED: (none)
gp:
As you see above, the list of applets of my package doesn't appear in output(I think it is a feature of SD of my card), but I have output without any error.
I think the card is the origin of the error! No?
Note that, This problem appear only in cases that the package contains more than 20 applets.
If you have troubles with specific software, please follow the documentation of the software to get help (this includes posting to the right place and posting with sufficient information, like logs with -d -v for GlobalPlatformPro and do open a github issue if you think you have found a bug)
If you have questions about JavaCard or GlobalPlatform, please read the specifications before asking questions that are explained in the specs (like different VM limitations).

"INFO: task blocked for more than 120 seconds." Can't figure out what it's blocked on

I have a program that is just a TCP data forwarder. Data packets come in from one source and are buffered intelligently for redistribution to multiple clients. There are a few threads, and there's some mutex'ing going on. There's also a little logging to disk. But mostly it's just TCP socket data (no UDP despite what the dmesg seems to imply). Also, there's no blocking. It's all select on non-blocking sockets and some polling.
This process is hung up. Although it responds to SNMP requests (there are dedicated threads for that) and will accept client connections (there's a dedicated listener thread), no data will flow. Note that this program will run for a month with no problems before it finally hangs up, so it's really hard to probe with a debug version. I'm really hoping someone can help me interpret the dmesg reports I have, because this is all I have go go on.
The main thread that receives packets has this stack frame:
#0 0x00289424 in __kernel_vsyscall ()
#1 0x00a93656 in nanosleep () from /lib/libc.so.6
#2 0x00acc34c in usleep () from /lib/libc.so.6
#3 0x0805a140 in main ()
The sender thread has this stack frame:
#0 0x00289424 in __kernel_vsyscall ()
#1 0x00a93656 in nanosleep () from /lib/libc.so.6
#2 0x00acc34c in usleep () from /lib/libc.so.6
#3 0x08066efc in TSITcpip::TcpipThread(void*) ()
#4 0x08067026 in tcpip_callback(void*) ()
#5 0x00b95a09 in start_thread () from /lib/libpthread.so.0
#6 0x00ad343e in clone () from /lib/libc.so.6
There are 6 more threads. One is the listener thread, and the rest are for SNMP. I don't know how to get more stack frame info to tell what the duration of the sleep is, but there are limits placed on it. In one place, the longest sleep is capped at 5 seconds. Others are hard-coded to 1 second and 5 milliseconds. There are no blocking calls to access sockets. Mutexes are involved, but this one system ran for like a month with no clients attached, which means that blocking on locks would be very rare.
Below is an excerpt from dmesg. Everything before it is related to boot-up, and there's nothing after except for a segfault for an unrelated process. This is my only clue about what's going on, and I really hope someone can help me make sense of it. (I added some blank lines for readability.)
INFO: task str2many:1624 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D efa23b80 0 1624 1593 0x00000080
efd8c570 00200082 f2987140 efa23b80 00200246 c07d9c2b 00000031 0000bc43
00000000 eff27040 00010ced 00000001 00010ced c0b110c0 c0b110c0 efd8c818
c0b110c0 c0b0caa4 c0b110c0 efd8c818 efac6000 c07d3aa3 efe6d01c f7032780
Call Trace:
[<c07d9c2b>] ? udp_recvmsg+0x14b/0x2c0
[<c07d3aa3>] ? tcp_v4_rcv+0x473/0x770
[<c048792d>] ? exit_robust_list+0x7d/0x140
[<c04529ca>] ? mm_release+0xda/0xf0
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c0788b91>] ? __netif_receive_skb+0x401/0x5f0
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c053da0c>] ? core_sys_select+0x16c/0x270
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<f8a4df94>] ? e1000_clean_rx_irq+0x274/0x450 [e1000e]
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c0489395>] ? do_futex+0xe5/0xa40
[<c078cd79>] ? net_rx_action+0x199/0x280
[<c0480be0>] ? ktime_get_ts+0xd0/0x100
[<c0600623>] ? copy_to_user+0x33/0x110
[<c053c941>] ? poll_select_copy_remaining+0xe1/0x130
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
[<c0830000>] ? __mutex_lock_slowpath+0xb0/0x140
INFO: task str2many:1635 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D c2d03ac0 0 1635 1593 0x00000080
efa75570 00200082 00000200 c2d03ac0 00000002 efac5df4 efac5df0 00000000
00000000 eff27040 00010ced cc11e7f9 00010ced c0b110c0 c0b110c0 efa75818
c0b110c0 c0b0caa4 c0b110c0 efa75818 f6272000 00000000 000005ff efa75570
Call Trace:
[<c048792d>] ? exit_robust_list+0x7d/0x140
[<c04529ca>] ? mm_release+0xda/0xf0
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c05f906a>] ? plist_del+0x2a/0x60
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c04893c5>] ? do_futex+0x115/0xa40
[<c04b78d1>] ? move_native_irq+0x11/0x50
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
INFO: task str2many:1636 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D efa75030 0 1636 1593 0x00000080
efa75030 00200082 eff27040 efa75030 c082ecb0 00000000 00000000 0000d164
00000000 eff27040 00010ced 00000001 00010ced c0b110c0 c0b110c0 efa752d8
c0b110c0 c0b0caa4 c0b110c0 efa752d8 efaca000 c0b110c0 efa752d8 efaba000
Call Trace:
[<c082ecb0>] ? schedule+0x3c0/0xae0
[<c07e03ab>] ? inet_sendmsg+0x4b/0xb0
[<c048792d>] ? exit_robust_list+0x7d/0x140
[<c04529ca>] ? mm_release+0xda/0xf0
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c05f906a>] ? plist_del+0x2a/0x60
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c04893c5>] ? do_futex+0x115/0xa40
[<c04b8874>] ? __rcu_process_callbacks+0x44/0x2d0
[<c04b8b35>] ? rcu_process_callbacks+0x35/0x40
[<c045c18e>] ? __do_softirq+0xae/0x1a0
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
INFO: task str2many:1637 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D 00000070 0 1637 1593 0x00000080
efa9bab0 00200082 00000000 00000070 f63c559c efaa7030 c2d080fc 000170ed
00000000 eff27040 00010ced cdcefd93 00010ced c0b110c0 c0b110c0 efa9bd58
c0b110c0 c0b0caa4 c0b110c0 efa9bd58 f70fc000 c2d080c0 00200082 c044d665
Call Trace:
[<c044d665>] ? try_to_wake_up+0x205/0x3a0
[<c043b2b7>] ? __wake_up_common+0x47/0x70
[<c043f8f0>] ? complete+0x40/0x60
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c05f906a>] ? plist_del+0x2a/0x60
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c04893c5>] ? do_futex+0x115/0xa40
[<c04b8874>] ? __rcu_process_callbacks+0x44/0x2d0
[<c04b8b35>] ? rcu_process_callbacks+0x35/0x40
[<c045c18e>] ? __do_softirq+0xae/0x1a0
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
INFO: task str2many:1638 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D b4dfcbe0 0 1638 1593 0x00000080
efa9b570 00200082 00000000 b4dfcbe0 ef991b64 c0833efa c0439bf0 0001a113
00000000 eff27040 00010ced cd0bd748 00010ced c0b110c0 c0b110c0 efa9b818
c0b110c0 c0b0caa4 c0b110c0 efa9b818 f70fc000 c0b100d8 000000e0 ffffffff
Call Trace:
[<c0833efa>] ? do_page_fault+0x2a/0x90
[<c0439bf0>] ? kmap_atomic_prot+0x120/0x150
[<c05ff1e1>] ? __get_user_4+0x11/0x17
[<c048792d>] ? exit_robust_list+0x7d/0x140
[<c04529ca>] ? mm_release+0xda/0xf0
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c05f906a>] ? plist_del+0x2a/0x60
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c0439bf0>] ? kmap_atomic_prot+0x120/0x150
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c04893c5>] ? do_futex+0x115/0xa40
[<c0433a3a>] ? __do_page_fault+0x1aa/0x420
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
INFO: task str2many:1716 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D eb09ae40 0 1716 1593 0x00000080
efaa7ab0 00200082 ef53e040 eb09ae40 eb09ae60 000005a8 c077c7fc 000bb500
00000000 eff27040 00010ced 00000001 00010ced c0b110c0 c0b110c0 efaa7d58
c0b110c0 c0b0caa4 c0b110c0 efaa7d58 efba2000 00000001 9b0bb0f7 00000000
Call Trace:
[<c077c7fc>] ? sk_reset_timer+0xc/0x20
[<c048792d>] ? exit_robust_list+0x7d/0x140
[<c07cf241>] ? __tcp_push_pending_frames+0x31/0xe0
[<c04529ca>] ? mm_release+0xda/0xf0
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c053da0c>] ? core_sys_select+0x16c/0x270
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c0476450>] ? autoremove_wake_function+0x0/0x40
[<c0480be0>] ? ktime_get_ts+0xd0/0x100
[<c0600623>] ? copy_to_user+0x33/0x110
[<c053c941>] ? poll_select_copy_remaining+0xe1/0x130
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
INFO: task str2many:1717 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D c2d03ac0 0 1717 1593 0x00000080
efb11570 00200082 00000200 c2d03ac0 00000002 efba3df4 efba3df0 00000000
00000000 eff27040 00010ced 00000001 00010ced c0b110c0 c0b110c0 efb11818
c0b110c0 c0b0caa4 c0b110c0 efb11818 efac8000 00000000 000009ff efb11570
Call Trace:
[<c0784701>] ? sk_stream_wait_memory+0x1b1/0x210
[<c048792d>] ? exit_robust_list+0x7d/0x140
[<c04529ca>] ? mm_release+0xda/0xf0
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c0476450>] ? autoremove_wake_function+0x0/0x40
[<c05a292c>] ? security_file_permission+0xc/0x10
[<c052ab96>] ? rw_verify_area+0x66/0xe0
[<c045c18e>] ? __do_softirq+0xae/0x1a0
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
CE: hpet increasing min_delta_ns to 40226 nsec
INFO: task str2many:9401 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D f0238040 0 9401 1593 0x00000080
f0132ab0 00200082 ef802500 f0238040 00200246 c07d9c2b 00000031 00004b07
00000000 f619ec80 00031c6c 00000001 00031c6c c0b110c0 c0b110c0 f0132d58
c0b110c0 c0b0caa4 c0b110c0 f0132d58 f2294000 00000000 efe6d01c f7032780
Call Trace:
[<c07d9c2b>] ? udp_recvmsg+0x14b/0x2c0
[<c0830c65>] ? rwsem_down_failed_common+0x75/0x1a0
[<c0830dda>] ? rwsem_down_read_failed+0x1a/0x24
[<c0830e17>] ? call_rwsem_down_read_failed+0x7/0xc
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c053da0c>] ? core_sys_select+0x16c/0x270
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c044126b>] ? check_preempt_wakeup+0x16b/0x220
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c04870ee>] ? wake_futex+0x2e/0x60
[<c0489860>] ? do_futex+0x5b0/0xa40
[<c0480be0>] ? ktime_get_ts+0xd0/0x100
[<c0600623>] ? copy_to_user+0x33/0x110
[<c053c941>] ? poll_select_copy_remaining+0xe1/0x130
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
[<c0830000>] ? __mutex_lock_slowpath+0xb0/0x140
INFO: task str2many:9407 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D f01a5570 0 9407 1593 0x00000080
f01a5570 00200082 f619ec80 f01a5570 c082ecb0 00000400 c2c03ac0 00018f12
00000000 f619ec80 00031c6c 00000000 00031c6c c0b110c0 c0b110c0 f01a5818
c0b110c0 c0b0caa4 c0b110c0 f01a5818 f0690000 c0b110c0 f01a5818 342d2c7f
Call Trace:
[<c082ecb0>] ? schedule+0x3c0/0xae0
[<c048792d>] ? exit_robust_list+0x7d/0x140
[<c04529ca>] ? mm_release+0xda/0xf0
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c05f906a>] ? plist_del+0x2a/0x60
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c04893c5>] ? do_futex+0x115/0xa40
[<c04b78d1>] ? move_native_irq+0x11/0x50
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b
INFO: task str2many:9408 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
str2many D efa5b570 0 9408 1593 0x00000080
efa5b570 00200082 f619ec80 efa5b570 c082ecb0 00000000 00000000 00018f12
00000000 f619ec80 00031c6c 00000000 00031c6c c0b110c0 c0b110c0 efa5b818
c0b110c0 c0b0caa4 c0b110c0 efa5b818 eb01e000 c0b110c0 efa5b818 efb42000
Call Trace:
[<c082ecb0>] ? schedule+0x3c0/0xae0
[<c07e03ab>] ? inet_sendmsg+0x4b/0xb0
[<c048792d>] ? exit_robust_list+0x7d/0x140
[<c04529ca>] ? mm_release+0xda/0xf0
[<c0458d9d>] ? exit_mm+0x6d/0x140
[<c0459136>] ? do_exit+0x126/0x740
[<c05f906a>] ? plist_del+0x2a/0x60
[<c046bd60>] ? dequeue_signal+0x30/0x190
[<c045978c>] ? do_group_exit+0x3c/0xa0
[<c046c2fe>] ? get_signal_to_deliver+0x1ce/0x460
[<c0408fa3>] ? do_signal+0x93/0xa50
[<c04893c5>] ? do_futex+0x115/0xa40
[<c04b8b35>] ? rcu_process_callbacks+0x35/0x40
[<c045c18e>] ? __do_softirq+0xae/0x1a0
[<c04afed0>] ? __audit_syscall_exit+0x220/0x250
[<c04099d7>] ? do_notify_resume+0x77/0xa0
[<c083135c>] ? work_notifysig+0x13/0x1b

Resources