Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-28 Thread Paul Everitt

Leonardo Rochael Almeida wrote:

 I'm really disappointed with ZC for putting out a new release of Zope
 instead of a fixed version of the release most everyone is currently
 using.

2.4.4 is ready, but there's a problem with the Windows build.  I suppose 
we could just put the others up there w/out the Windows build, but then 
we'd wind up with 20 emails to reply to and explain over and over.

All in all, only a few days separate the two releases, and obviously CVS 
people have been able to get at changes all along.  Thus, I don't think 
this is an extreme case.

--Paul


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-28 Thread Martijn Pieters

On Mon, Jan 28, 2002 at 10:32:11AM -0500, Paul Everitt wrote:
 All in all, only a few days separate the two releases, and obviously CVS 
 people have been able to get at changes all along.  Thus, I don't think 
 this is an extreme case.

Also note that downloading a source release from CVS is very very very easy.
Just use the following link:

  http://cvs.zope.org/Zope/Zope.tar.gz?tarball=1only_with_tag=Zope-2_4-branch

This will get you a tarball with a CVS export of the current 2.4.x branch,
which will contain *exactly* the same contents as the Ssource release we'll
make as soon as the windows problem is resolved.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/
-

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-28 Thread Dieter Maurer

Olivier Deckmyn writes:
   This has been explained recently (-- mailing list archives, probably
   through Google search for f_stacksize).
  
  I did, without a great success.
  
  
   Summary, you need to upgrade Zope, too!
  
  If only I could...
Zope 2.4.3 will not work with Python 2.1.2.

Unfortunately, you either upgrade Zope or downgrade Python...

A partial upgrade may be possible, though. See the mailing list archives.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-28 Thread Chris McDonough

Dieter Maurer wrote:

 Zope 2.4.3 will not work with Python 2.1.2.


This is not literally true.  Zope 2.4.3 will work fine with Python 
2.1.2.  However, Python 2.1.2 doesn't ignore stacksize computation 
problems like Python 2.1.1.  Instead of silently corrutping memory and 
continuing like 2.1.1, Python 2.1.2 will stop with an assertion error. 
This means that Zope 2.4.3 won't really run under 2.1.2 for very long if 
you've got a codepath that tickles a compiler package bug, but at 
least it won't fail mysteriously with odd symptoms.  Zope 2.4.3 will run 
for *longer* under Python 2.1.1, but it will fail with other more 
mysterious symptoms.

Hopefully, this will clear some of the confusion up.

For maximum stability if you're running some 2.4.X-series Zope under 
Python 2.1.X:

- Upgrade your Zope to 2.4.4 (wait for final if you don't like the
   current beta status of 2.4.4)

- Upgrade your Python to 2.1.2

Do these two steps *at the same time*.  You should have increased 
stability and availability after that.

- C


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-28 Thread Anthony Baxter

 Olivier Deckmyn wrote
 assertion STACK_LEVEL() = f-f_stacksize failed: file Python/ceval.c,
 line 687

This is a new assertion, put in to catch the case where the RestrictedCompiler
code used by PythonScripts incorrectly calculates stack size.

 After some hours of researches, I have a (dirty, really) fix :
 I had to modify Python sources and hack line 687 in ceval.c  : I removed
 it...

This is _not_ a fix, any more than putting in a signal handler for 
SIGSEGV that ignored it and kept going would be a fix for a segfault
bug. The bug is _real_ and causes memory corruption. The most likely 
result is that Zope will crash mysteriously, some time later down the 
track, but it's also possible you'll end up with random data corruption. 
This is _far_ worse than just a crash.

If upgrading to 2.5 or 2.4.4-to-be is not an issue, just replace the
lib/python/RestrictedPython package in your Zope installation and reboot.

Please, please, please, don't propagate dodgy and incorrect fixes like
the above (removing the assertion). The assertion is in the code for a
very, very good reason.

Anthony

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-28 Thread Olivier Deckmyn

 Please, please, please, don't propagate dodgy and incorrect fixes like
 the above (removing the assertion). The assertion is in the code for a
 very, very good reason.

I obviously know this !! But couldn't find another way to have my servers
restart this sunday.

I just regret that this problem was not warned anywhere clearly. I must not
be the only one that have had seen this happen !

But I know it now :-)

Anyway, many thanx to every one who gave help.


Olivier.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-27 Thread Olivier Deckmyn

Hi,

I decided to upgrade my Python 2.1.1 to Python 2.1.2 (in order to gently
move to 2.5 later).

My Zope instances were working quite finebut...randomly I got a core
dump (!) and the following message in logs :

assertion STACK_LEVEL() = f-f_stacksize failed: file Python/ceval.c,
line 687


Bug seems to appear when playing with ZCatalog (CMF sites could'nt even
render a page) and Python scripts ?

After some hours of researches, I have a (dirty, really) fix :

I had to modify Python sources and hack line 687 in ceval.c  : I removed
it...
Then recompile and it seems to work. I know this is dirty, and my Zope my
crash later.

PLEASE CHECK and HELP !

This looks like a major serious bug to me.

Cheers,

Olivier.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-27 Thread Chris McDonough

Olivier,

Have you been reading anything about the random Zope crashes on the list for
the last six months?  Have you searched the maillist archives for the text
of your crash?

- C

- Original Message -
From: Olivier Deckmyn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 11:45 AM
Subject: [Zope-dev] [BUG] Python 2.1.2  Zope 2.4.1


 Hi,

 I decided to upgrade my Python 2.1.1 to Python 2.1.2 (in order to gently
 move to 2.5 later).

 My Zope instances were working quite finebut...randomly I got a core
 dump (!) and the following message in logs :

 assertion STACK_LEVEL() = f-f_stacksize failed: file Python/ceval.c,
 line 687


 Bug seems to appear when playing with ZCatalog (CMF sites could'nt even
 render a page) and Python scripts ?

 After some hours of researches, I have a (dirty, really) fix :

 I had to modify Python sources and hack line 687 in ceval.c  : I removed
 it...
 Then recompile and it seems to work. I know this is dirty, and my Zope my
 crash later.

 PLEASE CHECK and HELP !

 This looks like a major serious bug to me.

 Cheers,

 Olivier.


 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-27 Thread Olivier Deckmyn

 This has been explained recently (-- mailing list archives, probably
 through Google search for f_stacksize).

I did, without a great success.


 Summary, you need to upgrade Zope, too!

If only I could...

You can't make your customer migrate their Zope version in 2hours. Our
servers are hosting dozens of website for dozens of customer.
Moving to a newer Zope is not just a matter of installing a new version...

For example, we have a CMF site that will only work with Zope 2.4.1. We
tried to migrate to CMF 1.2 or Zope 2.4.3, without success (crashes,
security machinery misteries, etc.).
CMF is still too dark to manipulate it as we would wish.


 Viele Grüße
 Dieter


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )