Hello,
I wrote a small package to import local Netscape mail folder into an IMAP server. The package includes a very basic IMAP implementation based on SimpleClientSocket and another class for recursively scan a directory hierarchy and importing everything inside. Everything works just fine for a while than the image hangs (the VM is still accessible from the debug menu..). My O/S (?) is Win2K, image version is the final 3.2. VM version is 3.2.2.
I suspect the networking part since when disabled, the program works just fine (it scans the tree and generate useful reports).
Where should I start?
Thanks, Yoel
Hello,
I wrote a small package to import local Netscape mail folder into an IMAP server. The package includes a very basic IMAP implementation based on SimpleClientSocket and another class for recursively scan a directory hierarchy and importing everything inside. Everything works just fine for a while than the image hangs (the VM is still accessible from the debug menu..). My O/S (?) is Win2K, image version is the final 3.2. VM version is 3.2.2.
I suspect the networking part since when disabled, the program works just fine (it scans the tree and generate useful reports).
Where should I start?
Thanks, Yoel
Can you try it under linux or a BSD OS?
John ,
Just tried on Solaris, and yes, it hangs again.
I found that while the program ran correctly (for the first 157 IMAP messages) it consumed about %15 CPU. While "hanged", it consumed almost %90 CPU (on Solaris).
Below is the output of 'truss' (system call tracing utility on Solaris).
Yoel
=== truss output ====
ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 1, 0) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 read(3, "\fF91E #\0 @\00203 j029E".., 736) = 736 write(3, " H02\091\0 @\002\0 @\003".., 13340) = 13340 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 read(3, "\f\01E :\0 @\00203 j02B5".., 768) = 768 write(3, " H02\091\0 @\002\0 @\003".., 13920) = 13920 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF604) = 0 poll(0xFFBEF4E0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF6E4) = 0 poll(0xFFBEF5C0, 2, 0) = 0 ioctl(3, FIONREAD, 0xFFBEF5E4) = 0 poll(0xFFBEF4C0, 2, 0) = 0
John M McIntosh wrote:
Hello,
I wrote a small package to import local Netscape mail folder into an IMAP server. The package includes a very basic IMAP implementation based on SimpleClientSocket and another class for recursively scan a directory hierarchy and importing everything inside. Everything works just fine for a while than the image hangs (the VM is still accessible from the debug menu..). My O/S (?) is Win2K, image version is the final 3.2. VM version is 3.2.2.
I suspect the networking part since when disabled, the program works just fine (it scans the tree and generate useful reports).
Where should I start?
Thanks, Yoel
Can you try it under linux or a BSD OS?
Ah, you've a compile date for the binary & libraries so I can backtrack?
On Tuesday, September 3, 2002, at 07:02 AM, Yoel Jacobsen wrote:
The latest.
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
I download the Solaris version just to test it upon your recommendation directly from Ian Piumantra site. The link to the files I downloaded is: http://www-sor.inria.fr/~piumarta/squeak/unix/release/Squeak-3.2-4.sparc-sun...
The Win32 VM I'm using was compiled on May 26.
Will it help if I submit my code? Will you be able to create a large enough dataset (several directories, at least 200 large messages)?
Thanks,
Yoel
John M McIntosh wrote:
Ah, you've a compile date for the binary & libraries so I can backtrack?
On Tuesday, September 3, 2002, at 07:02 AM, Yoel Jacobsen wrote:
The latest.
--
=== John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
Yoel Jacobsen wrote:
I download the Solaris version just to test it upon your recommendation directly from Ian Piumantra site. The link to the files I downloaded is: http://www-sor.inria.fr/~piumarta/squeak/unix/release/Squeak-3.2-4.sparc-sun...
You could try downloading http://www-sor.inria.fr/~piumarta/squeak/unix/release/Squeak-3.2-5devel.src.... and compiling by yourself (no build Solaris version there). This version may be better (at least the src version is better under Linux than Squeak-3.2-4).
Greetings,
Stephan
The Win32 VM I'm using was compiled on May 26.
Will it help if I submit my code? Will you be able to create a large enough dataset (several directories, at least 200 large messages)?
Thanks, Yoel
John M McIntosh wrote:
Ah, you've a compile date for the binary & libraries so I can backtrack?
On Tuesday, September 3, 2002, at 07:02 AM, Yoel Jacobsen wrote:
The latest.
--
=== John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
I see someone already suggested you try the 3.2-5 version. But I think the changes went into 3.2-3, however you should try 3.2-5 first.
Ah, I'm not sure I've an imap server around here to test with, could I get access to yours? Then again if you got a test suite via SUnits (one that creates the data needed via squeak doing the mail to populate the server, then a test to read the data and produce the hang) then I might look at setting up imap server on my freebsd box to facilitate the testing. However I should point out this will only prove issues and or fixes with the unix version and the macintosh version, not the windows version (which might be your ultimate target). Then again bundling a easy to use test case might facilitate some of the windows support folks in debugging your problem.
On Tuesday, September 3, 2002, at 01:42 PM, Yoel Jacobsen wrote:
I download the Solaris version just to test it upon your recommendation directly from Ian Piumantra site. The link to the files I downloaded is: http://www-sor.inria.fr/~piumarta/squeak/unix/release/Squeak-3.2- 4.sparc-sun-solaris2.8.tar.gz
The Win32 VM I'm using was compiled on May 26.
Will it help if I submit my code? Will you be able to create a large enough dataset (several directories, at least 200 large messages)?
Thanks,
Yoel
--
======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
John
I fail to compile 3.2-5 on solaris (do to the lack of UNIX98 PTY headers it failes to compile the PseudoTTY plugin). Any idea?
Yoel
John M McIntosh wrote:
I see someone already suggested you try the 3.2-5 version. But I think the changes went into 3.2-3, however you should try 3.2-5 first.
Ah, I'm not sure I've an imap server around here to test with, could I get access to yours? Then again if you got a test suite via SUnits (one that creates the data needed via squeak doing the mail to populate the server, then a test to read the data and produce the hang) then I might look at setting up imap server on my freebsd box to facilitate the testing. However I should point out this will only prove issues and or fixes with the unix version and the macintosh version, not the windows version (which might be your ultimate target). Then again bundling a easy to use test case might facilitate some of the windows support folks in debugging your problem.
On Tuesday, September 3, 2002, at 01:42 PM, Yoel Jacobsen wrote:
I download the Solaris version just to test it upon your recommendation directly from Ian Piumantra site. The link to the files I downloaded is: http://www-sor.inria.fr/~piumarta/squeak/unix/release/Squeak-3.2- 4.sparc-sun-solaris2.8.tar.gz
The Win32 VM I'm using was compiled on May 26.
Will it help if I submit my code? Will you be able to create a large enough dataset (several directories, at least 200 large messages)?
Thanks,
Yoel
--
========================================================================
John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
On Wed, 4 Sep 2002, Yoel Jacobsen wrote:
I fail to compile 3.2-5 on solaris (do to the lack of UNIX98 PTY headers it failes to compile the PseudoTTY plugin). Any idea?
Which version of Solaris do you have?
Could you send me a transcript of the last few lines of the failed build?
Thanks,
Ian
On Wed, 4 Sep 2002, Yoel Jacobsen wrote:
In file included from/space/squeak/Squeak-3.2-5devel/platforms/unix/plugins/PseudoTTYPlugin/sqUnixPs udoTTYPlugin.c:75: /space/squeak/Squeak-3.2-5devel/platforms/unix/plugins/PseudoTTYPlugin/openpty. :98:5: #error : cannot open a pty -- this plugin will not work
Do you have /dev/ptmx? If so, what are the permissions? FWIW, mine looks like this:
fricotin:~$ ls -l /dev/ptmx lrwxrwxrwx 1 root root 30 Aug 8 2001 /dev/ptmx -> ../devices/pseudo/clone@0:ptmx fricotin:~$ ls -lL /dev/ptmx crw-rw-rw- 1 root sys 11, 23 Aug 8 2001 /dev/ptmx
The configure script looks for a *readable* /dev/ptmx, using `test -r /dev/ptmx', and sets HAVE_UNIX98_PTYS in config.h accordingly. Looks like this isn't getting set for you for some reason. Could you also try this for me:
/bin/sh if test -r /dev/ptmx; then echo yup; else echo nope; fi exit
(hopefully it'll print "yup").
BTW: a quick hack to get this thing to compile would be to remove the plugin from src/plugins.int and reconfigure.
Cheers,
Ian
squeak-dev@lists.squeakfoundation.org