Hi...I was reading this thread, and even before his last answer, I was
thinking more or less the same. Is it worth it to create one more target in
Hudson so that to create cogs but with debug flags?
It is not necessary to create for stack vm, cog and mt. Maybe just cog is
enough. And one for each OS. So, it is only 3 targets, using:
CogDebugMacOSConfig, CogDebugUnixConfig, and ... (sorry, I didn't find in
windows..).
What do you think? is it worth it ? or we can say "ehhh ehh compile it by
your own " ?
cheers
Mariano
---------- Forwarded message ----------
From: Schwab,Wilhelm K <bschwab(a)anest.ufl.edu>
Date: Sat, Apr 9, 2011 at 2:19 PM
Subject: RE: [Pharo-project] [Vm-dev] Debugging Cog crash
To: "Pharo-project(a)lists.gforge.inria.fr" <
Pharo-project(a)lists.gforge.inria.fr>, Squeak Virtual Machine Development
Discussion <vm-dev(a)lists.squeakfoundation.org>
Is there a debug version of Cog that I can run on the box? I have casually
avoided learning how to build Cog in part because that means I can't hack
the FFI plugin, which forces me to play by the rules on library
paths/ldconfig, etc. It also means that I don't have a build environment
ready to go, so I can't readily add syslog() calls to bracket where it
quits. gdb isn't helping as described below.
If there is something you want me to try, let me know. We have a
reproducible Cog crash.
________________________________________
From: pharo-project-bounces(a)lists.gforge.inria.fr [
pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Schwab,Wilhelm K [
bschwab(a)anest.ufl.edu]
Sent: Friday, April 08, 2011 6:03 PM
To: Pharo-project(a)lists.gforge.inria.fr; Squeak Virtual Machine Development
Discussion
Subject: Re: [Pharo-project] [Vm-dev] FW: Debugging Cog crash
Levente,
I follow on why my shell script did not work. Your instructions got me
going, but we still don't have an answer. The vm is running, but I cannot
attach:
http://lists.squeakfoundation.org/pipermail/vm-dev/2008-March/001840.html
>From what I read, one answer is the get the image loaded and then attach -
my problem is that the vm never gets far enough to actually load the image.
Any ideas?
Bill
--
Mariano
http://marianopeck.wordpress.com
Levente,
It is indeed not the UUID plugin - Dave already suggested deleting it, and I tried that w/o success.
As for running gdb, I will gladly do so, but I have zero experience with it. The most relevant posts I can find mention attaching to a vm that is already running, and I can't get that far. Below is my attempt to modify the one-click shell script to run the vm under gdb. Perhaps you or someone else can show me the errors of my ways and produce something that would yield a callstack.
Bill
#!/bin/sh
# path
ROOT=`dirname $0`
LINUX="$ROOT/Contents/Linux"
RESOURCES="$ROOT/Contents/Resources"
# icon
gvfs-set-attribute \
"$0" \
"metadata::custom-icon" \
"file://$RESOURCES/Squeak.png" \
2> /dev/null
# execute
gdb "$LINUX/squeakvm"
gdb run -plugins "$LINUX" \
-encoding latin1 \
-vm-display-X11 \
"$RESOURCES/Pharo.image"
Levente wrote:
Well, the file OneClick.txt says the vm is "Linux Intel x86 4.0.3.2202".
But that's not true, because that's not a CogVM.
The UUIDPlugin seems to have the patch which avoids the crash, so it's
pretty unlikely that it's an issue with the UUIDPlugin. Even if the patch
is wrong (which is unlikely, because we're using Eliot's latest build on
64-bit Ubuntu 8.04 and it doesn't crash, but previous unpatched builds did
crash), it's pretty unlikely that the cause of the crash is the related to
UUIDPlugin at all, because UUIDs are normally not created during startup
and your image is crashing on startup.
To be 100% sure you can try deleting UUIDPlugin and see if your image
is crashing or not.
If it still crashes, then use gdb to see where it crashes. The VM seems to
be unstripped (8MB), so it should be easy to identify the cause of the
crash.
Levente
________________________________________
From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Schwab,Wilhelm K [bschwab(a)anest.ufl.edu]
Sent: Friday, April 08, 2011 11:56 AM
To: Pharo-project(a)lists.gforge.inria.fr; Squeak Virtual Machine Development Discussion
Subject: Re: [Pharo-project] [Vm-dev] FW: Debugging Cog crash
Levente,
The image will not load at all. It simply dies with "Segmentation fault" - NOTHING else happens. gdb is maybe a possibility, but it is not an approach I ordinarily take, so some guidance would be helpful.
I have a reproducible crash, but poor access to the affected box.
Bill
On Fri, 8 Apr 2011, Schwab,Wilhelm K wrote:
>
> Gratuitous default recipient...
>
> If there is a verbose dump option or other diagnostic efforts that will help, I will do my best to run them and report the results. I am fairly certain the vm is 'Croquet Closure Cog VM [CoInterpreter VMMaker-oscog.54]' (can verify later today), but this happened with an earlier Cog one-click too. There is something about the machine (UUID again?) that is different. I do not have root access to it, but I can get to a terminal. Ubuntu 10.10.
Where did you download the VM?
Does it crash when you're trying to evaluate [UUID new]?
Did you try gdb?
Levente
________________________________________
From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Schwab,Wilhelm K [bschwab(a)anest.ufl.edu]
Sent: Friday, April 08, 2011 11:42 AM
To: Pharo-project(a)lists.gforge.inria.fr; Squeak Virtual Machine Development Discussion
Subject: Re: [Pharo-project] [Vm-dev] FW: Debugging Cog crash
Dave,
It was, I did :) No help :( What else can I try?
Bill
________________________________________
From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of David T. Lewis [lewis(a)mail.msen.com]
Sent: Friday, April 08, 2011 10:32 AM
To: Squeak Virtual Machine Development Discussion
Cc: Pharo-project(a)lists.gforge.inria.fr
Subject: Re: [Pharo-project] [Vm-dev] FW: Debugging Cog crash
Yes, the libuuid.so bug would be a likely suspect. If the UUIDPlugin was
built as an external library, just delete it and you will probably be
good to go.
If you need further info, look here:
http://bugs.squeak.org/view.php?id=7358
Dave
On Fri, Apr 08, 2011 at 07:58:39AM -0400, Schwab,Wilhelm K wrote:
>
> Gratuitous default recipient...
>
> If there is a verbose dump option or other diagnostic efforts that will help, I will do my best to run them and report the results. I am fairly certain the vm is 'Croquet Closure Cog VM [CoInterpreter VMMaker-oscog.54]' (can verify later today), but this happened with an earlier Cog one-click too. There is something about the machine (UUID again?) that is different. I do not have root access to it, but I can get to a terminal. Ubuntu 10.10.
>
>
> ________________________________________
> From: Schwab,Wilhelm K
> Sent: Friday, April 08, 2011 7:44 AM
> To: Mariano Martinez Peck
> Subject: RE: [Pharo-project] Debugging Cog crash
>
> Mariano,
>
> I first identified this problem/opportunity a while ago. At the time, there was no log - the vm just died. I can sniff around again as there might be one this time. My question at the time was whether there was something that I could enable to perhaps get more info.
>
> The output from the vm is, and I quote<g> "Segmentation fault". There is no other output. Perhaps it does not get far enough to have a call stack??
>
> Bill
>
>
>
> ________________________________________
> From: Mariano Martinez Peck [marianopeck(a)gmail.com]
> Sent: Friday, April 08, 2011 3:42 AM
> To: Squeak Development Discussion Virtual Machine; Pharo Development
> Cc: Schwab,Wilhelm K
> Subject: Re: [Pharo-project] Debugging Cog crash
>
> also...shouldn't be a crash/dump file somewhere?
>
> can you write the output of the console where you invoke the VM into a file ? (using > to redirect)
>
> Cheers
>
> Mariano
>
> On Thu, Apr 7, 2011 at 11:10 PM, Schwab,Wilhelm K <bschwab(a)anest.ufl.edu<mailto:bschwab@anest.ufl.edu>> wrote:
> Hello all,
>
> I have an account on an Ubuntu terminal server (at least I think that's what it would be called) running 10.10. The Cog one-click image crashes with "Segmentation fault" (if run from a terminal); the legacy VM seems to run the image nicely on the box. Any ideas? I will happily collect any facts that will be of help, but I need some
> direction.
>
> Bill
>
>
>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
Hi. Sorry I have no idea but maybe someone can help you.
Mariano
On Mon, Apr 4, 2011 at 2:16 AM, Jay Hardesty <jay.hardesty(a)gmail.com> wrote:
> Hello,
>
> I'm trying to build a Squeak VM for Mac iOS using a Pharo 1.2.1 image,
> based on the instructions at
> http://book.pharo-project.org/book/Virtual-Machine/Building/BuildVMOnOSX/.
>
> I'm using snv rev 2330, since that's noted as compatible with VMMaker
> 1.4 (ConfigurationOfVMMaker-LaurentLaffon.20)
> (FWIW I've tried every combination of revs 2330 and 2378, VMMaker 1.4
> and 1.5. Pharo 1.1.1, 1,2,1, and 1.3).
>
> If I check out revision 2330 (or 2378) and simply compile the 64-bit
> Mac VM (non-Cog) in distribution config, I get
> ld: duplicate symbol _createWindowWidthheightoriginXyattrlength
>
> If I generate my own src directory from VMMaker (all internal plugins,
> as shown below) and compile then I get:
>
> [...]/platforms/iOS/vm/src/vm/intplugins/ObjectiveCPlugin/ObjectiveCPlugin.c:
> No such file or directory
> If I copy in the ObjectiveCPlugin folder from the non-generated src
> folder then I get the duplicate symbol link error as above
>
> I'm using Xcode 4, SDK Mac OSX 10.6
>
> Thanks very much for any pointers - sorry if I missed something obvious
> Jay
>
> EXTERNAL_PLUGINS =
> INTERNAL_PLUGINS = ADPCMCodecPlugin Squeak3D BMPReadWriterPlugin
> B2DPlugin BitBltPlugin ClipboardExtendedPlugin CroquetPlugin DSAPrims
> ZipPlugin SqueakFFIPrims FFTPlugin FT2Plugin FloatArrayPlugin
> FloatMathPlugin GeniePlugin JPEGReaderPlugin Klatt LargeIntegers
> MacMenubarPlugin Matrix2x3Plugin MiscPrimitivePlugin IA32ABI IA32ABI
> QuicktimePlugin RePlugin SecurityPlugin SlangTestSupportPlugin
> SlangTestSupportSSIP SoundCodecPrims SoundGenerationPlugin SoundPlugin
> StarSqueakPlugin SurfacePlugin
> _______________________________________________
> VM-beginners mailing list
> VM-beginners(a)lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>
--
Mariano
http://marianopeck.wordpress.com
Hi. I was compiling in Linux and I got the erro "The file was not found
sqUnixOpenGL.h"
I easily fixed with
sudo apt-get install mesa-common-dev
But then I got:
/usr/bin/ld: cannot find -lGL
and I solve it with this:
delete /usr/lib/libGL.so
cd /usr/lib/
sudo ln -s libGL.so.1.2 libGL.so
Finally, and this is my question, I saw a special conf: CogUnixNoGLConfig
which class comment says: "A slightly modified configuration, which avoids
linking with openGL libraries."
So...my question is...if I would have used that class I would have avoided
my problems?
Second, that class CogUnixNoGLConfig that doesn't link to the OpenGL, what
it does instead? how this impacts me ? is there any difference from the
performance point of view of the VM or something like that ?
Sorry for my ignorance,
--
Mariano
http://marianopeck.wordpress.com
also...shouldn't be a crash/dump file somewhere?
can you write the output of the console where you invoke the VM into a file
? (using > to redirect)
Cheers
Mariano
On Thu, Apr 7, 2011 at 11:10 PM, Schwab,Wilhelm K <bschwab(a)anest.ufl.edu>wrote:
> Hello all,
>
> I have an account on an Ubuntu terminal server (at least I think that's
> what it would be called) running 10.10. The Cog one-click image crashes
> with "Segmentation fault" (if run from a terminal); the legacy VM seems to
> run the image nicely on the box. Any ideas? I will happily collect any
> facts that will be of help, but I need some
> direction.
>
> Bill
>
>
>
>
--
Mariano
http://marianopeck.wordpress.com
>I use XCode to browse code / debug and it works out of the box with
>CMake.
And on Non-mac platforms (Ubuntu/Win32) anyone?
Thx
T.
--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone
>can you wait a couple of days (2 or 3) ?
No ;)
OK, looks like I need git. Just found http://gitorious.org/+squeak-vm-developers
And I read
http://www.mail-archive.com/pharo-project@lists.gforge.inria.fr/msg37157.ht…
Will start from here.
Mariano: I like that you blog about it ... but blog posts get
easily out of context or are outdated over time. What I was
looking for was a "maintained" howto guide for the new cmake/
gitorious stuff (even when it is just a few lines in a readme.
Unfortunately the README on gitorious is just a clone of Elits
README...
What I understand so far:
- Igor moved a copy of SVN to gitorious
- official VMs are still maintained in squeakvm.org SVN repo
by the usual maintainers
- CMake is only available in Igors fork, is it?
I'm mostly interested on the Win32 VM since I use Squeak/Pharo
there. So another question would be what is the state of
CMake to build the win VM?
And I still dont understand if and how changes transferred
between SVN<->GIT
Bye
T.
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
I know how to build standard Vm from Squeakvm.org,
I'm also able to compile Eliots Cog from the same
SVN.
But what if I want to go the "new" CMake way?
Where to start? Where are the files? Do I need git?
Is cmake for win32 ready?
Is there a short summary on the cmake work (state,
where to start)? Or is the mess even worse than before?
Thx
T.
--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone
Hi,
AFAIK starting with version 2.6.0 CMake supports generating
projects for Eclipse CDT 4.0 or newer (see [1]). Anyone tried?
I wonder what kind of C/C++ IDE and debuggers vm-developers
are using? Just pure vi/emacs? Or is anyone using other
IDE's like Eclipse CDT/VisualStudio/VisualC++Express/KDevelop?
Thx
T.
[1] http://www.itk.org/Wiki/CMake_Generator_Specific_Information
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de