Ghostscript: Stack Underflow Error - ghostscript

I'm trying to generate a PDF from a fairly large PS.
Running:
/usr/bin/ps2pdf -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -dPDFSettings=/printer /home/sls/slspdf.tmp.8bcbd0365c30f4d287e416e8.ps
With result:
Error: /usr/bin/ps2pdf returned code 1: Error: /stackunderflow in --pop--
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1951 1 3 %oparray_pop 1950 1 3 %oparray_pop 1934 1 3 %oparray_pop 1820 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 1 1 5 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval--
Dictionary stack:
--dict:1186/1684(ro)(G)-- --dict:0/20(G)-- --dict:132/200(L)-- --dict:29/40(L)--
Current allocation mode is local
Last OS error: Not a directory
Current file position is 797649
GPL Ghostscript 9.15: Unrecoverable error, exit code 1
Throwing it through straight gs (without the ps2pdf wrapper) doesn't yield much usable info either:
gs -sDEVICE=pdfwrite -o test.pdf - < /home/sls/slspdf.tmp.8bcbd0365c30f4d287e416e8.ps
Output:
GPL Ghostscript 9.15 (2014-09-22)
Copyright (C) 2014 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file /usr/share/ghostscript/9.15/Resource/Font/NimbusMonL-Bold.
Can't find (or can't open) font file NimbusMonL-Bold.
Can't find (or can't open) font file /usr/share/ghostscript/9.15/Resource/Font/NimbusMonL-Bold.
Can't find (or can't open) font file NimbusMonL-Bold.
Querying operating system for font files...
Loading NimbusMonL-Bold font from /usr/share/fonts/default/Type1/n022004l.pfb... 4754536 3291634 8267744 6868788 1 done.
Loading NimbusMonL-Regu font from /usr/share/fonts/default/Type1/n022003l.pfb... 4797552 3426617 8463168 7042500 2 done.
Error: /stackunderflow in --pop--
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1951 1 3 %oparray_pop 1950 1 3 %oparray_pop 1934 1 3 %oparray_pop 1820 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 1 1 5 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval--
Dictionary stack:
--dict:1180/1684(ro)(G)-- --dict:0/20(G)-- --dict:132/200(L)-- --dict:29/40(L)--
Current allocation mode is local
Last OS error: Not a directory
GPL Ghostscript 9.15: Unrecoverable error, exit code 1
The only thing that seems to make this work for me is to physically make the input file smaller... which of course isn't a very acceptable solution. We could however script this up to generate several 'pages' of PDF output and then append them together in a second-pass if that's the best answer. Any thoughts on the root cause here?
I see the bit about Last OS error: Not a directory, is that just the last general last OS error or is that being thrown from Ghostscript in particular? Seems it's generic since truncating the file makes it work, but I've no idea.

Forget the last OS error.
Your problem is that your PostScript program has an error. PostScript is a stack based language, and its telling you that you executed the 'pop' operator to remove the top element from the stack, and the stack was empty.
Without seeing the PostScript program I can't say more than that. Possibly its been corrupted in some way.

Related

Error installing IBM Rational Software Architect for MacOs

I'm able to successfully install RSA 9.6 on my MacBook, but when I try to start the application I get the following error written out into my log. Any help would be gratefully welcomed
!SESSION Fri Jun 30 08:21:28 CDT 2017 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2017-06-30 08:21:28.394
!MESSAGE Could not find extension: com.ibm.cds
!SESSION 2017-06-30 08:21:28.353 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product com.ibm.rational.rsa.product.v90.ide
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -clean -product com.ibm.rational.rsa.product.v90.ide
!ENTRY org.eclipse.osgi 4 0 2017-06-30 08:21:29.088
!MESSAGE Bundle com.ibm.cds not found.
!ENTRY org.eclipse.equinox.app 0 0 2017-06-30 08:21:29.379
!MESSAGE Product com.ibm.rational.rsa.product.v90.ide could not be found.
!ENTRY org.eclipse.osgi 4 0 2017-06-30 08:21:36.198
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
I found this on https://www.ibm.com/developerworks/community/forums/html/topic?id=9ed43812-9c67-4fd5-921b-f7acb405e12b. The short answer is edit the following file:
/Applications/IBM/SoftwareDeliveryPlatform/RSA.app/Contents/MacOS/ExecuteScript
And change the one line to specify v9.6 instead of 9.5. I tried an earlier version of RSA (9.1) and it had a similar problem of pointing to 9.0. Really sad because this is a very powerful tool.
Change $ECLIPSE_APP -product com.ibm.rational.rsa.product.v95.ide &
to $ECLIPSE_APP -product com.ibm.rational.rsa.product.v96.ide &
https://www.ibm.com/developerworks/community/forums/html/topic?id=9ed43812-9c67-4fd5-921b-f7acb405e12b

Problems running websphere application server for developers

I've just installed Websphere application server for developers version 8.5.5.9, using IBM installation manager. When I try and create a profile I get an error that points me to a log file. Here's the beginning of it:
java.fullversion=JRE 1.6.0 IBM J9 2.6 Windows 7 amd64-64 Compressed References 20151222_283040 (JIT enabled, AOT enabled)
J9VM - R26_Java626_SR8_20151222_1616_B283040
JIT - tr.r11_20151209_107111.01
GC - R26_Java626_SR8_20151222_1616_B283040_CMPRSS
J9CL - 20151222_283040
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
!ENTRY org.eclipse.equinox.app 0 0 2016-07-27 11:53:16.101
!MESSAGE Product com.ibm.ws.pmt.views.standalone.standAloneWasTools could not be found.
!ENTRY org.eclipse.osgi 2 0 2016-07-27 11:53:16.146
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-07-27 11:53:16.146
!MESSAGE Bundle websphere#plugins\com.ibm.ws.pmt.views_8.5.1.jar was not resolved.
!SUBENTRY 2 com.ibm.ws.pmt.views 2 0 2016-07-27 11:53:16.146
!MESSAGE Missing imported package com.ibm.ws.profile.utils_0.0.0.
!SUBENTRY 2 com.ibm.ws.pmt.views 2 0 2016-07-27 11:53:16.146
!MESSAGE Missing imported package com.ibm.ws.profile_0.0.0.
!SUBENTRY 2 com.ibm.ws.pmt.views 2 0 2016-07-27 11:53:16.146
!MESSAGE Missing imported package com.ibm.ws.wct.config.definitionLocations_0.0.0.
!SUBENTRY 2 com.ibm.ws.pmt.views 2 0 2016-07-27 11:53:16.146
!MESSAGE Missing imported package com.ibm.ws.install.configmanager.logging_0.0.0.
!SUBENTRY 2 com.ibm.ws.pmt.views 2 0 2016-07-27 11:53:16.146
!MESSAGE Missing imported package com.ibm.ws.wct.config.definitions_0.0.0.
!SUBENTRY 2 com.ibm.ws.pmt.views 2 0 2016-07-27 11:53:16.146
!MESSAGE Missing imported package com.ibm.wsspi.profile.registry_0.0.0.
!SUBENTRY 2 com.ibm.ws.pmt.views 2 0 2016-07-27 11:53:16.146
!MESSAGE Missing imported package com.ibm.wsspi.profile_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-07-27 11:53:16.147
!MESSAGE Bundle websphere#plugins\com.ibm.ws.pmt.tools_8.0.0.jar was not resolved.
!SUBENTRY 2 com.ibm.ws.pmt.tools 2 0 2016-07-27 11:53:16.147
!MESSAGE Missing imported package com.ibm.ws.install.configmanager.logging_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-07-27 11:53:16.147
!MESSAGE Bundle websphere#plugins\com.ibm.ws.pmt.views.standalone_8.0.0.jar was not resolved.
Cleary there are some missing jar files, but I have no idea why they weren't installed or were to get them from.
Should also mention that I'm completely new to Websphere.
I was having this same issue, but found the solution (at least for me).
What I found was that my computer was imaged with #user.home pointing to a UNC, which webshpere does not like. (see http://www-01.ibm.com/support/docview.wss?uid=swg21584343). When I got the error, a dialog was even displayed showing the location of the error log with a UNC name.
As shown in the ibm link I placed in the previous paragraph, to resolve i simply located my config.ini (in my case, C:\Program_Files
(x86)\IBM\WebSphere\AppServer\bin\ProfileManagement\eclipse64\configuration) and changed #user.home to c\:/temp in the following 2 keys:
• osgi.instance.area.default=#user.home/AppData/Lo . . .
• osgi.configuration.area=#user.home/AppData/Lo . . .
Hope this helps!
G

Mac Appcelerator Studio: An error has occurred

When trying to run Appcelerator Studio getting this error
Ive tried to reinstall Studio with all libraries and caches, nothing works.
OSX 10.10.4 (14E46)
Java 8 Update 60
An error has occurred.
See the log file
~/Appcelerator_Studio_Workspace/.metadata/.log.
!SESSION 2015-08-20 19:53:03.688 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.9.0-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=ru_RU
Framework arguments: -keyring /Users/user/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/user/.eclipse_keyring -consoleLog -showlocation
!ENTRY org.eclipse.core.resources 2 10035 2015-08-20 19:53:05.671
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.core.net 1 0 2015-08-20 19:53:06.419
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!ENTRY org.eclipse.osgi 4 0 2015-08-20 19:53:17.256
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/w3c/dom/stylesheets/StyleSheetList
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:759)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 44 more
!ENTRY org.eclipse.core.jobs 2 2 2015-08-20 19:53:17.680
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.aptana.usage.internal.DefaultAnalyticsEventHandler$1
To fix this issue you need to switch JavaVirtualMachines from jdk1.9.0.jdk to jdk1.7.0_80.jdk or 1.6.0.jdk
/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/

It be fail to startup MyEclipse 10.7 when the argument -vm be changed to other jdk ,SOS

why I can't change myeclipse 10.7 64bit configeration file : myelispse.ini, change config argument "-vm" will fail to start up.by the way,my operation system is win8 64bit,and my jdk work without any problem.
someone could tell me the reason and help me to solved the problem,thanks a lot!
good configeration just like that:
#utf8 (do not remove)
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650
-install
G:/Program Files/MyEclipse/MyEclipse 10
-vm
G:/Program Files/MyEclipse/Common/binary/com.sun.java.jdk.win32.x86_64_1.6.0.013/bin/javaw.exe
-vmargs
-Xmn512m
-Xms1024m
-Xmx1024m
-XX:SurvivorRatio=4
-XX:PermSize=256m
-XX:ReservedCodeCacheSize=128m
-Xverify:none
-Xnoclassgc
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:MaxTenuringThreshold=10
-XX:ParallelGCThreads=4
-XX:CMSInitiatingOccupancyFraction=85
-XX:+DisableExplicitGC
-Dosgi.nls.warnings=ignore
bad configeration :
#utf8 (do not remove)
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650
-install
G:/Program Files/MyEclipse/MyEclipse 10
-vm
G:/Program Files/Java/jdk1.7.0_09/bin/javaw.exe
-vmargs
-Xmn512m
-Xms1024m
-Xmx1024m
-XX:SurvivorRatio=4
-XX:PermSize=256m
-XX:ReservedCodeCacheSize=128m
-Xverify:none
-Xnoclassgc
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:MaxTenuringThreshold=10
-XX:ParallelGCThreads=4
-XX:CMSInitiatingOccupancyFraction=85
-XX:+DisableExplicitGC
-Dosgi.nls.warnings=ignore
error log:
!SESSION 2013-01-26 23:51:39.452 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_09
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.equinox.app 0 0 2013-01-26 23:51:41.347
!MESSAGE Product com.genuitec.myeclipse.product.ide could not be found.
!ENTRY org.eclipse.osgi 2 0 2013-01-26 23:51:50.086
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-26 23:51:50.086
!MESSAGE Bundle reference:file:../Common/plugins/com.genuitec.eclipse.core_10.7.0.me201211011550.jar was not resolved.
!SUBENTRY 2 com.genuitec.eclipse.core 2 0 2013-01-26 23:51:50.087
!MESSAGE Missing host null_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-26 23:51:50.087
!MESSAGE Bundle reference:file:../Common/plugins/com.genuitec.eclipse.jniwrapper_9.0.0.me201105051700.jar was not resolved.
!SUBENTRY 2 com.genuitec.eclipse.jniwrapper 2 0 2013-01-26 23:51:50.087
!MESSAGE Missing host null_0.0.0.
!ENTRY org.eclipse.osgi 2 0 2013-01-26 23:51:52.696
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-26 23:51:52.696
!MESSAGE Bundle com.genuitec.eclipse.aspphp.core_9.0.0.me201108091322 [1224] was not resolved.
!SUBENTRY 2 com.genuitec.eclipse.aspphp.core 2 0 2013-01-26 23:51:52.696
!MESSAGE Missing required bundle com.genuitec.eclipse.core_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-26 23:51:52.696
!MESSAGE Bundle com.genuitec.eclipse.aspphp.ui_9.0.0.me201108091322 [1225] was not resolved.
!SUBENTRY 2 com.genuitec.eclipse.aspphp.ui 2 0 2013-01-26 23:51:52.696
!MESSAGE Missing required bundle com.genuitec.eclipse.core_0.0.0.
!SUBENTRY 2 com.genuitec.eclipse.aspphp.ui 2 0 2013-01-26 23:51:52.696
!MESSAGE Missing required bundle com.genuitec.eclipse.aspphp.core_0.0.0.
!SUBENTRY 2 com.genuitec.eclipse.aspphp.ui 2 0 2013-01-26 23:51:52.696
!MESSAGE Missing required bundle com.genuitec.eclipse.webdesigner3_0.0.0.
!SUBENTRY 2 com.genuitec.eclipse.aspphp.ui 2 0 2013-01-26 23:51:52.696
!MESSAGE Missing required bundle com.genuitec.eclipse.core.common_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-26 23:51:52.696
!MESSAGE Bundle com.genuitec.eclipse.ast.deploy.core_10.1.0.me201211011550 [1226] was not resolved.
!SUBENTRY 2 com.genuitec.eclipse.ast.deploy.core 2 0 2013-01-26 23:51:52.696
!MESSAGE Missing required bundle com.genuitec.eclipse.j2eedt.core_0.0.0.
...................so many erorr.........................
MyEclipse 10.7 will work just fine if started with a 1.7 JDK. I can see nothing wrong with your configuration - a quick sanity check, are you sure the 1.7 VM you are pointing to is a 64-bit VM? You could confirm this by going to the bin folder on the command line and typing "java -version" to see if it reports a 64-bit VM.
Is there any specific reason you want to start with a 1.7 VM? Even if you leave the default VM arguments in the ini file (1.6), you can still configure a 1.7 JRE / JDK on the JRE preference page and use that in your applications and / or set that to the workspace default JRE.

What is the "Break instruction exception" in WinDbg?

I'm debugging some random crash bugs, but actually very difficult to go deep into. Because when i open crash dump, only find one error:
0:000> .exr -1
ExceptionAddress: 00000000
ExceptionCode: 80000003 (Break instruction exception)
ExceptionFlags: 00000000
NumberParameters: 0
Actually i haven't set any hard-code breakpoint in code, so i search about this exception in google, some people said this exception may be caused by heap corruption.
So my question is,
Is there any other reason why cause this exception, except hard-code breakpoint, manual breakpoint while debugging, heap corruption?
Another question is, i try to use Application Verifier to check heap corruption, i understand how does it work, app verifier will trigger break instruction exception while heap corruption. But currently, i run without app verifier, who will raise the break instruction exception?
Additional info: call stack for current thread.
*0:000> k
ChildEBP RetAddr
0012f96c 7c827d19 ntdll!KiFastSystemCallRet
0012f970 77e6202c ntdll!NtWaitForMultipleObjects+0xc
0012fa18 7739bbd1 kernel32!WaitForMultipleObjectsEx+0x11a
0012fa74 3b288523 user32!RealMsgWaitForMultipleObjectsEx+0x141
0012fab8 3b32b9bd msenv!EnvironmentMsgLoop+0x1ea
0012fae4 3b32b94d msenv!CMsoCMHandler::FPushMessageLoop+0x86
0012fb0c 3b32b8e9 msenv!SCM::FPushMessageLoop+0xb7
0012fb28 3b32b8b8 msenv!SCM_MsoCompMgr::FPushMessageLoop+0x28
0012fb48 3b32be4e msenv!CMsoComponent::PushMsgLoop+0x28
0012fbe0 3b327561 msenv!VStudioMainLogged+0x482
0012fc0c 3000a4a6 msenv!VStudioMain+0xc1
0012fc38 30007301 devenv!util_CallVsMain+0xff
0012ff14 3000760c devenv!CDevEnvAppId::Run+0x91f
0012ff30 30007680 devenv!WinMain+0x74
0012ffc0 77e6f23b devenv!License::GetPID+0x258
0012fff0 00000000 kernel32!BaseProcessStart+0x23*
Our application is a Visual Studio Package.
Below is the result from !analyze -v
0:000> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*** WARNING: Unable to verify checksum for mscorlib.ni.dll
*************************************************************************
*** ***
*** ***
*** Your debugger is not using the correct symbols ***
*** ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: kernel32!pNlsUserInfo ***
*** ***
*************************************************************************
*************************************************************************
*** ***
*** ***
*** Your debugger is not using the correct symbols ***
*** ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: kernel32!pNlsUserInfo ***
*** ***
*************************************************************************
FAULTING_IP:
+0
00000000 ?? ???
EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 00000000
ExceptionCode: 80000003 (Break instruction exception)
ExceptionFlags: 00000000
NumberParameters: 0
FAULTING_THREAD: 00001f1c
DEFAULT_BUCKET_ID: STATUS_BREAKPOINT
PROCESS_NAME: devenv.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
MANAGED_STACK:
SP IP Function
0012E584 09C8A903 Microsoft_VisualStudio_Design!Microsoft.VisualStudio.NativeMethods.ThrowOnFailure(Int32, Int32[])+0x3b
0012E590 09C8C604 Microsoft_VisualStudio_Design!Microsoft.VisualStudio.Design.VSDesignSurfaceManager.Microsoft.VisualStudio.Shell.Interop.IVsSelectionEvents.OnElementValueChanged(UInt32, System.Object, System.Object)+0x144
StackTraceString: <none>
HResult: 80004005
EXCEPTION_OBJECT: !pe 3115d464
Exception object: 3115d464
Exception type: System.Runtime.InteropServices.COMException
Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
InnerException: <none>
StackTrace (generated):
SP IP Function
0012E584 09C8A903 Microsoft_VisualStudio_Design!Microsoft.VisualStudio.NativeMethods.ThrowOnFailure(Int32, Int32[])+0x3b
0012E590 09C8C604 Microsoft_VisualStudio_Design!Microsoft.VisualStudio.Design.VSDesignSurfaceManager.Microsoft.VisualStudio.Shell.Interop.IVsSelectionEvents.OnElementValueChanged(UInt32, System.Object, System.Object)+0x144
StackTraceString: <none>
HResult: 80004005
MANAGED_OBJECT: !dumpobj 3201988
Name: System.String
MethodTable: 79330a00
EEClass: 790ed64c
Size: 158(0x9e) bytes
(C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll)
String: Error HRESULT E_FAIL has been returned from a call to a COM component.
Fields:
MT Field Offset Type VT Attr Value Name
79332c4c 4000096 4 System.Int32 1 instance 71 m_arrayLength
79332c4c 4000097 8 System.Int32 1 instance 70 m_stringLength
793316e0 4000098 c System.Char 1 instance 45 m_firstChar
79330a00 4000099 10 System.String 0 shared static Empty
>> Domain:Value 00219c28:03031198 <<
79331630 400009a 14 System.Char[] 0 shared static WhitespaceChars
>> Domain:Value 00219c28:03031798 <<
EXCEPTION_MESSAGE: Error HRESULT E_FAIL has been returned from a call to a COM component.
MANAGED_OBJECT_NAME: System.Runtime.InteropServices.COMException
LAST_CONTROL_TRANSFER: from 7c827d19 to 7c82860c
PRIMARY_PROBLEM_CLASS: STATUS_BREAKPOINT
BUGCHECK_STR: APPLICATION_FAULT_STATUS_BREAKPOINT
STACK_TEXT:
09c8a903 Microsoft_VisualStudio_Design!Microsoft.VisualStudio.NativeMethods.ThrowOnFailure
09c8c604 Microsoft_VisualStudio_Design!Microsoft.VisualStudio.Design.VSDesignSurfaceManager.Microsoft.VisualStudio.Shell.Interop.IVsSelectionEvents.OnElementValueChanged
STACK_COMMAND: dds 12e584 ; kb
FOLLOWUP_IP:
+9c8a903
09c8a903 8bc6 mov eax,esi
SYMBOL_STACK_INDEX: 0
SYMBOL_NAME: Microsoft_VisualStudio_Design!Microsoft.VisualStudio.NativeMethods.ThrowOnFailure+9c8a903
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: Microsoft_VisualStudio_Design
IMAGE_NAME: Microsoft.VisualStudio.Design.dll
DEBUG_FLR_IMAGE_TIMESTAMP: 0
FAILURE_BUCKET_ID: STATUS_BREAKPOINT_80000003_Microsoft.VisualStudio.Design.dll!Microsoft.VisualStudio.NativeMethods.ThrowOnFailure
BUCKET_ID: APPLICATION_FAULT_STATUS_BREAKPOINT_Microsoft_VisualStudio_Design!Microsoft.VisualStudio.NativeMethods.ThrowOnFailure+9c8a903
Followup: MachineOwner
...
In the managed stack, there is a explicit error,Microsoft.VisualStudio.NativeMethods.ThrowOnFailure..
But that means the com exception cause the break instruction exception?
!analyze seems just dump the managed level, the com exception maybe the last error in the managed level.
I also search something about interrupt and exception from google, Normally, the break instruction exception can be triggered in following conditions:
1. Hardcode interrupt request, like: __asm int 3 (ASM), System.Diagnostics.Debugger.Break (C#), DebugBreak() (WinAPI).
2. OS enable memory runtime check, like Application Verifier can trigger after heap corruption, memory overrun.
3. Compiler can have some configuration to enble what should be filled for the uninitialized memory block and end of function(blank area, after retun..). For example, Microsoft VC complier can fill 0xCC if enable /GZ. 0xCC is actually a opcode of __asm int 3. So if some error cause the application run into such block, will trigger a break point.
Correct?
If that, I think Application Verifier should be best choice to find the root cause.
For future reference, the Your debugger is not using the correct symbols warning is caused because you need to add Windows symbols to the Windbg symbols path. Here is how to do that:
Set Microsoft symbol server path automatically:
0:000> .symfix
Optionally you can specify an additional location where to download symbol from, e.g.:
0:000> .sympath+ c:\myproject
Check current symbol search path:
0:000> .sympath
You should see something like this:
SRV**http://msdl.microsoft.com/download/symbols
Reload symbols:
0:000> .reload
Then, you will be able to see information about the current exception using this command:
0:000> !analyze -v
You should see a line similar to the following:
ExceptionCode: c0000005 (Access violation)
Good luck fixing bugs!
The command to use to find the exception that caused the crash dump is .ecxr. The outpt you got from .exr -1 is incorrect as the ExceptionAddress is zero.

Resources