Re: [Zope-dev] disabling gc does not necessarily hide memory corruption
On Wed, 19 Dec 2001 06:07:00 +1100, Anthony Baxter <[EMAIL PROTECTED]> wrote: >For me, I run the ZEO server without GC (because that stops the stomped >stack bug killing the ZEO server) Do you have reason to believe that this bug can affect the ZEO server? that would be very bad. Toby Dickenson [EMAIL PROTECTED] ___ 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] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
The new compiler fixes that we have to date are actually in 2.4 branch and 2.5 branch as well as the trunk; they're in the lib/python/RestrictedPython/compiler directory; so you could go to http://cvs.zope.org and just pull down that directory (optionally pulling down your specific branch too). Pythonlabs is working on a few more cases which I expect will be done and checked in RSN; then we'll backport those to the branches so you don't have to install a new python to get the fixes with Zope. Anthony Baxter is anticipating a Python 2.1.2 beta real soon now (probably this weekend) so I am going to try to get that into Zope 2.5's binary releases, although we may put out a Zope 2.5 beta 3 first. This will include the necessary Python patches to ceval.c to fix the frame bug; after it hits the streets Python 2.1.2 will become our recommended Python for Zope. The ExtensionClass.h patch has NOT been merged into the branches and trunk yet pending further review. - Original Message - From: "Joseph Wayne Norton" <[EMAIL PROTECTED]> To: "Matthew T. Kromer" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 2001 7:59 PM Subject: Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested > > Matt et al - > > We are using python 2.1.1 with pymalloc disabled and gc enabled with > zope 2.4.3 on the solaris platform. We are currently seeing only 1 or > 2 restarts a day for the zope/zeo clients. Fortunately, we have not > experienced any trouble with the zeo server. > > We have applied the a) extensionclass bugfix and I'm also planning to > apply the b) frame setup bugfix later this week. We feel that patch > a) has reduced the number of restarts ... but the site activity has > descreased as well so it is difficult to really confirm. > > 1) I would like to know if any patches are available yet for the c) > compiler stack size bug. When and if this patch is available, would > it require a new python installation, a new zope installation, or > both? > > 2) Are there any other related patches/comments with respect to python > 2.1.1 and zope 2.4.3 and this issue? > > thanks, > > - joe n. > > > At Tue, 18 Dec 2001 10:44:33 -0500, > Matthew T. Kromer wrote: > > > > Well, one suspicion I have is that (aside from memory corruption caused > > by the compiler sack size bugs and the frame setup bug in 2.1 when > > handling exceptions) ExtensionClasses are providing bogus data to > > modules which aren't checking the flags to see if the GC fields are > > populated. > > > > Some of the people who have tried the modified extensionclass.h which > > pads out the type object to align it with the 2.1 type object THINK they > > have seen a reduction in crashes, but these same folks also have not > > applied fixes for the two known bugs. > > > > Soo... if shutting off GC extends time between crashes for some folks > > from every 15 minutes to 3 times a day, my advise is to shut off GC. > > > ___ 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] disabling gc does not necessarily hide memory corruption
> Oh, ok, sorry for the misreport. It sounds then as if we need to fix > whatever is causing the memory corruption that GC trips over. I dont > know that we have a real good handle on what this is. I'm pretty sure we do. The stack estimation problems cause memory stomping, which happens to tend to be found much more quickly with GC enabled. Zope 2.5 b3 will contain a fixed compiler package. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.361.1716 Zope Corporation http://www.zope.com ___ 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] disabling gc does not necessarily hide memory corruption
It would be good if someone who is experiencing random crashes could confirm that the the new compiler package fixes their problem. - Original Message - From: "Brian Lloyd" <[EMAIL PROTECTED]> To: "Chris McDonough" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: "Anthony Baxter" <[EMAIL PROTECTED]>; "Zope Developers list" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 9:35 AM Subject: RE: [Zope-dev] disabling gc does not necessarily hide memory corruption > > Oh, ok, sorry for the misreport. It sounds then as if we need to fix > > whatever is causing the memory corruption that GC trips over. I dont > > know that we have a real good handle on what this is. > > I'm pretty sure we do. The stack estimation problems cause > memory stomping, which happens to tend to be found much more > quickly with GC enabled. > > Zope 2.5 b3 will contain a fixed compiler package. > > > Brian Lloyd[EMAIL PROTECTED] > Software Engineer 540.361.1716 > Zope Corporation http://www.zope.com > > > ___ 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] disabling gc does not necessarily hide memorycorruption
On Wed, 2001-12-19 at 13:34, Chris McDonough wrote: > It would be good if someone who is experiencing random crashes could confirm > that the the new compiler package fixes their problem. I might risk losing a few more points with my sysadmin to test it (Hi daniduc :-) if there was an easily downloadable package with clear instructions on how to apply it to Zope 2.4.3 (I don't feel like messing with CVS for this), and if you tell me that it won't corrupt my Data.fs or anything :-) Cheers, Leo -- Ideas don't stay in some minds very long because they don't like solitary confinement. ___ 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] disabling gc does not necessarily hide memory corruption
On Wed, Dec 19, 2001 at 05:24:58PM -0200, Leonardo Rochael Almeida wrote: > On Wed, 2001-12-19 at 13:34, Chris McDonough wrote: > > It would be good if someone who is experiencing random crashes could confirm > > that the the new compiler package fixes their problem. > > I might risk losing a few more points with my sysadmin to test it (Hi > daniduc :-) if there was an easily downloadable package with clear > instructions on how to apply it to Zope 2.4.3 (I don't feel like messing > with CVS for this), and if you tell me that it won't corrupt my Data.fs > or anything :-) You can download files from CVS as a tarball. Just go to http://cvs.zope.org/Zope/lib/python/RestrictedPython and use the link at the bottom. -- 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] disabling gc does not necessarily hide memorycorruption
I just found out that the RestrictedPython package isn't actually yet fixed! Shane is working on it. He's sweating and I think I almost heard him curse once. ;-) So please hang tight and we'll let you know when it's safe to go in the water. Note that at the time that it's fixed, all that needs to be done is to download the tarball as per Martijn's instructions, move the current "RestrictedPython" package aside, and put the new RestrictedPython package in its place, restart Zope. - Original Message - From: "Leonardo Rochael Almeida" <[EMAIL PROTECTED]> To: "Zope Developers list" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 2:24 PM Subject: Re: [Zope-dev] disabling gc does not necessarily hide memorycorruption > > On Wed, 2001-12-19 at 13:34, Chris McDonough wrote: > > It would be good if someone who is experiencing random crashes could confirm > > that the the new compiler package fixes their problem. > > I might risk losing a few more points with my sysadmin to test it (Hi > daniduc :-) if there was an easily downloadable package with clear > instructions on how to apply it to Zope 2.4.3 (I don't feel like messing > with CVS for this), and if you tell me that it won't corrupt my Data.fs > or anything :-) > > Cheers, Leo > > -- > Ideas don't stay in some minds very long because they don't like > solitary confinement. > > > ___ > 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] disabling gc does not necessarily hide memorycorruption
On Wed, 2001-12-19 at 18:02, Martijn Pieters wrote: > [...] > You can download files from CVS as a tarball. Just go to > http://cvs.zope.org/Zope/lib/python/RestrictedPython and use the link at the > bottom. Should I apply the ExtensionClass.h fix from CVS mentioned here in the list too? -- Ideas don't stay in some minds very long because they don't like solitary confinement. ___ 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] disabling gc does not necessarily hide memorycorruption
Oh, and which branch should I get the tarball from? On Wed, 2001-12-19 at 18:20, Leonardo Rochael Almeida wrote: > > > On Wed, 2001-12-19 at 18:02, Martijn Pieters wrote: > > [...] > > You can download files from CVS as a tarball. Just go to > > http://cvs.zope.org/Zope/lib/python/RestrictedPython and use the link at the > > bottom. > > Should I apply the ExtensionClass.h fix from CVS mentioned here in the > list too? > > -- > Ideas don't stay in some minds very long because they don't like > solitary confinement. > -- Ideas don't stay in some minds very long because they don't like solitary confinement. ___ 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] disabling gc does not necessarily hide memorycorruption
I'm not sure the ExtensionClass fix is baked yet, and there's not yet an overwhelming consensus that it helps stability, not to mention that I'm not sure how to install it, so no. ;-) I think you can use the trunk, no branch required. Hopefully the fixes will be merged soon. - Original Message - From: "Leonardo Rochael Almeida" <[EMAIL PROTECTED]> To: "Zope Developers list" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 3:22 PM Subject: Re: [Zope-dev] disabling gc does not necessarily hide memorycorruption > Oh, and which branch should I get the tarball from? > > On Wed, 2001-12-19 at 18:20, Leonardo Rochael Almeida wrote: > > > > > > On Wed, 2001-12-19 at 18:02, Martijn Pieters wrote: > > > [...] > > > You can download files from CVS as a tarball. Just go to > > > http://cvs.zope.org/Zope/lib/python/RestrictedPython and use the link at the > > > bottom. > > > > Should I apply the ExtensionClass.h fix from CVS mentioned here in the > > list too? > > > > -- > > Ideas don't stay in some minds very long because they don't like > > solitary confinement. > > > -- > Ideas don't stay in some minds very long because they don't like > solitary confinement. > > > ___ > 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 )
[Zope-dev] Precompiled binaries for Linux? (SuSE)
Hi! I have tried to compile psycopg on a SuSE Linux 7.0 system, but it I simply cannot get it done. Do you have some precompiled binaries you could post? Thanks a lot in advance! Joachim Werner ___ 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] I'll wait then
After reading this thread, my sysadmin (hi daniduc :-) just pointed a gun at my head and said: "When those guys say it's ready, you'll wait 24h and THEN you will try the fix" :-) Cheers, Leo On Wed, 2001-12-19 at 18:34, Chris McDonough wrote: > I just found out that the RestrictedPython package isn't actually yet fixed! > Shane is working on it. He's sweating and I think I almost heard him curse > once. ;-) So please hang tight and we'll let you know when it's safe to go > in the water. > > Note that at the time that it's fixed, all that needs to be done is to > download the tarball as per Martijn's instructions, move the current > "RestrictedPython" package aside, and put the new RestrictedPython package > in its place, restart Zope. -- Ideas don't stay in some minds very long because they don't like solitary confinement. ___ 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] I'll wait then
Em Quarta 19 Dezembro 2001 18:38, Leonardo Rochael Almeida escreveu: > After reading this thread, my sysadmin (hi daniduc :-) just pointed a Hi Leo! =) > gun at my head and said: "When those guys say it's ready, you'll wait > 24h and THEN you will try the fix" :-) Aw, c'm'om, If I weren't paranoic I could not be a sysadmin, could I? ;) But we will try this fix, hope that contributes with the Zope Community! Regards -- daniel lobato duclos -- [EMAIL PROTECTED] -- http://www.hiperlogica.com.br - ___ 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] KeyError with __eq__
I'm trying to publish an object without using content_publish_form (so directly invoking content_status_modify) and I'm getting Error Type: KeyError Error Value: __eq__ The only place I find __eq__ in the zope installation is in UserList.py, where it appears to be some kind of redefinition of '=='. UserList.py does not appear in the stack trace, so I'm confused as to what may be happening here. Anyone else run into this? Thanks, Josh ps ~ I'm not sure I understand Zope stack traces very well - I can't find any of my objects in the listing. I would expect to see my object (which invoked the method that started the action) somewhere in the trace. ___ 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] OpenOffice and Zope ??
Hi! I don't have the resources to start something like that NOW, but I'd really like to see work on an OpenOffice integration: > has anybody integrated/plans on intragration/experimented with > OpenOffice and Zope ? YES. > - OpenOffice as a HTML Editor / Web-Frontend for Zope I don't like that one too much. OpenOffice doesn't have a browser component any more. > - OpenOffice as a HelperTool in the Background (external converter for > MS Office Products) of Zope That's what we are aiming at: The MSOffice-to-OpenOffice(XML)-Converters produce very useful output. I think it should be rather easy to import a converted doc into Zope and catalog it on the fly. > Special interests in turning excel-spreadsheets with diagramms (!) into > searchable pdf and/or html with pics into Zope. One sample scenario: - Create a template for a diagram in OpenOffice - Uploade it into Zope and add some dtml-vars (or ZPT expressions) to the XML file to make it dynamic (e.g. to create web usage statistics) - Users can not only see and download the diagram as gif (which is possible right now using GDChart or so), but can also download it as a valid OpenOffice (or, if reconverted, also PowerPoint/Excel) doc. That diagram contains the dynamically created numbers, but can be edited locally. Does OpenOffice support WebDAV already? That would be very useful. Similar things could be done with KOffice. The general concept is always the same: - Rich clients read and write XML documents - WebDAV is used as the protocol - Zope is the server Joachim ___ 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] Precompiled binaries for Linux? (SuSE)
Hi! I finally managed to compile that beast. So I'll probably be the one to post binaries ASAP ... - Original Message - From: "Joachim Werner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 9:37 PM Subject: [Zope-dev] Precompiled binaries for Linux? (SuSE) > Hi! > > I have tried to compile psycopg on a SuSE Linux 7.0 system, but it I simply > cannot get it done. Do you have some precompiled binaries you could post? > > Thanks a lot in advance! > > Joachim Werner > > > ___ > 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 )
[Zope-dev] Strange error message: "function attributes not accessible in restricted mode"
Hi! I have two Zope 2.5 b2 installations on two seemingly identical machines, both with PostgreSQL, ZPsyCopDA, and DBObjects. In the DBObjects demo, I am getting THIS (see below) on one of the machines (the one with the slightly older installation). Very strange for me. What the hell is "restricted mode"? Something new in the RestrictedPython environment? And what could explain the fact that it happens on one machine, but not on the other? Joachim Zope Error Zope has encountered an error while publishing this resource. Error Type: RuntimeError Error Value: function attributes not accessible in restricted mode Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/Publish.py, line 158, in publish_module File /home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/Publish.py, line 119, in publish File /home/ftp/root/kue-projekt/dev_8280/lib/python/Zope/__init__.py, line 158, in zpublisher_exception_hook (Object: test) File /home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/Publish.py, line 103, in publish File /home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_addForm) File /home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/Publish.py, line 44, in call_object (Object: manage_addForm) File /home/ftp/root/kue-projekt/dev_8280/lib/python/App/special_dtml.py, line 61, in __call__ (Object: manage_addForm) File /home/ftp/root/kue-projekt/dev_8280/lib/python/DocumentTemplate/DT_String.py , line 473, in __call__ (Object: manage_addForm) File /home/ftp/root/kue-projekt/dev_8280/lib/python/DocumentTemplate/DT_In.py, line 620, in renderwob (Object: getSubObjectClass(subObjectMetaType).dbTable.getAllAttributes()) File /home/ftp/root/kue-projekt/dev_8280/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: getSubObjectClass(subObjectMetaType).dbTable.getAllAttributes()) (Info: getSubObjectClass) File , line 0, in ? RuntimeError: (see above) ___ 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] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
Matt - If possible, I would prefer to use a source Python 2.1.2 release with a source zope 2.4.4 ? bugfix release (or create my own from the 2.4 cvs branch) once the fixes are complete. We do not want to put a 2.5 release in production at this time. Thanks for the update. regards, - j At Wed, 19 Dec 2001 09:25:08 -0500, Matthew T. Kromer wrote: > > The ExtensionClass.h patch has NOT been merged into the branches and trunk > yet pending further review. > just my 2 cents, but we have been using this in production for about 1 week or more without any troubles. ___ 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 )