cog and crash.dmp

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

cog and crash.dmp

laza
Hi!

Not my turf, so I'm a little puzzled!
Does the latest cog vm for windows (7) also write a crash.dmp file to the vmpath when it crashes? The dialog says so, but I can't find the file in that directory. I have permission to create/write files in that directory.Is there some sort of switch/ini-Setting I have to set to make the vm dump that file on a crash?

Alex
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] cog and crash.dmp

Eliot Miranda-2


On Mon, Dec 13, 2010 at 11:44 PM, Alexander Lazarević <[hidden email]> wrote:
Hi!

Not my turf, so I'm a little puzzled!
Does the latest cog vm for windows (7) also write a crash.dmp file to the vmpath when it crashes? The dialog says so, but I can't find the file in that directory. I have permission to create/write files in that directory.Is there some sort of switch/ini-Setting I have to set to make the vm dump that file on a crash?

The Cog VMs write crash.dmp to the vm log directory which is set by primitiveSetLogDirectory.  The log directory appears to default to the empty string which may default to the current directory.  I'll see about trying to harmonize the behaviour with the standard VM.  See the attached for an interface, but I wouldn't rush to include this in trunk yet.

best
Eliot


Alex





SmalltalkImage-vmLogDirectory.st (384 bytes) Download Attachment
SmalltalkImage-primitiveLogDirectory.st (410 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] cog and crash.dmp

laza
Now it makes sense. In addition coming from linux where /tmp////whatever is equivalent to /tmp/whatever I just ignored the \\ in the windows filename and was lead to believe that the crash.dmp had to be in that directory.

Thanks Eliot!

Alex

2010/12/14 Eliot Miranda <[hidden email]>


On Mon, Dec 13, 2010 at 11:44 PM, Alexander Lazarević <[hidden email]> wrote:
Hi!

Not my turf, so I'm a little puzzled!
Does the latest cog vm for windows (7) also write a crash.dmp file to the vmpath when it crashes? The dialog says so, but I can't find the file in that directory. I have permission to create/write files in that directory.Is there some sort of switch/ini-Setting I have to set to make the vm dump that file on a crash?

The Cog VMs write crash.dmp to the vm log directory which is set by primitiveSetLogDirectory.  The log directory appears to default to the empty string which may default to the current directory.  I'll see about trying to harmonize the behaviour with the standard VM.  See the attached for an interface, but I wouldn't rush to include this in trunk yet.

best
Eliot


Alex