Gamebryo renderer not resetting - resources

The renderer for my game application is not properly resetting when I sometimes lock out of my computer and log back in. The application uses the Gamebryo engine with the CEGUI (Crazy Eddie's GUI) layer on top. When using a DirectX debugger log, I get the following messages when the application fails to reset.
00004805 18156.43750000 [2848] Direct3D9: (ERROR) :The following D3DPOOL_DEFAULT surfaces/buffers/textures still exist
00004806 18156.45117188 [2848]
00004807 18156.89648438 [2848] Direct3D9: (ERROR) : D3DRTYPE_TEXTURE
00004808 18156.90039063 [2848]
00004809 18156.90039063 [2848] Direct3D9: (ERROR) : Memory Address: 0eb59530 lAllocID=54625 dwSize=00000050, (pid=00000b20)
00004810 18156.90429688 [2848]
00004811 18156.90429688 [2848] Direct3D9: (ERROR) : Stack Back Trace
00004812 18156.90625000 [2848]
00004813 18156.90820313 [2848] Direct3D9: (ERROR) : [0] : Address 015C7CE6
00004814 18156.90820313 [2848]
00004815 18156.91015625 [2848] Direct3D9: (ERROR) : [1] : Address 0169BBC3
00004816 18156.91210938 [2848]
00004817 18156.91406250 [2848] Direct3D9: (ERROR) : [2] : Address 015DFAF7
00004818 18156.91601563 [2848]
00004819 18156.91601563 [2848] Direct3D9: (ERROR) : [3] : Address 015DF4A2
00004820 18156.91796875 [2848]
00004821 18156.92187500 [2848] Direct3D9: (ERROR) : [4] : Address 015F4A40
00004822 18156.92382813 [2848]
00004823 18156.92578125 [2848] Direct3D9: (ERROR) : [5] : Address 00728194
00004824 18156.92578125 [2848]
00004825 18156.92773438 [2848] Direct3D9: (ERROR) : [6] : Address 00000000
00004826 18156.92968750 [2848]
00004827 18156.93164063 [2848] Direct3D9: (ERROR) : [7] : Address 00000000
00004828 18156.93164063 [2848]
00004829 18156.93359375 [2848] Direct3D9: (ERROR) : [8] : Address 00000000
00004830 18156.93554688 [2848]
00004831 18156.93945313 [2848] Direct3D9: (ERROR) : [9] : Address 00000000
00004832 18156.93945313 [2848]
00004833 18156.94140625 [2848] Direct3D9: (ERROR) : [10] : Address 00000000
00004834 18156.94335938 [2848]
00004835 18156.94531250 [2848] Direct3D9: (ERROR) : [11] : Address 00000000
00004836 18156.94726563 [2848]
00004837 18156.94726563 [2848] Direct3D9: (ERROR) : [12] : Address 00000000
00004838 18156.94921875 [2848]
00004839 18156.95117188 [2848] Direct3D9: (ERROR) : [13] : Address 00000000
00004840 18156.95312500 [2848]
00004841 18156.95507813 [2848] Direct3D9: (ERROR) : [14] : Address 00000000
00004842 18156.95703125 [2848]
00004843 18156.95898438 [2848] Direct3D9: (ERROR) : [15] : Address 00000000
00004844 18156.96484375 [2848]
00004845 18156.96679688 [2848] Direct3D9: (ERROR) : D3DRTYPE_TEXTURE
00004846 18156.96875000 [2848]
00004847 18156.97070313 [2848] Direct3D9: (ERROR) : Memory Address: 0ebbb4c8 lAllocID=53959 dwSize=00000050, (pid=00000b20)
00004848 18156.97265625 [2848]
00004849 18156.97265625 [2848] Direct3D9: (ERROR) : Stack Back Trace
00004850 18156.97460938 [2848]
00004851 18156.98828125 [2848] Direct3D9: (ERROR) : [0] : Address 015C7CE6
00004852 18156.99023438 [2848]
00004853 18156.99218750 [2848] Direct3D9: (ERROR) : [1] : Address 0169BBC3
00004854 18156.99414063 [2848]
00004855 18156.99414063 [2848] Direct3D9: (ERROR) : [2] : Address 015DFAF7
00004856 18156.99609375 [2848]
00004857 18156.99609375 [2848] Direct3D9: (ERROR) : [3] : Address 015DF4A2
00004858 18157.00390625 [2848]
00004859 18157.00390625 [2848] Direct3D9: (ERROR) : [4] : Address 015F4A40
00004860 18157.00585938 [2848]
00004861 18157.00781250 [2848] Direct3D9: (ERROR) : [5] : Address 00728194
00004862 18157.00976563 [2848]
00004863 18157.01171875 [2848] Direct3D9: (ERROR) : [6] : Address 00000000
00004864 18157.01367188 [2848]
00004865 18157.01367188 [2848] Direct3D9: (ERROR) : [7] : Address 00000000
00004866 18157.01562500 [2848]
00004867 18157.01757813 [2848] Direct3D9: (ERROR) : [8] : Address 00000000
00004868 18157.01953125 [2848]
00004869 18157.02148438 [2848] Direct3D9: (ERROR) : [9] : Address 00000000
00004870 18157.02148438 [2848]
00004871 18157.02343750 [2848] Direct3D9: (ERROR) : [10] : Address 00000000
00004872 18157.02343750 [2848]
00004873 18157.02539063 [2848] Direct3D9: (ERROR) : [11] : Address 00000000
00004874 18157.02734375 [2848]
00004875 18157.02929688 [2848] Direct3D9: (ERROR) : [12] : Address 00000000
00004876 18157.02929688 [2848]
00004877 18157.03125000 [2848] Direct3D9: (ERROR) : [13] : Address 00000000
00004878 18157.03320313 [2848]
00004879 18157.03515625 [2848] Direct3D9: (ERROR) : [14] : Address 00000000
00004880 18157.03710938 [2848]
00004881 18157.03710938 [2848] Direct3D9: (ERROR) : [15] : Address 00000000
00004882 18157.03906250 [2848]
00004883 18157.04101563 [2848] Direct3D9: (ERROR) : D3DRTYPE_TEXTURE
00004884 18157.04296875 [2848]
00004885 18157.04492188 [2848] Direct3D9: (ERROR) : Memory Address: 032965c0 lAllocID=51467 dwSize=00000050, (pid=00000b20)
00004886 18157.04492188 [2848]
00004887 18157.04687500 [2848] Direct3D9: (ERROR) : Stack Back Trace
00004888 18157.04882813 [2848]
00004889 18157.05078125 [2848] Direct3D9: (ERROR) : [0] : Address 015C7CE6
00004890 18157.05273438 [2848]
00004891 18157.05273438 [2848] Direct3D9: (ERROR) : [1] : Address 0169BBC3
00004892 18157.05468750 [2848]
00004893 18157.05468750 [2848] Direct3D9: (ERROR) : [2] : Address 015DFAF7
00004894 18157.05664063 [2848]
00004895 18157.05859375 [2848] Direct3D9: (ERROR) : [3] : Address 015DF4A2
00004896 18157.06054688 [2848]
00004897 18157.06054688 [2848] Direct3D9: (ERROR) : [4] : Address 015F4A40
00004898 18157.06250000 [2848]
00004899 18157.06445313 [2848] Direct3D9: (ERROR) : [5] : Address 00728194
00004900 18157.06640625 [2848]
00004901 18157.06835938 [2848] Direct3D9: (ERROR) : [6] : Address 00000000
00004902 18157.07031250 [2848]
00004903 18157.07031250 [2848] Direct3D9: (ERROR) : [7] : Address 00000000
00004904 18157.07226563 [2848]
00004905 18157.07421875 [2848] Direct3D9: (ERROR) : [8] : Address 00000000
00004906 18157.07617188 [2848]
00004907 18157.07812500 [2848] Direct3D9: (ERROR) : [9] : Address 00000000
00004908 18157.07812500 [2848]
00004909 18157.08007813 [2848] Direct3D9: (ERROR) : [10] : Address 00000000
00004910 18157.08203125 [2848]
00004911 18157.08398438 [2848] Direct3D9: (ERROR) : [11] : Address 00000000
00004912 18157.08593750 [2848]
00004913 18157.08593750 [2848] Direct3D9: (ERROR) : [12] : Address 00000000
00004914 18157.08593750 [2848]
00004915 18157.08789063 [2848] Direct3D9: (ERROR) : [13] : Address 00000000
00004916 18157.08984375 [2848]
00004917 18157.09179688 [2848] Direct3D9: (ERROR) : [14] : Address 00000000
00004918 18157.09375000 [2848]
00004919 18157.09375000 [2848] Direct3D9: (ERROR) : [15] : Address 00000000
00004920 18157.09570313 [2848]
00004921 18157.09765625 [2848] Direct3D9: (ERROR) : D3DRTYPE_TEXTURE
00004922 18157.09960938 [2848]
00004923 18157.10156250 [2848] Direct3D9: (ERROR) : Memory Address: 032904e8 lAllocID=51416 dwSize=00000050, (pid=00000b20)
00004924 18157.10156250 [2848]
00004925 18157.10351563 [2848] Direct3D9: (ERROR) : Stack Back Trace
00004926 18157.10546875 [2848]
00004927 18157.10742188 [2848] Direct3D9: (ERROR) : [0] : Address 015C7CE6
00004928 18157.10937500 [2848]
00004929 18157.10937500 [2848] Direct3D9: (ERROR) : [1] : Address 0169BBC3
00004930 18157.11132813 [2848]
00004931 18157.11328125 [2848] Direct3D9: (ERROR) : [2] : Address 015DFAF7
00004932 18157.11523438 [2848]
00004933 18157.11523438 [2848] Direct3D9: (ERROR) : [3] : Address 015DF4A2
00004934 18157.11718750 [2848]
00004935 18157.11718750 [2848] Direct3D9: (ERROR) : [4] : Address 015F4A40
00004936 18157.11914063 [2848]
00004937 18157.12109375 [2848] Direct3D9: (ERROR) : [5] : Address 00728194
00004938 18157.12304688 [2848]
00004939 18157.12500000 [2848] Direct3D9: (ERROR) : [6] : Address 00000000
00004940 18157.12500000 [2848]
00004941 18157.12695313 [2848] Direct3D9: (ERROR) : [7] : Address 00000000
00004942 18157.12890625 [2848]
00004943 18157.13476563 [2848] Direct3D9: (ERROR) : [8] : Address 00000000
00004944 18157.13476563 [2848]
00004945 18157.13476563 [2848] Direct3D9: (ERROR) : [9] : Address 00000000
00004946 18157.14062500 [2848]
00004947 18157.14062500 [2848] Direct3D9: (ERROR) : [10] : Address 00000000
00004948 18157.14257813 [2848]
00004949 18157.14257813 [2848] Direct3D9: (ERROR) : [11] : Address 00000000
00004950 18157.14453125 [2848]
00004951 18157.14648438 [2848] Direct3D9: (ERROR) : [12] : Address 00000000
00004952 18157.14843750 [2848]
00004953 18157.15039063 [2848] Direct3D9: (ERROR) : [13] : Address 00000000
00004954 18157.15039063 [2848]
00004955 18157.15234375 [2848] Direct3D9: (ERROR) : [14] : Address 00000000
00004956 18157.15429688 [2848]
00004957 18157.15429688 [2848] Direct3D9: (ERROR) : [15] : Address 00000000
00004958 18157.15625000 [2848]
00004959 18157.15820313 [2848] Direct3D9: (ERROR) : D3DRTYPE_TEXTURE
00004960 18157.15820313 [2848]
00004961 18157.16015625 [2848] Direct3D9: (ERROR) : Memory Address: 048cb8b0 lAllocID=51174 dwSize=00000050, (pid=00000b20)
00004962 18157.16210938 [2848]
00004963 18157.16406250 [2848] Direct3D9: (ERROR) : Stack Back Trace
00004964 18157.16601563 [2848]
00004965 18157.16601563 [2848] Direct3D9: (ERROR) : [0] : Address 015C7CE6
00004966 18157.16796875 [2848]
00004967 18157.16992188 [2848] Direct3D9: (ERROR) : [1] : Address 0169BBC3
00004968 18157.17187500 [2848]
00004969 18157.17382813 [2848] Direct3D9: (ERROR) : [2] : Address 015DFAF7
00004970 18157.17382813 [2848]
00004971 18157.17578125 [2848] Direct3D9: (ERROR) : [3] : Address 015DF4A2
00004972 18157.17773438 [2848]
00004973 18157.17968750 [2848] Direct3D9: (ERROR) : [4] : Address 015F4A40
00004974 18157.18164063 [2848]
00004975 18157.18164063 [2848] Direct3D9: (ERROR) : [5] : Address 00728194
00004976 18157.18164063 [2848]
00004977 18157.18359375 [2848] Direct3D9: (ERROR) : [6] : Address 00000000
00004978 18157.18554688 [2848]
00004979 18157.18750000 [2848] Direct3D9: (ERROR) : [7] : Address 00000000
00004980 18157.18945313 [2848]
00004981 18157.19140625 [2848] Direct3D9: (ERROR) : [8] : Address 00000000
00004982 18157.19140625 [2848]
00004983 18157.19335938 [2848] Direct3D9: (ERROR) : [9] : Address 00000000
00004984 18157.19531250 [2848]
00004985 18157.19726563 [2848] Direct3D9: (ERROR) : [10] : Address 00000000
00004986 18157.19921875 [2848]
00004987 18157.19921875 [2848] Direct3D9: (ERROR) : [11] : Address 00000000
00004988 18157.20117188 [2848]
00004989 18157.20312500 [2848] Direct3D9: (ERROR) : [12] : Address 00000000
00004990 18157.20507813 [2848]
00004991 18157.20703125 [2848] Direct3D9: (ERROR) : [13] : Address 00000000
00004992 18157.20703125 [2848]
00004993 18157.20703125 [2848] Direct3D9: (ERROR) : [14] : Address 00000000
00004994 18157.20703125 [2848]
00004995 18157.20703125 [2848] Direct3D9: (ERROR) : [15] : Address 00000000
It looks like certain D3D textures are not being properly released prior to resetting, which is causing the Gamebryo renderer to fail to reset. What is the best solution to determine which resource is not being released?

Maintaining a database of all D3DPOOL_DEFAULT resources and releasing/recovering them upon device lost is a job for the rendering engine, Gamebryo in your case - I'd guess it's an engine problem (device resetting is always a bit tricky) and not necessarily your fault.
What you could do is
lAllocID=54625
take the ID, fire DirectX control panel, enable debug runtime, set warning level to high and enter the ID into the 'break on allocId' field. This raises a breakpoint as soon as the resource is allocated during startup.

If you submit this question to Emegent Support it should be answered promptly.

Related

How to read virtual IP in linux using golang/net package

I am trying to read a particular interface and all the virtual IP in that interface.
Here is and example of the linux ifconfig -a | grep -A eth0
ifconfig -a | grep -A2 eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 100.180.89.148 netmask 255.255.255.224 broadcast 100.180.89.140
inct6 fe80::ac16:2dff:fead:a321 prefixlen 64 scopeid 0x20<link>
--
eth0:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 100.180.89.150 netmask 255.255.255.255 broadcast 100.180.89.150
ether cc:16:2d:ad:a3:20 txqueuelen 1000 (Ethernet)
--
eth0:2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 100.180.89.151 netmask 255.255.255.255 broadcast 100.180.89.151
ether ac:16:2d:ad:a3:20 txqueuelen 1000 (Ethernet)
--
eth0:3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 100.180.89.152 netmask 255.255.255.255 broadcast 100.180.89.152
ether ac:16:2d:ad:a3:20 txqueuelen 1000 (Ethernet)
I tried like this in go code:
// nwkIfName = eth0
func networkInterfaces(nwkIfName string) ([]Interfaces, error) {
ifaces, err := net.Interfaces()
if err != nil {
return nil, fmt.Errorf("failed to get network interfaces: %w", err)
}
for _, nwIf := range ifaces {
fmt.Println(nwIf.Name)
if nwIf.Name == nwkIfName {
fmt.Println(nwIf.Addrs())
}
}
return nil, nil
}
Output:
[100.180.89.148/27 100.180.89.150/32 100.180.89.151/32 100.180.89.152/32 fe80::ae16:2dff:fead:a320/64] <nil>
How can I read the IP address of eth0:2 ?
Thanks James
Call Interface.Addrs() to get the interface's addresses, and type-assert *net.IPNet from the addresses.
Use its IPNet.IP field to get just the IP address (of type net.IP), and its IP.To4() method if you need an IPv4 address.
for _, nwIf := range ifaces {
fmt.Println(nwIf.Name)
if nwIf.Name == nwkIfName {
fmt.Println(nwIf.Addrs())
addrs, err := nwIf.Addrs()
if err != nil {
return nil, fmt.Errorf(
"failed to get addresses of interface: %s, err: %w",
nwIf.Name, err,
)
}
for _, addr := range addrs {
if ipNet, ok := addr.(*net.IPNet); ok {
fmt.Println("\tIP:", ipNet.IP)
} else {
fmt.Println("\tnot IPNet:", addr)
}
}
}
}

What can cause an MFC OpenInventor program to freeze inside nvwgf2umx.dll

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

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

vtk file opening gets (core dumped) after building paraview with cmake

Dear stackoverflow team,
I recently compiled paraview from source on ubuntu using the following build instructions, however I get core dumped when opening any *vtk,*exodus file.
#! /bin/bash
export CC=mpicc
export CXX=mpicxx
export FC=mpif90
export F77=mpif77
cmake \
-D CMAKE_INSTALL_PREFIX:PATH=/home/pablo/BuildParaview \
-D BUILD_SHARED_LIBS:BOOL=OFF \
-D BUILD_TESTING:BOOL=ON \
-D PARAVIEW_ENABLE_PYTHON:BOOL=ON \
-D PARAVIEW_USE_MPI:BOOL=ON \
-D CMAKE_BUILD_TYPE:STRING=Debug \
-D PARAVIEW_BUILD_QT_GUI:BOOL=ON \
-D CMAKE_CXX_FLAGS:STRING="-O0 -Wall -std=c++11 -pedantic -Wno-long-long -ftrapv -Wno-deprecated-declarations" \
-D PARAVIEW_ENABLE_CATALYST:BOOL=ON \
-D PARAVIEW_USE_VTKM:BOOL=ON \
-D VTK_DIR:PATH="/home/pablo/BuildParaview/paraview/build/VTK/" \
-D CMAKE_PREFIX_PATH=/home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/cmake \
../ParaView/
make -j 1
make install
After installing it, and removing the "libqgtk3.so" file, paraview was able to launch, but the problem comes when trying to read any vtk or exodus file, for which I immediately get the following errors: I don't know at this point what to do. My guess is I missed some other command that requires other package to be installed?. Please any help will be gratefully appreciated.
pablo#pabloPavia:~/BuildParaview/bin$ ./paraview [pabloPavia:14797]
* Process received signal [pabloPavia:14797] Signal: Aborted (6) [pabloPavia:14797] Signal code: (-6) [pabloPavia:14797] [ 0]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f54c40b7390]
[pabloPavia:14797] [ 1]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f54c3d11428]
[pabloPavia:14797] [ 2]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f54c3d1302a]
[pabloPavia:14797] [ 3]
/lib/x86_64-linux-gnu/libgcc_s.so.1(+0x3717)[0x7f54c42c6717]
[pabloPavia:14797] [ 4]
./paraview(ZN7vtkJson9OurReader12decodeNumberERNS0_5TokenERNS_5ValueE+0x68)[0xac31ee2]
[pabloPavia:14797] [ 5]
./paraview(_ZN7vtkJson9OurReader12decodeNumberERNS0_5TokenE+0x48)[0xac31d8a]
[pabloPavia:14797] [ 6]
./paraview(_ZN7vtkJson9OurReader9readValueEv+0x220)[0xac2fe5e]
[pabloPavia:14797] [ 7]
./paraview(_ZN7vtkJson9OurReader9readArrayERNS0_5TokenE+0x17f)[0xac31b85]
[pabloPavia:14797] [ 8]
./paraview(_ZN7vtkJson9OurReader9readValueEv+0x1b5)[0xac2fdf3]
[pabloPavia:14797] [ 9]
./paraview(_ZN7vtkJson9OurReader10readObjectERNS0_5TokenE+0x4bb)[0xac316ed]
[pabloPavia:14797] [10]
./paraview(_ZN7vtkJson9OurReader9readValueEv+0x14a)[0xac2fd88]
[pabloPavia:14797] [11]
./paraview(_ZN7vtkJson9OurReader9readArrayERNS0_5TokenE+0x17f)[0xac31b85]
[pabloPavia:14797] [12]
./paraview(_ZN7vtkJson9OurReader9readValueEv+0x1b5)[0xac2fdf3]
[pabloPavia:14797] [13]
./paraview(_ZN7vtkJson9OurReader5parseEPKcS2_RNS_5ValueEb+0x126)[0xac2fa08]
[pabloPavia:14797] [14]
./paraview(_ZN7vtkJson13OurCharReader5parseEPKcS2_PNS_5ValueEPNSt7_cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x56)[0xac42ff8]
[pabloPavia:14797] [15]
./paraview(_ZN28vtkSMTransferFunctionPresets12vtkInternals18LoadBuiltinPresetsEv+0x18a)[0x8e9ffcc]
[pabloPavia:14797] [16]
./paraview(_ZN28vtkSMTransferFunctionPresets12vtkInternals10GetPresetsEv+0x42)[0x8e9f360]
[pabloPavia:14797] [17]
./paraview(_ZN28vtkSMTransferFunctionPresets22GetFirstPresetWithNameEPKc+0xa4)[0x8e9d3b6]
[pabloPavia:14797] [18]
./paraview(_ZN32pqColorAnnotationsPropertyWidget11applyPresetEPKc+0x5c)[0x5e5411a]
[pabloPavia:14797] [19]
./paraview(_ZN32pqColorAnnotationsPropertyWidgetC1EP10vtkSMProxyP18vtkSMPropertyGroupP7QWidget+0x81a)[0x5e53faa]
[pabloPavia:14797] [20]
./paraview(_ZN33pqStandardPropertyWidgetInterface28createWidgetForPropertyGroupEP10vtkSMProxyP18vtkSMPropertyGroup+0x1e0)[0x5e00e56]
[pabloPavia:14797] [21]
./paraview(_ZN13pqProxyWidget21createPropertyWidgetsERK11QStringList+0x4ae)[0x79f861a]
[pabloPavia:14797] [22]
./paraview(_ZN13pqProxyWidget13createWidgetsERK11QStringList+0x3a8)[0x79f7e7e]
[pabloPavia:14797] [23]
./paraview(_ZN13pqProxyWidget11constructorEP10vtkSMProxyRK11QStringListP7QWidget6QFlagsIN2Qt10WindowTypeEE+0x26a)[0x79f6e02]
[pabloPavia:14797] [24]
./paraview(_ZN13pqProxyWidgetC1EP10vtkSMProxyP7QWidget6QFlagsIN2Qt10WindowTypeEE+0x8f)[0x79f6a9f]
[pabloPavia:14797] [25]
./paraview(_ZN16pqColorMapEditor24setColorTransferFunctionEP10vtkSMProxy+0x22c)[0x5dc351a]
[pabloPavia:14797] [26]
./paraview(_ZN16pqColorMapEditor12updateActiveEv+0xd0)[0x5dc309c]
[pabloPavia:14797] [27] ./paraview[0x5e2e094] [pabloPavia:14797] [28]
/home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x659)[0x7f54c62a0469]
[pabloPavia:14797] [29]
./paraview(_ZN15pqActiveObjects21representationChangedEP20pqDataRepresentation+0x56)[0x7a77060]
[pabloPavia:14797] End of error message * Aborted (core dumped)
This is what I get when I run backtrace in gdb exactly after paraview aborts when opening a *.vtk file:
Thread 1 "paraview" received signal SIGABRT, Aborted.
0x00007ffff3b87428 in __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff3b87428 in __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff3b8902a in __GI_abort () at abort.c:89
#2 0x00007ffff413c717 in __negvdi2 () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#3 0x000000000ac31ee2 in vtkJson::OurReader::decodeNumber (this=0x163445d0, token=..., decoded=...) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1799
#4 0x000000000ac31d8a in vtkJson::OurReader::decodeNumber (this=0x163445d0, token=...) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1780
#5 0x000000000ac2fe5e in vtkJson::OurReader::readValue (this=0x163445d0) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1337
#6 0x000000000ac31b85 in vtkJson::OurReader::readArray (this=0x163445d0, tokenStart=...) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1755
#7 0x000000000ac2fdf3 in vtkJson::OurReader::readValue (this=0x163445d0) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1333
#8 0x000000000ac316ed in vtkJson::OurReader::readObject (this=0x163445d0, tokenStart=...) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1718
#9 0x000000000ac2fd88 in vtkJson::OurReader::readValue (this=0x163445d0) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1329
#10 0x000000000ac31b85 in vtkJson::OurReader::readArray (this=0x163445d0, tokenStart=...) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1755
#11 0x000000000ac2fdf3 in vtkJson::OurReader::readValue (this=0x163445d0) at /home/pablo/BuildParaview/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1333
#12 0x000000000ac2fa08 in vtkJson::OurReader::parse (this=0x163445d0, beginDoc=0x162f8690 "[\n {\n \"Name\" : \"KAAMS\",\n \"IndexedColors\" : [\n 1.00,\n
1.00,\n 1.00,
\n 1.00,\n 0.00,\n 0.00,\n 0.00,\n 1.00,\n 0.00,\n "..., endDoc=0x163440d5 "", root=..., collectComments=false) at /home/pablo/BuildParaview/paraview
/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1288
#13 0x000000000ac42ff8 in vtkJson::OurCharReader::parse (this=0x163445c0, beginDoc=0x162f8690 "[\n {\n \"Name\" : \"KAAMS\",\n \"IndexedColors\" : [\n 1.00,\n
1.00,\n 1
.00,\n 1.00,\n 0.00,\n 0.00,\n 0.00,\n 1.00,\n 0.00,\n "..., endDoc=0x163440d5 "", root=0x7fffffffb200, errs=0x7fffffffb280) at /home/pablo/BuildPara
view/paraview/ParaView/VTK/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:2151
#14 0x0000000008e9ffcc in vtkSMTransferFunctionPresets::vtkInternals::LoadBuiltinPresets (this=0x162f7b90) at /home/pablo/BuildParaview/paraview/ParaView/ParaViewCore/ServerManager/Rendering/vtkSMTransfer
FunctionPresets.cxx:188
#15 0x0000000008e9f360 in vtkSMTransferFunctionPresets::vtkInternals::GetPresets (this=0x162f7b90) at /home/pablo/BuildParaview/paraview/ParaView/ParaViewCore/ServerManager/Rendering/vtkSMTransferFunction
Presets.cxx:73
#16 0x0000000008e9d3b6 in vtkSMTransferFunctionPresets::GetFirstPresetWithName (this=0x162f7b30, name=0xd0dd8b5 "KAAMS") at /home/pablo/BuildParaview/paraview/ParaView/ParaViewCore/ServerManager/Rendering
/vtkSMTransferFunctionPresets.cxx:267
#17 0x0000000005e5411a in pqColorAnnotationsPropertyWidget::applyPreset (this=0x162de1a0, presetName=0xd0dd8b5 "KAAMS") at /home/pablo/BuildParaview/paraview/ParaView/Qt/ApplicationComponents/pqColorAnnot
ationsPropertyWidget.cxx:746
#18 0x0000000005e53faa in pqColorAnnotationsPropertyWidget::pqColorAnnotationsPropertyWidget (this=0x162de1a0, smproxy=0x15739420, smgroup=0x15748400, parentObject=0x0) at /home/pablo/BuildParaview/paravi
ew/ParaView/Qt/ApplicationComponents/pqColorAnnotationsPropertyWidget.cxx:731
#19 0x0000000005e00e56 in pqStandardPropertyWidgetInterface::createWidgetForPropertyGroup (this=0x11be5fd0, proxy=0x15739420, group=0x15748400) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Applicatio
nComponents/pqStandardPropertyWidgetInterface.cxx:231
#20 0x00000000079f861a in pqProxyWidget::createPropertyWidgets (this=0x160e2ea0, properties=...) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Components/pqProxyWidget.cxx:818
#21 0x00000000079f7e7e in pqProxyWidget::createWidgets (this=0x160e2ea0, properties=...) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Components/pqProxyWidget.cxx:736
#22 0x00000000079f6e02 in pqProxyWidget::constructor (this=0x160e2ea0, smproxy=0x15739420, properties=..., parentObject=0x11a63930, wflags=...) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Components
/pqProxyWidget.cxx:544
#23 0x00000000079f6a9f in pqProxyWidget::pqProxyWidget (this=0x160e2ea0, smproxy=0x15739420, parentObject=0x11a63930, wflags=...) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Components/pqProxyWidget
.cxx:497
#24 0x0000000005dc351a in pqColorMapEditor::setColorTransferFunction (this=0x11a63930, ctf=0x15739420) at /home/pablo/BuildParaview/paraview/ParaView/Qt/ApplicationComponents/pqColorMapEditor.cxx:255
#25 0x0000000005dc309c in pqColorMapEditor::updateActive (this=0x11a63930) at /home/pablo/BuildParaview/paraview/ParaView/Qt/ApplicationComponents/pqColorMapEditor.cxx:179
#26 0x0000000005e2e094 in pqColorMapEditor::qt_static_metacall (_o=0x11a63930, _c=QMetaObject::InvokeMetaMethod, _id=0,
_a=0x7fffffffbed0) at /home/pablo/BuildParaview/paraview/build/Qt/ApplicationCompone
nts/moc_pqColorMapEditor.cpp:99
#27 0x00007ffff6116469 in QMetaObject::activate(QObject*, int, int, void**) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#28 0x0000000007a77060 in pqActiveObjects::representationChanged (this=0x10ed18c0 <pqActiveObjects::instance()::activeObject>,
_t1=0x15732370) at /home/pablo/BuildParaview/paraview/build/Qt/Components/moc
_pqActiveObjects.cpp:308
#29 0x0000000007915fd8 in pqActiveObjects::triggerSignals (this=0x10ed18c0 <pqActiveObjects::instance()::activeObject>) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Components/pqActiveObjects.cxx:127
#30 0x0000000007917226 in pqActiveObjects::updateRepresentation (this=0x10ed18c0 <pqActiveObjects::instance()::activeObject>) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Components/pqActiveObjects.c
xx:522
#31 0x0000000007a76b04 in pqActiveObjects::qt_static_metacall (_o=0x10ed18c0 <pqActiveObjects::instance()::activeObject>,
_c=QMetaObject::InvokeMetaMethod, _id=17, _a=0x7fffffffc0c0) at /home/pablo/BuildP
araview/paraview/build/Qt/Components/moc_pqActiveObjects.cpp:173
#32 0x00007ffff6116469 in QMetaObject::activate(QObject*, int, int, void**) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#33 0x0000000007bc031c in pqView::representationAdded (this=0x1401dad0, _t1=0x15732370) at /home/pablo/BuildParaview/paraview/build/Qt/Core/moc_pqView.cpp:364
#34 0x0000000007ba89a5 in pqView::onRepresentationsChanged (this=0x1401dad0) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Core/pqView.cxx:339
#35 0x0000000007bbfd21 in pqView::qt_static_metacall (_o=0x1401dad0, _c=QMetaObject::InvokeMetaMethod, _id=21,
_a=0x7fffffffc390) at /home/pablo/BuildParaview/paraview/build/Qt/Core/moc_pqView.cpp:199
#36 0x00007ffff6116469 in QMetaObject::activate(QObject*, int, int, void**) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#37 0x0000000007c1c47a in vtkQtConnection::EmitExecute (this=0x1401cf30, _t1=0x13cd7a30, _t2=33, _t3=0x0, _t4=0x0,
_t5=0x1401d210) at /home/pablo/BuildParaview/paraview/build/VTK/GUISupport/Qt/moc_vtkQtCo
nnection.cpp:141
#38 0x0000000007c13aa1 in vtkQtConnection::Execute (this=0x1401cf30, caller=0x13cd7a30, e=33, call_data=0x0) at /home/pablo/BuildParaview/paraview/ParaView/VTK/GUISupport/Qt/vtkQtConnection.cxx:72
#39 0x0000000007c13a30 in vtkQtConnection::DoCallback (vtk_obj=0x13cd7a30, event=33, client_data=0x1401cf30, call_data=0x0) at /home/pablo/BuildParaview/paraview/ParaView/VTK/GUISupport/Qt/vtkQtConnection
.cxx:62
#40 0x000000000cd96031 in vtkCallbackCommand::Execute (this=0x1401d210, caller=0x13cd7a30, event=33, callData=0x0) at /home/pablo/BuildParaview/paraview/ParaView/VTK/Common/Core/vtkCallbackCommand.cxx:42
#41 0x000000000cfadf03 in vtkSubjectHelper::InvokeEvent (this=0x13cae100, event=33, callData=0x0, self=0x13cd7a30) at /home/pablo/BuildParaview/paraview/ParaView/VTK/Common/Core/vtkObject.cxx:616
#42 0x000000000cfae423 in vtkObject::InvokeEvent (this=0x13cd7a30, event=33, callData=0x0) at /home/pablo/BuildParaview/paraview/ParaView/VTK/Common/Core/vtkObject.cxx:785
#43 0x000000000cfae5ee in vtkObject::Modified (this=0x13cd7a30) at /home/pablo/BuildParaview/paraview/ParaView/VTK/Common/Core/vtkObject.cxx:851
#44 0x0000000006157332 in vtkSMProperty::Modified (this=0x13cd7a30) at /home/pablo/BuildParaview/paraview/ParaView/ParaViewCore/ServerManager/Core/vtkSMProperty.h:481
#45 0x0000000008f73054 in vtkSMProxyProperty::AddProxy (this=0x13cd7a30, proxy=0x14f9a270) at /home/pablo/BuildParaview/paraview/ParaView/ParaViewCore/ServerManager/Core/vtkSMProxyProperty.cxx:79
#46 0x0000000008f412e5 in vtkSMPropertyHelper::Add (this=0x7fffffffc770, value=0x14f9a270, outputport=0) at /home/pablo/BuildParaview/paraview/ParaView/ParaViewCore/ServerManager/Core/vtkSMPropertyHelper.
cxx:823
#47 0x0000000008ec0b9f in vtkSMParaViewPipelineControllerWithRendering::Show (this=0x14f4aa40, producer=0x14e55bf0, outputPort=0, view=0x13cd6070) at /home/pablo/BuildParaview/paraview/ParaView/ParaViewCo
re/ServerManager/Rendering/vtkSMParaViewPipelineControllerWithRendering.cxx:408
#48 0x0000000008ec1906 in vtkSMParaViewPipelineControllerWithRendering::ShowInPreferredView (this=0x14f4aa40, producer=0x14e55bf0, outputPort=0, view=0x13cd6070) at /home/pablo/BuildParaview/paraview/Para
View/ParaViewCore/ServerManager/Rendering/vtkSMParaViewPipelineControllerWithRendering.cxx:559
#49 0x0000000005e3ab4e in pqApplyBehavior::showData (this=0x119767e0, source=0x14cf5550, view=0x1401dad0) at /home/pablo/BuildParaview/paraview/ParaView/Qt/ApplicationComponents/pqApplyBehavior.cxx:284
#50 0x0000000005e39fbb in pqApplyBehavior::applied (this=0x119767e0, pqproxy=0x14cf5550) at /home/pablo/BuildParaview/paraview/ParaView/Qt/ApplicationComponents/pqApplyBehavior.cxx:135
#51 0x0000000005e39eac in pqApplyBehavior::onApplied (this=0x119767e0, proxy=0x14cf5550) at /home/pablo/BuildParaview/paraview/ParaView/Qt/ApplicationComponents/pqApplyBehavior.cxx:107
#52 0x0000000005ec974f in pqApplyBehavior::qt_static_metacall (_o=0x119767e0, _c=QMetaObject::InvokeMetaMethod, _id=2,
_a=0x7fffffffcc20) at /home/pablo/BuildParaview/paraview/build/Qt/ApplicationComponen
ts/moc_pqApplyBehavior.cpp:83
#53 0x00007ffff6116469 in QMetaObject::activate(QObject*, int, int, void**) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#54 0x0000000007a82c62 in pqPropertiesPanel::applied (this=0x11a0cab0, _t1=0x14cf5550) at /home/pablo/BuildParaview/paraview/build/Qt/Components/moc_pqPropertiesPanel.cpp:362
#55 0x00000000079dac69 in pqPropertiesPanel::apply (this=0x11a0cab0) at /home/pablo/BuildParaview/paraview/ParaView/Qt/Components/pqPropertiesPanel.cxx:821
#56 0x0000000007a825f1 in pqPropertiesPanel::qt_static_metacall (_o=0x11a0cab0, _c=QMetaObject::InvokeMetaMethod, _id=5,
_a=0x7fffffffce60) at /home/pablo/BuildParaview/paraview/build/Qt/Components/moc_pq
PropertiesPanel.cpp:207
#57 0x00007ffff6116469 in QMetaObject::activate(QObject*, int, int, void**) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#58 0x00007ffff73ee342 in QAbstractButton::clicked(bool) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#59 0x00007ffff73ee544 in ?? () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#60 0x00007ffff73f00de in ?? () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#61 0x00007ffff73f022c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#62 0x00007ffff727da58 in QWidget::event(QEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#63 0x00007ffff723f4bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#64 0x00007ffff72472c3 in QApplication::notify(QObject*, QEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#65 0x00007ffff60ebeb8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#66 0x00007ffff7245f2f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/li
bQt5Widgets.so.5
#67 0x00007ffff7296ee6 in ?? () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#68 0x00007ffff729983b in ?? () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#69 0x00007ffff723f4bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#70 0x00007ffff72468e7 in QApplication::notify(QObject*, QEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5
#71 0x00007ffff60ebeb8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#72 0x00007ffff6a6b310 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Gui.so.5
#73 0x00007ffff6a6d105 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Gui.so.5
#74 0x00007ffff6a48d7b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Gui.so.5
#75 0x00007fffecda0f40 in ?? () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5XcbQpa.so.5
#76 0x00007ffff123b197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#77 0x00007ffff123b3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#78 0x00007ffff123b49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#79 0x00007ffff613e11f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#80 0x00007ffff60ea4aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#81 0x00007ffff60f2d34 in QCoreApplication::exec() () from /home/pablo/BuildParaview/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5
#82 0x0000000005db6db3 in main (argc=2, argv=0x7fffffffdbf8) at /home/pablo/BuildParaview/paraview/build/Applications/ParaView/paraview_main.cxx:121
Removed -ftrapv from compile flags

"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