Hi Sabine,

On Fri, Jul 10, 2015 at 12:51 AM, Sabine Manaa <manaa.sabine@gmail.com> wrote:
 
Hi,

I have the pharo crash again, now in my production system on a windows machine.

I can not yet reproduce it and ask for your help.

What does " a(n) bad class" in the stack dump mean?

It means that when the code that prints the stack dump tries to print a receiver, attempting to fetch the receiver's class's name, the object's class doesn't look like a class object.  What version of the VM are you using?  This looks like it might be an old bug.  What happens if you use the most up-to-date Pharo VM?  The idea with VMs is that they are backward-compatible, while images are forward compatible.  You may not be able to run a Pharo image on an older VM, but you should be able to run any Pharo image that supports the closure bytecodes on later VMs.



Regards
Sabine


Smalltalk stack dump:
  0x256720 M Dictionary>at:ifAbsent: 0x79f46c0: a(n) Dictionary
  0x256740 M RKACurrency class>currencyFor: 0x70af390: a(n) RKACurrency class
  0x256764 M RKAMoney class>amount:currencyCode: 0x70acafc: a(n) RKAMoney class
  0x256784 M SmallInteger(Number)>eur 0x1=0
  0x2567f4 M [] in INVALID RECEIVER>monthReportTripsTableData 0xbb5988c: a(n) bad class
  0x256818 M INVALID RECEIVER>do:with:when: 0xbb614e8: a(n) bad class
  0x256844 I INVALID RECEIVER>do:with: 0xbb614e8: a(n) bad class
  0x25686c I INVALID RECEIVER>datesDo: 0xbb614e8: a(n) bad class
  0x2568a8 I INVALID RECEIVER>monthReportTripsTableData 0xbb5988c: a(n) bad class
  0x2568cc I INVALID RECEIVER>addMonthReportTripsTable 0xbb5988c: a(n) bad class
  0x2568ec I INVALID RECEIVER>createMonthReport:


---------------------------------------------------------------------
Mon Jun 15 15:32:56 2015

Exception code: C0000005
Exception addr: 004239D0
Access violation (read access) at 00000016
EAX:00000016 EBX:0000005C ECX:0000000E EDX:0BB41FB4
ESI:0BD58C48 EDI:00000060 EBP:0BD58C48 ESP:0023DF30
EIP:004239D0 EFL:00210246
FP Control: 0000027F
FP Status:  00000020
FP Tag:     0000FFFF


Crashed in the VM thread



Hardware information: 
Manufacturer: Unknown
Model: Unknown
Number of processors: 2
Page size: 4096

Memory Information (upon launch):
Physical Memory Size: 4193908 kbytes
Physical Memory Free: 3054672 kbytes
Page File Size: 4194303 kbytes
Page File Free: 3502492 kbytes
Virtual Memory Size: 2097024 kbytes
Virtual Memory Free: 2029820 kbytes
Memory Load: 27 percent

Processor 0: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
Identifier: Intel64 Family 6 Model 62 Stepping 4
~MHZ: 2500

Processor 1: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
Identifier: Intel64 Family 6 Model 62 Stepping 4
~MHZ: 2500

Operating System: Windows Server 2008 R2 Datacenter (Build 7601 Service Pack 1)
Registered Owner: Amazon
Registered Company: Amazon.com
SP major version: 1
SP minor version: 0
Suite mask: 190
Product type: 3

Display Information: 
Graphics adapter name: RDPDD Chained DD
Primary monitor resolution: 2560 x 1440

Device: RDPDD Chained DD
Adapter String: ???
Bios String: ???
Chip Type: ???
DAC Type: ???
Memory Size: 0xFFFFFFFF

Driver Versions:
RDPDD: 

VM Version: Cog VM 4.0.0 (release) from Sep 25 2014
Compiler: gcc 4.6.2
Interpreter Build: NBCoInterpreter NativeBoost-CogPlugin-HolgerHansPeterFreyther.21 uuid: e0df6e2d-5694-40e2-8035-dc217200b424 Sep 25 2014
Cogit Build: NBCogit NativeBoost-CogPlugin-HolgerHansPeterFreyther.21 uuid: e0df6e2d-5694-40e2-8035-dc217200b424 Sep 25 2014
Source Version: https://github.com/pharo-project/pharo-vm.git Commit: 81b5d19917dcb78f22482a780deec48c53738396 Date: 2014-09-20 14:36:18 +0200 By: Esteban Lorenzano <estebanlm@gmail.com> Jenkins build #14858

Current byte code: -1
Primitive index: -1

Loaded plugins:
JPEGReaderPlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
DSAPrims VMMaker.oscog-jeanbaptistearnaud.783 (i)
SqueakSSL SqueakSSL-Plugin-ar.3 (e)
Win32OSProcessPlugin VMConstruction-Plugins-OSProcessPlugin.oscog-EstebanLorenzano.43 (i)
SocketPlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
B2DPlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
Kernel32
ZipPlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
NativeBoostPlugin NativeBoost-CogPlugin-HolgerHansPeterFreyther.21 (i)
BitBltPlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
JPEGReadWriter2Plugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
FT2Plugin Freetype-Plugin-IgorStasenko.64 (e)
SecurityPlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
FilePlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
MiscPrimitivePlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)
LargeIntegers v1.5 VMMaker.oscog-jeanbaptistearnaud.783 (i)
LocalePlugin VMMaker.oscog-jeanbaptistearnaud.783 (i)

Module information:
00400000 - 006ee000: C:\Users\Administrator\Desktop\Pharo4.0\Pharo.exe
02480000 - 02580004: CogCode
63000000 - 631ba000: C:\Users\Administrator\Desktop\Pharo4.0\LIBEAY32.dll
66e40000 - 66f02000: C:\Users\Administrator\Desktop\Pharo4.0\libfreetype-6.dll
69f40000 - 69f5a000: C:\Users\Administrator\Desktop\Pharo4.0\FT2Plugin.DLL
6c240000 - 6c267000: C:\Windows\system32\crtdll.dll
6cb80000 - 6cb99000: C:\Users\Administrator\Desktop\Pharo4.0\SqueakSSL.DLL
6e400000 - 6e467000: C:\Users\Administrator\Desktop\Pharo4.0\SSLEAY32.dll
73f50000 - 73f55000: C:\Windows\system32\SHFolder.dll
743b0000 - 74434000: C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\COMCTL32.dll
74800000 - 74813000: C:\Windows\system32\dwmapi.dll
74820000 - 74826000: C:\Windows\system32\DCIMAN32.dll
74830000 - 74917000: C:\Windows\system32\DDRAW.dll
74920000 - 74942000: C:\Windows\system32\GLU32.dll
74950000 - 74a18000: C:\Windows\system32\OPENGL32.DLL
74a20000 - 74a52000: C:\Windows\system32\WINMM.dll
74a60000 - 74a85000: C:\Windows\system32\dinput.dll
74dc0000 - 74e0c000: C:\Windows\system32\apphelp.dll
74f00000 - 74f07000: C:\Windows\system32\WSOCK32.DLL
74f10000 - 74f4b000: C:\Windows\system32\rsaenh.dll
74f50000 - 74f66000: C:\Windows\system32\CRYPTSP.dll
74f70000 - 74f76000: C:\Windows\system32\rasadhlp.dll
74f80000 - 74fb8000: C:\Windows\System32\fwpuclnt.dll
74fc0000 - 74fc7000: C:\Windows\system32\WINNSI.DLL
74fd0000 - 74fec000: C:\Windows\system32\IPHLPAPI.DLL
74ff0000 - 74ff8000: C:\Windows\System32\winrnr.dll
75000000 - 75044000: C:\Windows\system32\DNSAPI.dll
75050000 - 75060000: C:\Windows\system32\napinsp.dll
75060000 - 75070000: C:\Windows\system32\NLAapi.dll
75070000 - 75075000: C:\Windows\System32\wshtcpip.dll
75090000 - 750cc000: C:\Windows\System32\mswsock.dll
75190000 - 75199000: C:\Windows\system32\VERSION.dll
75260000 - 7526c000: C:\Windows\syswow64\CRYPTBASE.dll
75270000 - 752d0000: C:\Windows\syswow64\SspiCli.dll
752d0000 - 7537c000: C:\Windows\syswow64\msvcrt.dll
75390000 - 75480000: C:\Windows\syswow64\RPCRT4.dll
75480000 - 760ca000: C:\Windows\syswow64\SHELL32.dll
76120000 - 76230000: C:\Windows\syswow64\kernel32.dll
76230000 - 762c0000: C:\Windows\syswow64\GDI32.dll
76540000 - 765cf000: C:\Windows\syswow64\OLEAUT32.dll
76700000 - 7685c000: C:\Windows\syswow64\OLE32.dll
76860000 - 76900000: C:\Windows\syswow64\ADVAPI32.DLL
769c0000 - 769d9000: C:\Windows\SysWOW64\sechost.dll
769e0000 - 76a5b000: C:\Windows\syswow64\COMDLG32.DLL
76a70000 - 76c0d000: C:\Windows\syswow64\SETUPAPI.dll
76ca0000 - 76cb2000: C:\Windows\syswow64\DEVOBJ.dll
76cc0000 - 76cc5000: C:\Windows\syswow64\psapi.dll
76cd0000 - 76d27000: C:\Windows\syswow64\SHLWAPI.dll
76d40000 - 76d75000: C:\Windows\syswow64\WS2_32.dll
76d90000 - 76dd7000: C:\Windows\syswow64\KERNELBASE.dll
76de0000 - 76dea000: C:\Windows\syswow64\LPK.dll
76df0000 - 76e50000: C:\Windows\system32\IMM32.DLL
76fc0000 - 770c0000: C:\Windows\syswow64\USER32.dll
770c0000 - 770e7000: C:\Windows\syswow64\CFGMGR32.dll
772b0000 - 7734d000: C:\Windows\syswow64\USP10.dll
77350000 - 7741c000: C:\Windows\syswow64\MSCTF.dll
777f0000 - 777f6000: C:\Windows\syswow64\NSI.dll
77820000 - 779a0000: C:\Windows\SysWOW64\ntdll.dll

Primitive trace:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
new:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
basicNew
at:put:
new:
at:put:
at:put:
at:put:
basicNew
basicNew
basicNew
new:
basicNew
new:
basicNew
new:
basicNew
new:
basicNew
at:put:
at:put:
basicNew
stringHash:initialHash:
compare:with:collated:
compare:with:collated:
compare:with:collated:
compare:with:collated:
compare:with:collated:
basicNew
perform:with:
basicNew
stringHash:initialHash:
compare:with:collated:
compare:with:collated:
compare:with:collated:
compare:with:collated:
compare:with:collated:
basicNew
basicNew
basicNew
basicNew
basicNew
perform:with:
basicNew
perform:with:
basicNew
basicNew
basicNew
stringHash:initialHash:
compare:with:collated:
compare:with:collated:
compare:with:collated:
compare:with:collated:
compare:with:collated:
basicNew
basicNew
basicNew
basicNew
basicNew
perform:with:
basicNew
perform:with:
basicNew
basicNew
basicNew
stringHash:initialHash:
compare:with:collated:
compare:with:collated:
compare:with:collated:
compare:with:collated:
compare:with:collated:
basicNew
basicNew
basicNew
basicNew
basicNew
perform:with:
basicNew
perform:with:
basicNew
basicNew
basicNew
basicNew
basicNew
basicNew
perform:with:
basicNew
perform:with:
basicNew
basicNew
basicNew
new:
basicNew:
basicNew
basicNew:
replaceFrom:to:with:startingAt:
basicNew
new:
basicNew
new:
basicNew:
basicNew
basicNew:
replaceFrom:to:with:startingAt:
basicNew
new:
basicNew
new:
basicNew:
basicNew
basicNew:
replaceFrom:to:with:startingAt:
basicNew
new:
basicNew:
basicNew
basicNew:
replaceFrom:to:with:startingAt:
basicNew
basicNew:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
basicNew:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
basicNew:
basicNew
basicNew
indexOfAscii:inString:startingAt:
basicNew:
replaceFrom:to:with:startingAt:
basicNew
basicNew
replaceFrom:to:with:startingAt:
at:put:
indexOfAscii:inString:startingAt:
basicNew:
replaceFrom:to:with:startingAt:
basicNew
basicNew
replaceFrom:to:with:startingAt:
basicNew:
replaceFrom:to:with:startingAt:
stringHash:initialHash:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
new:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
stringHash:initialHash:
basicNew
at:put:
new:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
at:put:
stringHash:initialHash:
basicNew
at:put:
new:
at:put:
at:put:
at:put:
basicNew
basicNew
basicNew
new:
basicNew
new:
basicNew
new:
basicNew
new:
basicNew
at:put:
perform:with:
truncated
new:
replaceFrom:to:with:startingAt:
at:put:
basicNew
**IncrementalGC**


Stack backtrace:
[004239D0] ??? + 145872 in Pharo.exe
[002567F5] ??? + 0 in (null)


Smalltalk stack dump:
  0x256720 M Dictionary>at:ifAbsent: 0x79f46c0: a(n) Dictionary
  0x256740 M RKACurrency class>currencyFor: 0x70af390: a(n) RKACurrency class
  0x256764 M RKAMoney class>amount:currencyCode: 0x70acafc: a(n) RKAMoney class
  0x256784 M SmallInteger(Number)>eur 0x1=0
  0x2567f4 M [] in INVALID RECEIVER>monthReportTripsTableData 0xbb5988c: a(n) bad class
  0x256818 M INVALID RECEIVER>do:with:when: 0xbb614e8: a(n) bad class
  0x256844 I INVALID RECEIVER>do:with: 0xbb614e8: a(n) bad class
  0x25686c I INVALID RECEIVER>datesDo: 0xbb614e8: a(n) bad class
  0x2568a8 I INVALID RECEIVER>monthReportTripsTableData 0xbb5988c: a(n) bad class
  0x2568cc I INVALID RECEIVER>addMonthReportTripsTable 0xbb5988c: a(n) bad class
  0x2568ec I INVALID RECEIVER>createMonthReport:




--
best,
Eliot