WinDBG w3wp.exe x64 hang dump WRONG_SYMBOLS - asp.net

I am analyzing a hanging ASP.NET MVC website problem running under a 64 bit ASP.NET v4.0 AppPool in IIS 7.5, Windows 2008 R2 64. I have taken a dump through taskmgr, and am analysing in WinDBG x64 on Windows 7 64bit.
When running !analyze -v I see the error WRONG_SYMBOLS and BUGCHECK_STR: APPLICATION_FAULT_WRONG_SYMBOLS. This is hindering my debugging as I cannot check some threads that I need to investigate for deadlocking.
Details
My symbol server is SRV*D:\DOWNLOADEDSYMBOLS*http://msdl.microsoft.com/download/symbols
I have deleted this local folder and allowed all symbols to be download from m$.
I have loaded sos with .loadby sos clr
Output from !analyze -v:
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
FAULTING_IP:
+0
00000000`00000000 ?? ???
EXCEPTION_RECORD: ffffffffffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 0000000000000000
ExceptionCode: 80000003 (Break instruction exception)
ExceptionFlags: 00000000
NumberParameters: 0
FAULTING_THREAD: 0000000000000544
DEFAULT_BUCKET_ID: WRONG_SYMBOLS
PROCESS_NAME: w3wp.exe
ERROR_CODE: (NTSTATUS) 0x80000003 - {EXCEPTION} Breakpoint A breakpoint has been reached.
EXCEPTION_CODE: (HRESULT) 0x80000003 (2147483651) - One or more arguments are invalid
NTGLOBALFLAG: 0
APPLICATION_VERIFIER_FLAGS: 0
APP: w3wp.exe
MANAGED_STACK: !dumpstack -EE
OS Thread Id: 0x944 (15)
Current frame:
Child-SP RetAddr Caller, Callee
PRIMARY_PROBLEM_CLASS: WRONG_SYMBOLS
BUGCHECK_STR: APPLICATION_FAULT_WRONG_SYMBOLS
LAST_CONTROL_TRANSFER: from 000007fefd8910dc to 000000007712135a
STACK_TEXT:
00000000`000afac8 000007fe`fd8910dc : 00000000`00000000 00000000`00000000 000007fe`f9921630 000007fe`fadb7f66 : ntdll!NtWaitForSingleObject+0xa
00000000`000afad0 000007fe`f99241bc : 00000000`00000000 00000000`ffaf6de0 00000000`00000000 00000000`00000128 : KERNELBASE!WaitForSingleObjectEx+0x79
00000000`000afb70 00000000`ffaf3c60 : 00000000`fffffffe 00000000`00415f90 00000000`ffaf4588 000007fe`f9920000 : w3wphost!AppHostInitialize+0x278
00000000`000afbd0 00000000`ffaf11f1 : 00000000`00000000 00000000`ffaf1351 00000000`00000000 000003fd`deed0e35 : w3wp!wmain+0x470
00000000`000afd60 00000000`76e6652d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : w3wp!PerfStopProvider+0x19b
00000000`000afda0 00000000`770fc521 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0xd
00000000`000afdd0 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x1d
STACK_COMMAND: ~0s; .ecxr ; kb
FOLLOWUP_IP:
w3wphost!AppHostInitialize+278
000007fe`f99241bc f605e1b4000003 test byte ptr [w3wphost!g_dwDebugFlags (000007fe`f992f6a4)],3
SYMBOL_STACK_INDEX: 2
SYMBOL_NAME: w3wphost!AppHostInitialize+278
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: w3wphost
IMAGE_NAME: w3wphost.dll
DEBUG_FLR_IMAGE_TIMESTAMP: 4ce7c9ef
FAILURE_BUCKET_ID: WRONG_SYMBOLS_80000003_w3wphost.dll!AppHostInitialize
BUCKET_ID: X64_APPLICATION_FAULT_WRONG_SYMBOLS_w3wphost!AppHostInitialize+278
WATSON_STAGEONE_URL: http://watson.microsoft.com/StageOne/w3wp_exe/7_5_7601_17514/4ce7afa2/unknown/0_0_0_0/bbbbbbb4/80000003/00000000.htm?Retriage=1
Followup: MachineOwner
---------
Output from .chain:
Extension DLL search Path:
C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\WINXP;C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\winext;C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\winext\arcade;C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\pri;C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64;C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\winext\arcade;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft Team Foundation Server 2012 Power Tools\;C:\Program Files (x86)\Microsoft Team Foundation Server 2012 Power Tools\Best Practices Analyzer\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\
Extension DLL chain:
D:\DOWNLOADEDSYMBOLS\sos_AMD64_AMD64_4.0.30319.18034.dll\50B5A78395e000\sos_AMD64_AMD64_4.0.30319.18034.dll: image 4.0.30319.18034, API 1.0.0, built Wed Nov 28 18:45:59 2012
[path: D:\DOWNLOADEDSYMBOLS\sos_AMD64_AMD64_4.0.30319.18034.dll\50B5A78395e000\sos_AMD64_AMD64_4.0.30319.18034.dll]
sosex: image 4.5.0.0, API 1.0.0, built Thu Oct 04 03:57:55 2012
[path: C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\sosex.dll]
D:DOWNLOADEDSYMBOLS\sos_AMD64_AMD64_4.0.30319.18034.dll\50B5A78395e000\sos_AMD64_AMD64_4.0.30319.18034.dll: image 4.0.30319.18034, API 1.0.0, built Wed Nov 28 18:45:59 2012
[path: D:\DOWNLOADEDSYMBOLS\sos_AMD64_AMD64_4.0.30319.18034.dll\50B5A78395e000\sos_AMD64_AMD64_4.0.30319.18034.dll]
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos: image 4.0.30319.18034, API 1.0.0, built Wed Nov 28 18:45:59 2012
[path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos.dll]
dbghelp: image 6.2.9200.20512, API 6.2.6, built Fri Sep 07 17:45:49 2012
[path: C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\dbghelp.dll]
ext: image 6.2.9200.20522, API 1.0.0, built Fri Sep 21 20:17:05 2012
[path: C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\winext\ext.dll]
exts: image 6.2.9200.16384, API 1.0.0, built Thu Jul 26 14:15:20 2012
[path: C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\WINXP\exts.dll]
uext: image 6.2.9200.16384, API 1.0.0, built Thu Jul 26 14:15:09 2012
[path: C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\winext\uext.dll]
ntsdexts: image 6.2.9200.16384, API 1.0.0, built Thu Jul 26 14:16:01 2012
[path: C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\WINXP\ntsdexts.dll]
Output from .reload with !sym noisy
DBGHELP: ntdll - public symbols
d:\downloadedsymbols\ntdll.pdb\15EB43E23B12409C84E3CC7635BAF5A32\ntdll.pdb
..............................................................
DBGHELP: KERNELBASE - public symbols
d:\downloadedsymbols\kernelbase.pdb\91C72371DD43448192B7B46F5ED10AA02\kernelbase.pdb
Deadlock Analysis
Thread List
Output from !threads:
ID OSID ThreadOBJ State GC Mode GC Alloc Context Domain Lock Count Apt Exception
7 1 7a8 0000000001f92a50 28220 Preemptive 0000000000000000:0000000000000000 000000000119ee70 0 Ukn
13 2 1764 0000000001fa9fb0 2b220 Preemptive 0000000102D5DCC8:0000000102D5F7E8 000000000119ee70 0 MTA (Finalizer)
15 3 944 0000000001ffa010 102a220 Preemptive 0000000000000000:0000000000000000 000000000119ee70 0 MTA (Threadpool Worker)
16 4 bb0 0000000002006ec0 21220 Preemptive 0000000000000000:0000000000000000 000000000119ee70 0 Ukn
6 15 1018 00000000086704d0 20220 Preemptive 0000000000000000:0000000000000000 000000000119ee70 0 Ukn
35 16 12e4 00000000098fc820 202b220 Preemptive 000000010400E5A0:00000001040102B0 0000000002005e90 1 MTA
....etc
Output from !dlk:
*DEADLOCK DETECTED*
CLR thread 0x15 holds the lock on SyncBlock 0000000009913cf8 OBJ:00000000ffe31898
[System.Collections.Generic.Dictionary``2[[System.String, mscorlib],[System.Resources.ResourceLocator, mscorlib]]]
...and is waiting for the lock on SyncBlock 0000000009913ca8 OBJ:00000000ffe318e8[System.Resources.ResourceReader]
CLR thread 0x16 holds the lock on SyncBlock 0000000009913ca8 OBJ:00000000ffe318e8[System.Resources.ResourceReader]
...and is waiting for the lock on SyncBlock 0000000009913cf8 OBJ:00000000ffe31898
[System.Collections.Generic.Dictionary``2[[System.String, mscorlib],[System.Resources.ResourceLocator, mscorlib]]]
CLR Thread 0x15 is waiting at System.Resources.ResourceReader.AllocateStringForNameIndex(Int32, Int32 ByRef)(+0x17 IL,+0xc9 Native)
CLR Thread 0x16 is waiting at System.Resources.RuntimeResourceSet.GetObject(System.String, Boolean, Boolean)(+0xee IL,+0x375 Native)
Analysis of thread 15
Output from ~6s:
ntdll!ZwDelayExecution+0xa:
00000000`771213aa c3 ret
.. and then output from !clrstack:
OS Thread Id: 0x1018 (6)
Child SP IP Call Site
GetFrameContext failed: 1
0000000000000000 0000000000000000 <unknown>
Analysis of thread 16
Output from ~35s:
ntdll!NtWaitForMultipleObjects+0xa:
00000000`771218ca c3 ret
Output from !clrstack:
OS Thread Id: 0x12e4 (35)
Child SP IP Call Site
000000000cc9e188 00000000771218ca [HelperMethodFrame_1OBJ: 000000000cc9e188] System.Threading.WaitHandle.WaitMultiple(System.Threading.WaitHandle[], Int32, Boolean, Boolean)
000000000cc9e2c0 000007fef65e562c System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[], Int32, Boolean)
000000000cc9e320 000007fef5670d06 System.Net.TimerThread.ThreadProc()
000000000cc9e3f0 000007fef65a0a05 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
000000000cc9e550 000007fef65a0769 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
000000000cc9e580 000007fef65a0727 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
000000000cc9e5d0 000007fef65b3e81 System.Threading.ThreadHelper.ThreadStart()
000000000cc9e8e8 000007fef9ec07f3 [GCFrame: 000000000cc9e8e8]
000000000cc9ec18 000007fef9ec07f3 [DebuggerU2MCatchHandlerFrame: 000000000cc9ec18]
000000000cc9edf8 000007fef9ec07f3 [ContextTransitionFrame: 000000000cc9edf8]
000000000cc9efe8 000007fef9ec07f3 [DebuggerU2MCatchHandlerFrame: 000000000cc9efe8]

Ignore that error. !analyze -v is only useful for crash dumps (well there are some parameters I believe you can pass to it for things other than crash dumps). What it is reporting is that the reason for the "crash" is that a debug point was hit. Which is true, because when you dump a process, it injects a thread in to the process and causes a break point to be hit, and then dumps the memory for the process. So what the analyze is telling you is that the reason for the "crash" is that a break point was hit. It can be safely ignored. You should be able to see all your threads when you go to look at them. Everything else should work normally.

I think you just misinterpreted the output of the !blk command which is giving us the CLR Thread ID of offending threads and not their ordinal (which is expected by the ~s command).
To get the ordinal of these two threads you can use the output of the !threads command.
From your example :
ID OSID ThreadOBJ State GC Mode GC Alloc Context Domain Lock Count Apt Exception
7 1 7a8 0000000001f92a50 28220 Preemptive 0000000000000000:0000000000000000 000000000119ee70 0 Ukn
7 is the ordinal, 0x1 the CLR Thread ID, 0x7a8 the OS Thread ID

Related

How to disable tracing in windows cmd

When I run commands in the Windows CMD terminal I see a lot of tracing information.
I have not specifically done anything to enable it.
After some commands (not all) - for example, dotnet. I get this message
Tracing enabled # Tue Mar 30 16:34:45 2021 GMT
--- Invoked dotnet [version: 5.0.4, commit hash: f27d33729518f5aa478aa818b7b4f54a4d50bef1] main = {
C:\Program Files\dotnet\dotnet.exe
}
for PowerShell I see similar
Tracing enabled # Tue Mar 30 15:29:02 2021 GMT
--- Invoked apphost [version: 5.0.4, commit hash: f27d33729518f5aa478aa818b7b4f54a4d50bef1] main = {
C:\Program Files\PowerShell\7\pwsh.exe
-WorkingDirectory
~
}
the question is how to disable this.
The solution is to change environment variable
COREHOST_TRACE=0
Not sure how it was changed on my computer :(.

sporadic not authorized errors with artifactory

About 1 of 40 build on our CI server (and on developer machines) fails with:
[ERROR] Plugin org.apache.maven.plugins:maven-failsafe-plugin:2.17 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-failsafe-plugin:jar:2.17: Could not transfer artifact org.apache.maven.plugins:maven-failsafe-plugin:pom:2.17 from/to artifactory (https://example.com/artifactory/repo): Not authorized , ReasonPhrase:Unauthorized.
Still no clue how to fix it. Any ideas?
Storage Info:
Database Type: postgresql
Connection Url: jdbc:postgresql://postgresql:5432/artifactory
Storage Type: file-system
System Properties:
artifactory.running.mode: OSS
artifactory.running.state: Online
PID: 213
artdist: zip
artifactory.home: /opt/jfrog/artifactory
artifactory.version: 5.5.1
awt.toolkit: sun.awt.X11.XToolkit
catalina.base: /opt/jfrog/artifactory/tomcat
catalina.home: /opt/jfrog/artifactory/tomcat
catalina.useNaming: true
common.loader: "${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar"
derby.language.logStatementText: false
derby.module.mgmt.jmx: org.apache.derby.impl.services.jmxnone.NoManagementService
derby.storage.pageCacheSize: 500
derby.stream.error.logSeverityLevel: 0
file.encoding: UTF8
file.encoding.pkg: sun.io
file.separator: /
java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
java.awt.headless: true
java.awt.printerjob: sun.print.PSPrinterJob
java.class.path: /opt/jfrog/artifactory/tomcat/bin/bootstrap.jar:/opt/jfrog/artifactory/tomcat/bin/tomcat-juli.jar
java.class.version: 52.0
java.endorsed.dirs: /opt/jfrog/artifactory/tomcat/endorsed
java.ext.dirs: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
java.home: /usr/lib/jvm/java-8-openjdk-amd64/jre
java.io.tmpdir: /opt/jfrog/artifactory/tomcat/temp
java.library.path: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
java.naming.factory.initial: org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs: org.apache.naming
java.protocol.handler.pkgs: org.apache.catalina.webresources
java.runtime.name: OpenJDK Runtime Environment
java.runtime.version: 1.8.0_131-8u131-b11-2-b11
java.security.egd: file:/dev/./urandom
java.specification.name: Java Platform API Specification
java.specification.vendor: Oracle Corporation
java.specification.version: 1.8
java.util.logging.config.file: /opt/jfrog/artifactory/tomcat/conf/logging.properties
java.util.logging.manager: org.apache.juli.ClassLoaderLogManager
java.vendor: Oracle Corporation
java.vendor.url: http://java.oracle.com/
java.vendor.url.bug: http://bugreport.sun.com/bugreport/
java.version: 1.8.0_131
java.vm.info: mixed mode
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.specification.name: Java Virtual Machine Specification
java.vm.specification.vendor: Oracle Corporation
java.vm.specification.version: 1.8
java.vm.vendor: Oracle Corporation
java.vm.version: 25.131-b11
jdk.tls.ephemeralDHKeySize: 2048
jruby.compile.invokedynamic: false
line.separator:
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH: true
org.jboss.logging.provider: slf4j
os.arch: amd64
os.name: Linux
os.version: 3.16.0-4-amd64
package.access: sun.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.tomcat.
package.definition: sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.naming.,org.apache.tomcat.
path.separator: :
server.loader:
shared.loader:
spring.beaninfo.ignore: true
sun.arch.data.model: 64
sun.boot.class.path: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes
sun.boot.library.path: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
sun.cpu.endian: little
sun.cpu.isalist:
sun.io.unicode.encoding: UnicodeLittle
sun.java.command: org.apache.catalina.startup.Bootstrap start
sun.java.launcher: SUN_STANDARD
sun.jnu.encoding: UTF-8
sun.management.compiler: HotSpot 64-Bit Tiered Compilers
sun.os.patch.level: unknown
tomcat.util.buf.StringCache.byte.enabled: true
tomcat.util.scan.StandardJarScanFilter.jarsToScan: log4j-web*.jar,log4j-taglib*.jar,log4javascript*.jar,slf4j-taglib*.jar
tomcat.util.scan.StandardJarScanFilter.jarsToSkip: bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-storeconfig.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj-*.jar,tomcat-api.jar,tomcat-util.jar,tomcat-util-scan.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-jni.jar,tomcat-websocket.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,tomcat-jdbc.jar,tools.jar,commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,commons-math*.jar,commons-pool*.jar,jstl.jar,taglibs-standard-spec-*.jar,geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,junit.jar,junit-*.jar,ant-launcher.jar,cobertura-*.jar,asm-*.jar,dom4j-*.jar,icu4j-*.jar,jaxen-*.jar,jdom-*.jar,jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,xom-*.jar
user.dir: /
user.home: /home/artifactory
user.language: en
user.name: artifactory
user.timezone: Etc/UTC
General JVM Info:
Available Processors: 2
Heap Memory Usage-Committed: 536870912
Heap Memory Usage-Init: 536870912
Heap Memory Usage-Max: 4294967296
Heap Memory Usage-Used: 301045776
Non-Heap Memory Usage-Committed: 226463744
Non-Heap Memory Usage-Init: 2555904
Non-Heap Memory Usage-Max: -1
Non-Heap Memory Usage-Used: 220772408
JVM Arguments:
Args: -Djava.util.logging.config.file=/opt/jfrog/artifactory/tomcat/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djdk.tls.ephemeralDHKeySize=****
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources
-Xms512m
-Xmx2g
-Xss256k
-XX:+UseG1GC
-XX:OnOutOfMemoryError=kill -9 %p
-Djruby.compile.invokedynamic=false
-Dfile.encoding=UTF8
-Dartdist=zip
-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
-Djava.security.egd=file:/dev/./urandom
-Xmx4g
-Dartifactory.home=/opt/jfrog/artifactory
-Dfile.encoding=UTF8
-Djruby.compile.invokedynamic=false
-Djava.endorsed.dirs=/opt/jfrog/artifactory/tomcat/endorsed
-Dcatalina.base=/opt/jfrog/artifactory/tomcat
-Dcatalina.home=/opt/jfrog/artifactory/tomcat
-Djava.io.tmpdir=/opt/jfrog/artifactory/tomcat/temp
We are using the API key instead of the encrypted password on our CI server now. Thanks to #ajeans.

Connecting Visual Studio (w Xamarin) to Mac

I have a fully set-up Mac with OSX 10.11 with all the necessary to run Xamarin for iOS.
I've installed on a Windows 10 laptop Visual Studio 2015 and got the following error:
Unable to authenticate with ssh keys. Please try to log in with credentials first
Then I've installed on a W7 PC VS2015, same up to date version of the laptop, and tried the same connection, under the same network: works flawlessly.
Everything is form the stable channel.
The firewall on the laptop, like on the other PC allows Xamarin to comunicate on LAN.
From the laptop and the PC I can remotely login via ssh the Mac in less than a second.
Here's the log from the laptop:
Xamarin Information: 0 : [2017-01-23 21:54:24.1947] Xamarin - 4.2.2.11-cycle8+00fa5cc
Xamarin.VisualStudio.Activation.AccountManager Information: 0 : [2017-01-23 21:54:24.4013] VS2015 Community
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.6238] No license found for iOS
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.7790] Running license sync for iOS
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.9327] Not logged in, using iOS Community
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.1185] No license found for Android
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.2981] Running license sync for Android
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.4847] Not logged in, using Android Community
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:25.7654] Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:25.9455] Initialization finished
Xamarin.VisualStudio.Android.XamarinAndroidPackage Warning: 0 : [2017-01-23 21:54:26.1277] Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage
Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerService Warning: 0 : [2017-01-23 21:54:26.6038] An unexpected error occurred trying to initialize Android Designer.
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:37.7048] Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:37.8834] Initialization finished
Xamarin.VisualStudio.IOS.XamarinIOSPackage Warning: 0 : [2017-01-23 21:54:38.0746] Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage.
Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2017-01-23 21:54:38.2597] MDAddinsHash: c92d0626d347aaa02839689eaac2961d24c9f446
Xamarin.VisualStudio.IOS.Bonjour.BonjourDiscovery Information: 0 : [2017-01-23 21:54:40.8859] Bonjour service 'Gian iMac' did not respond with its IP address.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:54:58.6464] MacServer State transition from DisconnectedState to SshConnectingState on Gian-iMac.local (192.168.1.100)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2017-01-23 21:55:09.3709] Starting connection to Mac Gian-iMac.local...
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2017-01-23 21:55:16.7865] Unable to authenticate with SSH keys. Please try to log in with credentials first
Xamarin.Messaging.VisualStudio.Exceptions.MessagingAuthenticationException: Could not authenticate the user 'gianventotto' with SSH keys. Please check that both $HOME folder and ~/.ssh/authorized_keys have the appropiate permissions to use SSH. More details: Permission denied (publickey). ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (publickey).
in Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
in Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory)
in Renci.SshNet.Session.Connect()
in Renci.SshNet.BaseClient.Connect()
in Xamarin.Messaging.Client.Ssh.SshMessagingConnection.ConnectSsh()
in Xamarin.Messaging.VisualStudio.MessagingService.<ConnectAsync>d__71.MoveNext()
--- Fine della traccia dello stack dell'eccezione interna ---
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2017-01-23 21:55:17.1607] Unable to authenticate with SSH keys. Please try to log in with credentials first
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:55:17.3478] MacServer State transition from SshConnectingState to DisconnectedState on Gian-iMac.local (192.168.1.100)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:55:17.5335] Disconnected from Mac Gian-iMac.local (192.168.1.100)
And here's the corresponding Mac sshd log:
Jan 23 21:54:49 DellGian sshd[432]: Invalid user a from fe80::684c:a641:25d5:499a%en1
Jan 23 21:54:49 DellGian sshd[432]: input_userauth_request: invalid user a [preauth]
Jan 23 21:54:49 DellGian sshd[432]: Connection closed by fe80::684c:a641:25d5:499a%en1 [preauth]
Jan 23 21:54:49 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.B87D7BAE-892F-4EB8-91E9-FD74A3B0C534[432]): Service exited with abnormal code: 255
Jan 23 21:55:06 DellGian sshd[434]: Accepted keyboard-interactive/pam for gianventotto from fe80::684c:a641:25d5:499a%en1 port 54361 ssh2
Jan 23 21:55:08 DellGian sshd[438]: Accepted keyboard-interactive/pam for gianventotto from fe80::684c:a641:25d5:499a%en1 port 54366 ssh2
Jan 23 21:55:09 DellGian sshd[437]: Received disconnect from fe80::684c:a641:25d5:499a%en1: 11: Connection terminated by the client.
Jan 23 21:55:09 DellGian sshd[437]: Disconnected from fe80::684c:a641:25d5:499a%en1
Jan 23 21:55:09 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.3A1CBE22-0A14-479F-AB4B-47981092D26C[434]): Service exited with abnormal code: 255
Jan 23 21:55:09 DellGian sshd[441]: Received disconnect from fe80::684c:a641:25d5:499a%en1: 11: Connection terminated by the client.
Jan 23 21:55:09 DellGian sshd[441]: Disconnected from fe80::684c:a641:25d5:499a%en1
Jan 23 21:55:09 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.0EEDF8CA-4DBF-4EF5-BCC8-00CF25C16C83[438]): Service exited with abnormal code: 255
Jan 23 21:55:28 DellGian sshd[445]: Connection reset by fe80::684c:a641:25d5:499a%en1 [preauth]
Jan 23 21:55:28 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.486B5640-1C66-40F0-AFEC-44D3C54C39E9[445]): Service exited with abnormal code: 255
Shouldn't I just use the PC? Nope, it needs almost 10 min to start Visual Studio!
Thanks in advance for any help.
It sounds like your Win 10 laptop has ssh keys in place for passwordless login, and perhaps (or not) that key was added to your authorized_keys file on your Mac at ~/.ssh (shortcut for /Users/<username>/.ssh) , but that the login with the ssh keys is not working, perhaps due to permissions issues. Relevant line of log above:
Xamarin.Messaging.VisualStudio.Exceptions.MessagingAuthenticationException: Could not authenticate the user 'gianventotto' with SSH keys. Please check that both $HOME folder and ~/.ssh/authorized_keys have the appropiate permissions to use SSH. More details: Permission denied (publickey). ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (publickey).
Maybe try removing your Win 10 ssh key from the authorized_keys file on your Mac and log in from VS using your username and password instead?

An unhandled win32 exception occured in w3wp.exe - Windows 8 IIS 8 Classic ASP

I have a website made in classic ASP that I'm trying to migrate from a windows xp development machine to a windows 8 development machine and in production from a Windows Server 2003 machine to Server 2012. We use Crystal Reports Report Application Server 9 to generate reports.
In windows 8 I installed IIS 8 and configured the .NET 2 classic application pool to use 32 bit applications and set the identity to Network Service. I installed CR9 RAS and the 64 bit runtime. When I go to print a report on the website I get this error on the first line that creates a CR object:
An unhandled win32 exception occured in w3wp.exe
I ran DebugDiag and was able to get a crash dump as follows:
In w3wp__.NET v2.0 Classic__PID__2220__Date__10_03_2013__Time_12_59_55PM__954__Second_Chance_Exception_C000041D.dmp the module C:\Windows\System32\user32.dll has caused an access violation exception (0xC0000005) when trying to write to memory location 0x03f77de0 on thread 35
Thread 29 - System ID 2736
Entry point cachemanager!DllUnregisterServer+accd
Create time 9/26/2013 12:30:24 PM
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0
Full Call Stack
Function Arg 1 Arg 2 Arg 3 Arg 4 Source
cachemanager!DllUnregisterServer+78c5 029e8a63 000e00be 00000081 00000000
user32!UserCallWinProcCheckWow+100 029e8a63 029e8a63 00000000 000e00be
user32!DispatchClientMessage+15d 012a2170 00000000 00000081 00000000
user32!__fnINLPCREATESTRUCT+8d 03fdf6f4 00000000 03fdfc10 770e2bf0
ntdll!KiUserCallbackDispatcher+2e 00000000 0000c083 0000c083 00000000
user32!VerNtUserCreateWindowEx+238 00000000 00000000 80000000 00000000
user32!CreateWindowInternal+26b 0000c083 00000000 80000000 00000000
user32!CreateWindowExW+37 00000000 0000c083 00000000 80000000
cachemanager!DllUnregisterServer+7a3d 00000000 03fdfba8 00000000 80000000
cachemanager!DllUnregisterServer+75d9 00000000 05335d98 05335d98 00000000
cachemanager!DllUnregisterServer+6e94 05335688 00000000 00000000 05335d98
cachemanager!DllUnregisterServer+ad2c 05335d98 03fdfc70 770fbf39 05335d98
kernel32!BaseThreadInitThunk+e 05335d98 8eb1ec43 00000000 00000000
ntdll!__RtlUserThreadStart+72 029ebeab 05335d98 ffffffff 77171df7
ntdll!_RtlUserThreadStart+1b 029ebeab 05335d98 00000000 00000000
Exception Information
In w3wp__.NET v2.0 Classic__PID__356__Date__09_26_2013__Time_12_30_24PM__637__Second_Chance_Exception_C000041D.dmp the module C:\Windows\System32\user32.dll has caused an access violation exception (0xC0000005) when trying to write to memory location 0x04443000 on thread 29
Module Information
Image Name: C:\Windows\System32\user32.dll Symbol Type: PDB
Base address: 0x00905a4d Time Stamp: Thu Sep 20 00:10:05 2012
Checksum: 0x00000000 Comments:
COM DLL: False Company Name: Microsoft Corporation
ISAPIExtension: False File Description: Multi-User Windows USER API Client DLL
ISAPIFilter: False File Version: 6.2.9200.16420 (win8_gdr.120919-1813)
Managed DLL: False Internal Name: user32
VB DLL: False Legal Copyright: © Microsoft Corporation. All rights reserved.
Loaded Image Name: user32.dll Legal Trademarks:
Mapped Image Name: Original filename: user32
Module name: user32 Private Build:
Single Threaded: False Product Name: Microsoft® Windows® Operating System
Module Size: 1.09 MBytes Product Version: 6.2.9200.16420
Symbol File Name: c:\symcache\wuser32.pdb\81836B9A16A64DBBB5209E254A61DD072\wuser32.pdb Special Build: &
It seems that possibly network service doesn't have access to something so I went to the directory CR installs in, the whole C drive, the windows temp folder, and my website folder and gave them all full control from network service with no change.
I tried uninstalling crystal reports and hitting that page to see a different error but I still got the same crash so I'm not sure if it is an actual install issue or something more serious in terms of how I configured IIS or classic ASP for IIS 8.
I am trying sysinternals process monitor now and I'm seeing some buffer overflows but since I don't know how to use the program I'm not sure if it is with this dlls or even from iis.
How can I further debug or solve this issue?
UPDATE:
IO ran sysinternals process monitor and I was able to see when my asp page is hit I get a buffer overflow. After this occurs, when the Crystal Reports DLLs are called it says FILE LOCKED WITH ONLY READERS
It seems that somehow something is locking the files before it even gets to the CR. What could be causing a buffer overflow when visiting these asp pages?

Interesting variation of the TNSPING Message 3511 error

I have the following problem with Oracle 11g TNSPING utility: fresh 11g client installation, ORACLE_HOME set up properly, TNS_ADMIN also set, msb files available in desired location, readable by the user that invokes TNSPING. Connection to the database works, sqlplus can be used to connect. TNSPING, however, fails badly. See attached log:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\USERNAME>set ORACLE_HOME=C:\Work\Software\Oracle\product\11.2.0\client_1
C:\Users\USERNAME>set TNS_ADMIN=%ORACLE_HOME%\network\admin
C:\Users\USERNAME>set NLS_LANG=ENGLISH_POLAND.EE8MSWIN1250
C:\Users\USERNAME>dir %TNS_ADMIN%\tnsnames.ora
Volume in drive C is XXX
Volume Serial Number is YYY
Directory of C:\Work\Software\Oracle\product\11.2.0\client_1\network\admin
2013-03-19 12:26 358 tnsnames.ora
1 File(s) 358 bytes
0 Dir(s) 59 082 616 832 bytes free
C:\Users\USERNAME>dir %ORACLE_HOME%\network\mesg\tns*.msb
Volume in drive C is XXX
Volume Serial Number is YYY
Directory of C:\Work\Software\Oracle\product\11.2.0\client_1\network\mesg
2010-03-31 07:01 53 248 tnspl.msb
2010-03-31 07:01 47 104 tnsus.msb
2 File(s) 100 352 bytes
0 Dir(s) 59 082 616 832 bytes free
C:\Users\USERNAME>sqlplus <USER>/<PASSWORD>#<DATABASE>
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 19 14:36:34 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
SQL> exit
Disconnected from Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
C:\Users\USERNAME>tnsping <DATABASE>
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 19-MAR-2013 14:37:52
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Message 3511 not found; No message file for product=NETWORK, facility=TNSMessage 3512 not found; No message file for product=NETWORK, facility=TNSMessage 3513 not found; No message file for product=NETWORK, facility=TNSMessage 3509 not found; No message file for product=NETWORK, facility=TNS
Please note: I had to replace all the user credentials, database name, etc., due to security considerations.
Can you help me, please, troubleshoot the issue? I have read all the other StackExchange topics related to TNSPING failure, but each of the solutions (set up ORACLE_HOME, reinstall, make sure registry points to proper home, check msb files) has failed me...
Thanks in advance!

Resources