Re: [Zope-dev] Core dumps - How to find out the bug?

2002-01-21 Thread Anthony Baxter


 =?iso-8859-1?Q?Dario_Lopez-K=E4sten?= wrote
 I only have core dumps to work from. I include the stack from latest core
 dump.
 I am using python 2.1.2 (release), Zope2.4.3 release, RedHat Linux 7.2.
 Python is compiled --without-pymalloc

Hm. The bug report you sent is pretty much exactly what I'd expect when
hitting the Python Compiler stacksize bug. I suspect the problem here is
that Zope 2.4.3 provides it's own complete copy of the Compiler, so you're
not seeing Jeremy's fixes. Possible solutions:

  - wait for Zope 2.4.4
  - upgrade to the current CVS version of the Zope 2.4 branch, Zope-2_4-branch.
  This contains what will become (hopefully, shortly) 2.4.4. I'm assuming 
  there's a 2.4.4 planned.
  - upgrade to the current 2.5 beta.


 
 -
 #0  0x0806fb77 in subtract_refs (containers=0x80b228c) at
 ./Modules/gcmodule.c:170
 #1  0x0806ff74 in collect (young=0x80b228c, old=0x80b2298) at
 ./Modules/gcmodule.c:382
 #2  0x080701c2 in collect_generations () at
 ./Modules/gcmodule.c:479

Anthony

-- 
Anthony Baxter [EMAIL PROTECTED]   
It's never too late to have a happy childhood.


___
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] Python 2.1.2 does not fix the signal 11 crashing problem !!!!!!!!!!!

2002-01-21 Thread Harald Koschinski

Hallo,

after switching to python 2.1.2 compiled with GC 
 (intranet:/usr/local/src/Python-2.1.2 # ./configure --without-pymalloc)
the crashes are back again :-(((

-
2002-01-04T06:23:51 ERROR(200) zdaemon zdaemon: Fri Jan  4 07:23:51 
2002: Aiieee! 9671 exited with error code: 11
2002-01-04T07:25:48 ERROR(200) zdaemon zdaemon: Fri Jan  4 08:25:48 
2002: Aiieee! 10107 exited with error code: 11
2002-01-04T07:30:45 ERROR(200) zdaemon zdaemon: Fri Jan  4 08:30:45 
2002: Aiieee! 10412 exited with error code: 11
2002-01-21T08:30:43 ERROR(200) zdaemon zdaemon: Mon Jan 21 09:30:43 
2002: Aiieee! 6749 exited with error code: 11
-

What is the way to finaly fix the problem

regards

Harald


Matthew T. Kromer wrote:

 Harald Koschinski wrote:

 same for me, no more crashes - but zope needs very much memory (logo 
 :-(()

 I will try know python 2.1.2.



 OK -- our Zope 2.5.0 betas 3 and 4 have a binary python in them that 
 contains the critical ceval.c patch.








___
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] Re: Python 2.1.2 does not fix the signal 11 crashing problem !!!!!!!!!!!

2002-01-21 Thread Anthony Baxter


 Harald Koschinski wrote
 Hallo,
 
 after switching to python 2.1.2 compiled with GC 
  (intranet:/usr/local/src/Python-2.1.2 # ./configure --without-pymalloc)
 the crashes are back again :-(((
 

Which version of Zope? Does it have the RestrictedCompiler fix?

As far as I am aware, Zope 2.4 includes it's own version of the
Compiler code, and the current release of 2.4 still has the stacksize
bug.

Anthony

-- 
Anthony Baxter [EMAIL PROTECTED]   
It's never too late to have a happy childhood.


___
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] Core dumps - How to find out the bug?

2002-01-21 Thread Joseph Wayne Norton


Dario -

I had faced similar problems ... try the following thread for help

  http://aspn.activestate.com/ASPN/Mail/Message/zope-Dev/940742

on how to trap the error on a running process.  For linux, you need
the command strace ... here is one url

  http://www.pugcentral.org/howto/truss.htm

Once you have the core file, you should invoke gdb like this ...

 gdb program core

where program is the path to the python executable and core is the
core file.  Then, type info threads to see which thread and where
the problem occured in zope/python.

- j






___
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] REQUEST.AUTHENTICATED_USER question

2002-01-21 Thread Jens Vagelpohl

the user gets modified automatically, provided you use common 
login-methodology and a user folder that supports it.

you don't set the user manually.

jens


On Monday, January 21, 2002, at 12:35 , vio wrote:

 Hi,
 Does anybody know what is the method call to modify the 
 AUTHENTICATED_USER attribute? I am unable to trace where REQUEST feeds 
 data for its AUTHENTICATED_USER attribute.

 Some context to my question: I am using a custom method to authenticate 
 users coming to my site. So when the user logs in, he is 'Anonymous User'
  (from call: AUTHENTICATED_USER.getUserName()). But after his login name 
 and password checked ok, how do I switch his identity in Zope from 
 'Anonymous User' to his/her new identity?  What I am looking for is that 
 next time I call 'REQUEST.AUTHENTICATED_USER.getUserName()' to get the 
 new UserName he just logged in as, not 'Anonymous User' again.

 Examining CookieCrumbler.py source, this authentication product uses the 
 'before_publishing_traverse hook' mechanism. But isn't there a simpler 
 way to do this than modifying REQUEST.RESPONSE at each traversal? Sounds 
 like a lot of overhead.

 Vio



___
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: Python 2.1.2 does not fix the signal 11 crashing problem !!!!!!!!!!!

2002-01-21 Thread Chris McDonough

Yes, there is still a compiler module bug in Zope 2.4.3 that will cause
crashing under any Python version.  Please wait for Zope 2.4.4 (ETA unknown)
or upgrade to Zope 2.5.0b4 (which already has the fix).

- C

- Original Message -
From: Harald Koschinski
To: Anthony Baxter
Cc: Matthew T. Kromer ; Leonardo Rochael Almeida ; Ralph Arenz ; zope-dev
Sent: Monday, January 21, 2002 4:23 AM
Subject: [Zope-dev] Re: Python 2.1.2 does not fix the signal 11 crashing
problem !!!


Anthony Baxter wrote:

Harald Koschinski wrote
Hallo,after switching to python 2.1.2 compiled with GC
(intranet:/usr/local/src/Python-2.1.2 # ./configure --without-pymalloc)the
crashes are back again :-(((
Which version of Zope?
2.4.3

Does it have the RestrictedCompiler fix?
Good question - next question please :-(((

I am again a little bit confused - I thought that the problem is only in the
GC module of Python because zope is running without any crashes when I
disable GC.

As far as I am aware, Zope 2.4 includes it's own version of theCompiler
code, and the current release of 2.4 still has the stacksizebug.Anthony

Matthew: Can you give the final answer ???


___
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] Problem in strating zope server

2002-01-21 Thread sanjay singh



Hi all,
 I 
m installing Zope 4.2.1 on linux.After getting it installed, when its strated it 
strats and gives the port it is listening to.
But when i access it through browser then there is 
no connection established with the server.

It gives following output while installing and 
starting.


[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 80
-rw-r--r--1 506  users   75448 Jan 21  2001 Data.fs.in

[root@EP Zope2.4.1]# ls -l
total 92
drwxr-xr-x2 506  users4096 Sep  4 19:18 Extensions
-rw-r--r--1 506  users3026 Sep  4 18:54 LICENSE.txt
-rw-r--r--1 506  users 987 Apr 29  1999 README.txt
drwxr-xr-x4 506  users4096 Sep  4 19:18 ZServer
drwxr-xr-x2 506  users4096 Sep  4 19:18 bin
drwxr-xr-x4 506  users4096 Sep  4 19:18 doc
drwxr-xr-x2 506  users4096 Sep  4 19:18 import
drwxr-xr-x2 506  users4096 Sep  4 19:18 inst
-rwxr-xr-x1 506  users 225 Jul 23  1999 install
drwxr-xr-x4 506  users4096 Sep  4 19:18 lib
drwxr-xr-x8 506  users4096 Sep  4 19:18 pcgi
drwxr-xr-x2 506  users4096 Sep  4 19:18 utilities
drwxrwxr-x2 506  users4096 Sep  4 19:18 var
-rw-r--r--1 506  users   25607 Jun 18 19:19 z2.py
-rw-r--r--1 506  users9546 Dec  8  2000 zpasswd.py
##
[root@EP Zope2.4.1]# ./install -u ep -g users

--
Compiling python modules
  File "/home/ep/zope/Zope2.4.1/lib/python2.1/test/nocaret.py", line 2
[x for x in x] = x
SyntaxError: can't assign to list comprehension
SyntaxError: from __future__ imports must occur at the beginning of the file (test_future3.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file (test_future4.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file (test_future5.py, line 4)
SyntaxError: from __future__ imports must occur at the beginning of the file (test_future6.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file (test_future7.py, line 3)
--
--
creating default inituser file
Note:
The initial user name and password are 'admin'
and 'IaejsWAa'.

You can change the name and password through the web
interface or using the 'zpasswd.py' script.

chgrp users /home/ep/zope/Zope2.4.1/inituser
chown ep /home/ep/zope/Zope2.4.1/inituser
chmod 0660 /home/ep/zope/Zope2.4.1/inituser
chgrp users /home/ep/zope/Zope2.4.1/var
chown ep /home/ep/zope/Zope2.4.1/var
chmod 0771 /home/ep/zope/Zope2.4.1/var
--
setting dir permissions
--
creating default database
chgrp users /home/ep/zope/Zope2.4.1/var/Data.fs
chown ep /home/ep/zope/Zope2.4.1/var/Data.fs
chmod 0660 /home/ep/zope/Zope2.4.1/var/Data.fs
--
Writing the pcgi resource file (ie cgi script), /home/ep/zope/Zope2.4.1/Zope.cgi
chgrp users /home/ep/zope/Zope2.4.1/Zope.cgi
chown ep /home/ep/zope/Zope2.4.1/Zope.cgi
chmod 0775 /home/ep/zope/Zope2.4.1/Zope.cgi
--
Creating start script, start
chgrp users /home/ep/zope/Zope2.4.1/start
chown ep /home/ep/zope/Zope2.4.1/start
chmod 0771 /home/ep/zope/Zope2.4.1/start
--
Creating stop script, stop
chgrp users /home/ep/zope/Zope2.4.1/stop
chown ep /home/ep/zope/Zope2.4.1/stop
chmod 0771 /home/ep/zope/Zope2.4.1/stop
--

Done!
##
[root@EP Zope2.4.1]# 
[root@EP Zope2.4.1]# ls -l
total 136
drwxrwxr-x2 ep   users4096 Sep  4 19:18 Extensions
-rw-r--r--1 506  users3026 Sep  4 18:54 LICENSE.txt
-rw-r--r--1 506  users 987 Apr 29  1999 README.txt
drwxrwxr-x4 ep   users4096 Oct 17 18:44 ZServer
-rwxrwxr-x1 ep   users 501 Oct 17 18:44 Zope.cgi
drwxrwxr-x2 ep   users4096 Sep  4 19:18 bin
drwxrwxr-x4 ep   users4096 Sep  4 19:18 doc
drwxrwxr-x2 ep   users4096 Sep  4 19:18 import
-rw-rw1 ep   users  39 Oct 17 18:44 inituser
drwxrwxr-x2 ep   users4096 Oct 17 18:44 inst
-rwxr-xr-x1 506  users 

Re: [Zope-dev] Problem in strating zope server

2002-01-21 Thread Chris McDonough

Man, that was painful to read.  *Please* send plaintext, not HTML.

Your server appears to be listening on port 8080.  Looks like a normal
startup to me.

I suspect you're trying to access Zope via localhost which won't work in
your case because you're limiting the port to something via -P.  Try this
instead:

./start -u ep


- Original Message -
From: sanjay singh
To: [EMAIL PROTECTED]
Sent: Thursday, February 21, 2002 1:33 AM
Subject: [Zope-dev] Problem in strating zope server


Hi all,
 I m installing Zope 4.2.1 on linux.After getting it installed, when
its strated it strats and gives the port it is listening to.
But when i access it through browser then there is no connection established
with the server.

It gives following output while installing and starting.


[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 80
-rw-r--r--1 506  users   75448 Jan 21  2001 Data.fs.in

[root@EP Zope2.4.1]# ls -l
total 92
drwxr-xr-x2 506  users4096 Sep  4 19:18 Extensions
-rw-r--r--1 506  users3026 Sep  4 18:54 LICENSE.txt
-rw-r--r--1 506  users 987 Apr 29  1999 README.txt
drwxr-xr-x4 506  users4096 Sep  4 19:18 ZServer
drwxr-xr-x2 506  users4096 Sep  4 19:18 bin
drwxr-xr-x4 506  users4096 Sep  4 19:18 doc
drwxr-xr-x2 506  users4096 Sep  4 19:18 import
drwxr-xr-x2 506  users4096 Sep  4 19:18 inst
-rwxr-xr-x1 506  users 225 Jul 23  1999 install
drwxr-xr-x4 506  users4096 Sep  4 19:18 lib
drwxr-xr-x8 506  users4096 Sep  4 19:18 pcgi
drwxr-xr-x2 506  users4096 Sep  4 19:18 utilities
drwxrwxr-x2 506  users4096 Sep  4 19:18 var
-rw-r--r--1 506  users   25607 Jun 18 19:19 z2.py
-rw-r--r--1 506  users9546 Dec  8  2000 zpasswd.py

##
[root@EP Zope2.4.1]# ./install -u ep -g users


--
Compiling python modules
  File /home/ep/zope/Zope2.4.1/lib/python2.1/test/nocaret.py, line 2
[x for x in x] = x
SyntaxError: can't assign to list comprehension
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future3.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future4.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future5.py, line 4)
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future6.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future7.py, line 3)

--

--
creating default inituser file
Note:
The initial user name and password are 'admin'
and 'IaejsWAa'.

You can change the name and password through the web
interface or using the 'zpasswd.py' script.

chgrp users /home/ep/zope/Zope2.4.1/inituser
chown ep /home/ep/zope/Zope2.4.1/inituser
chmod 0660 /home/ep/zope/Zope2.4.1/inituser
chgrp users /home/ep/zope/Zope2.4.1/var
chown ep /home/ep/zope/Zope2.4.1/var
chmod 0771 /home/ep/zope/Zope2.4.1/var

--
setting dir permissions

--
creating default database
chgrp users /home/ep/zope/Zope2.4.1/var/Data.fs
chown ep /home/ep/zope/Zope2.4.1/var/Data.fs
chmod 0660 /home/ep/zope/Zope2.4.1/var/Data.fs

--
Writing the pcgi resource file (ie cgi script),
/home/ep/zope/Zope2.4.1/Zope.cgi
chgrp users /home/ep/zope/Zope2.4.1/Zope.cgi
chown ep /home/ep/zope/Zope2.4.1/Zope.cgi
chmod 0775 /home/ep/zope/Zope2.4.1/Zope.cgi

--
Creating start script, start
chgrp users /home/ep/zope/Zope2.4.1/start
chown ep /home/ep/zope/Zope2.4.1/start
chmod 0771 /home/ep/zope/Zope2.4.1/start

--
Creating stop script, stop
chgrp users /home/ep/zope/Zope2.4.1/stop
chown ep /home/ep/zope/Zope2.4.1/stop
chmod 0771 /home/ep/zope/Zope2.4.1/stop

--

Done!

##
[root@EP Zope2.4.1]#
[root@EP Zope2.4.1]# ls -l
total 136
drwxrwxr-x2 ep   users4096 Sep  4 19:18 Extensions
-rw-r--r--1 506  users3026 Sep  4 18:54 LICENSE.txt
-rw-r--r--1 506  users 987 

[Zope-dev] Zope 2.4.4, when?

2002-01-21 Thread Leonardo Rochael Almeida

Guys, please,

We really need 2.4.4 and our client won't accept a CVS version. 2.5
betas won't do it either.

What is holding 2.4.4 back? Is there anything you need help with?
testing? bugfix?

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] REQUEST.AUTHENTICATED_USER question

2002-01-21 Thread Jens Vagelpohl

the user folder does this switch. it's not something you should do 
manually.

by the way, since replying to your previous email to me bounced back 
([EMAIL PROTECTED] is unknown) i'm uncluding that here:

**
vio,

i'm not sure what user folder products you were looking at, the 
CookieCrumbler is *not* a user folder.

normal user folders do not use BeforeTraverse.

look at the source for the stock user folder 
(lib/python/AccessControl.User.py), it is pretty much the simplest 
implementation around.

jens


On Monday, January 21, 2002, at 09:23 , [EMAIL PROTECTED] wrote:

But setting the user 'programmatically' is precisely the point of a custom 
login method. If I can't set the user programatically inside my code, what'
s the point in a 'custom' login method then? Anyway, I know it'
s feasable, because all the other 'customised' login products are doing 
precisely that (after each authenticating the user in their own specific 
way). And Zope does it in module HTTPResponse.HTTPResponse.unauthorised() 
(called with REQUEST['RESPONSE'].unauthorised()). But I haven't totally 
figured it out how that works (how Zope switches user 
identities ?). And the two 'custom UserFolder' products I've 
examined both seem to use ZPublisher.BeforeTraverse to 'make' this switch 
happen, somehow. Hence my question to this list: not 'if' the user can be 
switched (not 'manually' but 'programmatically'), but 'HOW'!

Cheers,
Vio
***

jens

On Monday, January 21, 2002, at 10:32 , vio wrote:

 The point in a customised login method is precisely to do just that: 
 validate
 user credentials with some custom scheme. If interested, this is trivial 
 to do
 with a valid UserFolder instance around:
 'if my_custon_loginForm_password == 
 Users_folder.getUser(my_custon_loginForm_loginName)._getPassword(): and 
 here SWITCH to the authenticated new user identity'.And Voila! No sweat. 
 But I just don't know nor understand how to do that switch
 yet, 'programmatically'.


 * Jens Vagelpohl [EMAIL PROTECTED] [020121 09:02]:
 the user gets modified automatically, provided you use common
 login-methodology and a user folder that supports it.

 You must be referring to the routine 
 HTTPResponse.HTTPResponse.unauthorised(),
 called with REQUEST.RESPONSE.unauthorised(). It just happens that I really
 don't like that 'Basic Authentication' dialog, that's why I want to use 
 mine.
 So I've done half of the job to that end, only remaining problem is to 
 switch
 'programmatically' to the new authenticated user id. Doing something like
 'REQUEST['AUTHENTICATED_USER'] = my_custon_loginForm_loginName' seems to 
 have
 no effect, because the user is still 'Anonymous User' (found with
 'AUTHENTICATED_USER.getUserName()'). If only I could understand where 
 REQUEST
 gets its data for its 'AUTHENTICATED_USER' attribute, I could simply 
 change
 that data source, and I'd be done. But I don't still understand how 
 REQUEST
 gets all the data to its attributes.


 you don't set the user manually.

 Of course you do ('programmatically' not 'manually'), as proven by all the
 customised 'login' products out there, who are doing just that.
 Only the one I studied so far
 (CookieCrumbler) seems to re-write the REQUEST.RESPONSE at each traversal.
 Which to me seems like a lot of overhead. If someone could point me to 
 where
 Zope keeps user state (I believe with a cookie on the user's browser,
 but where in the source does Zope set this cookie up?),
 I could simply re-write that cookie with the new User ID ... Just a
 thought of a simple and elegant solution (aka 'magic bullet') for my 
 problem.

 Vio


 jens


 On Monday, January 21, 2002, at 12:35 , vio wrote:

 Hi,
 Does anybody know what is the method call to modify the
 AUTHENTICATED_USER attribute? I am unable to trace where REQUEST feeds
 data for its AUTHENTICATED_USER attribute.

 Some context to my question: I am using a custom method to authenticate
 users coming to my site. So when the user logs in, he is 'Anonymous 
 User'
  (from call: AUTHENTICATED_USER.getUserName()). But after his login name
 and password checked ok, how do I switch his identity in Zope from
 'Anonymous User' to his/her new identity?  What I am looking for is that
 next time I call 'REQUEST.AUTHENTICATED_USER.getUserName()' to get the
 new UserName he just logged in as, not 'Anonymous User' again.

 Examining CookieCrumbler.py source, this authentication product uses the
 'before_publishing_traverse hook' mechanism. But isn't there a simpler
 way to do this than modifying REQUEST.RESPONSE at each traversal? Sounds
 like a lot of overhead.

 Vio



 ___
 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] Re: Python 2.1.2 does not fix the signal 11 crashing problem !!!!!!!!!!!

2002-01-21 Thread Matthew T. Kromer

Harald Koschinski wrote:

 Anthony Baxter wrote:

Harald Koschinski wrote

Hallo,

after switching to python 2.1.2 compiled with GC 
 (intranet:/usr/local/src/Python-2.1.2 # ./configure --without-pymalloc)
the crashes are back again :-(((


Which version of Zope? 

 2.4.3

Does it have the RestrictedCompiler fix?

 Good question - next question please :-(((

 I am again a little bit confused - I thought that the problem is only 
 in the GC module of Python because zope is running without any crashes 
 when I disable GC.


As far as I am aware, Zope 2.4 includes it's own version of the
Compiler code, and the current release of 2.4 still has the stacksize
bug.

Anthony


 Matthew: Can you give the final answer ???



2.4.4 (which should be mostly the equivalent of the Zope-2_4-branch in 
our CVS) hasn't been extensively tested.  There are a LOT of things that 
I'm aware of that _can_ cause crashes, ie in MySQL when the database 
object switches threads, it can get unhappy (I think something in MySQL 
may have thread-local state).

Unfortunately, I can't speculate on exactly WHICH problem is causing the 
seg faults, because they don't occur in-house (except for the one 
compiler bug which we were able to reproduce.)

I am notionally toying with the idea of spending some evening hours 
attempting to come up with some kind of Linux-enabled crash capturing 
package, but this is not necessarily going to be trivial, and I dont 
know exactly how I want it to work.  (Ie the proper way is to be able to 
validate all pointers etc, from the stack frame trace on a sig 11 signal 
handler etc.. but that may require some assembly glue).



___
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] Zope 2.4.4, when?

2002-01-21 Thread Adam Manock

At 09:10 AM 1/21/02, Leonardo Rochael Almeida wrote:
Guys, please,

We really need 2.4.4 and our client won't accept a CVS version. 2.5
betas won't do it either.

I think that's the case in many environments, mine included.
I've been seriously considering rolling 2.3.3 back out just for the long
uptimes (2months) I was getting.
In the meantime does anyone have a good monitoring script that can
check Zope with wget or something and issue a service zope restart
when appropriate?

What is holding 2.4.4 back? Is there anything you need help with?
testing? bugfix?

Yes, what do you need help with?
Need someone to thoroughly audit all the changes between 2.4.3
and Zope-2_4-branch for example? I'm going to have to do this, and
roll a new .src.rpm for my own use anyway

Adam.


___
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] Re: Python 2.1.2 does not fix the signal 11 crashing problem !!!!!!!!!!!

2002-01-21 Thread Anthony Baxter


 Matthew T. Kromer wrote
 2.4.4 (which should be mostly the equivalent of the Zope-2_4-branch in 
 our CVS) hasn't been extensively tested.  There are a LOT of things that 
 I'm aware of that _can_ cause crashes, ie in MySQL when the database 
 object switches threads, it can get unhappy (I think something in MySQL 
 may have thread-local state).

In that case, how about cutting a version which is 2.4.3 + the compiler
fixes? Crashes are bad, and it would be very nice to Make Them Go Away. :)

Anthony

-- 
Anthony Baxter [EMAIL PROTECTED]   
It's never too late to have a happy childhood.


___
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: Python 2.1.2 does not fix the signal 11 crashing problem !!!!!!!!!!!

2002-01-21 Thread Matt Behrens

Anthony Baxter wrote:

 In that case, how about cutting a version which is 2.4.3 + the compiler
 fixes? Crashes are bad, and it would be very nice to Make Them Go Away. :)

You already have that.  Check out the Zope-2_4-branch from CVS (see 
http://dev.zope.org/CVS for info).  Now leave poor Matt alone :-)

___
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: Python 2.1.2 does not fix the signal 11 crashing problem !!!!!!!!!!!

2002-01-21 Thread Anthony Baxter


 Behrens Matt - Grand Rapids wrote
 Anthony Baxter wrote:
 
  In that case, how about cutting a version which is 2.4.3 + the compiler
  fixes? Crashes are bad, and it would be very nice to Make Them Go Away. :)
 
 You already have that.  Check out the Zope-2_4-branch from CVS (see 
 http://dev.zope.org/CVS for info).  Now leave poor Matt alone :-)

I know - I do have this. Plenty of other people, tho, do NOT have the
ability to build their own version of Zope. Requiring people to follow
a somewhat arcane set of instructions and steps merely to get a stable
version of Zope that doesn't crash strikes me as... odd.

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 )



[Zope-dev] New Medical/Healthcare Python/Zope user group - Zopymed

2002-01-21 Thread Jon Edwards

From an idea on the Openhealth mailing list, we've setup a new user-group
for Zope/Python users involved in the Medical/Healthcare fields (and
surrounding fields, such as Education, Research, BioInformatics) ...or
ZoPyMed for short!

Just a mailing list so far -
http://maillist.linuxmednews.org/mailman/listinfo/zopymed - but we can setup
an associated website if there is sufficient interest.

Short-term, the list is a place to ask questions and share ideas, code, tips
and useful-links. Long-term, we might aim to create reusable
components/functionality and promote interoperability between different
applications. But the agenda is very fluid, and open to suggestions!

So, if you're using Zope/Python and are involved in Medical/Health-related
IT, please join up, introduce yourself, and tell us what you'd like to see
from this group!

Cheers, Jon

Jon Edwards
Pricom Ltd
www.pricom.co.uk


___
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: Python 2.1.2 does not fix the signal 11 crashing problem !!!!!!!!!!!

2002-01-21 Thread Shane Hathaway

Anthony Baxter wrote:

Behrens Matt - Grand Rapids wrote

Anthony Baxter wrote:


In that case, how about cutting a version which is 2.4.3 + the compiler
fixes? Crashes are bad, and it would be very nice to Make Them Go Away. :)

You already have that.  Check out the Zope-2_4-branch from CVS (see 
http://dev.zope.org/CVS for info).  Now leave poor Matt alone :-)

 
 I know - I do have this. Plenty of other people, tho, do NOT have the
 ability to build their own version of Zope. Requiring people to follow
 a somewhat arcane set of instructions and steps merely to get a stable
 version of Zope that doesn't crash strikes me as... odd.

It's not as uncommon as you make it sound; look at BerkeleyDB and the 
Linux kernel. :-)

Anyway, Zope 2.4.4 is coming soon I'm sure.  The only difference is the 
Python files in lib/python/RestrictedPython so you really don't even 
have to recompile anything.

Shane


___
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] 2.5.0b4: how to deadlock/DoS your Data.fs

2002-01-21 Thread Pierre Fortin

Hi,

I've been away from Zope for nearly two years and thought I'd give 2.5.0b4
a whirl...  instead, it's giving me a spinning head...

I have multiple sites and would like to give Zope another try...  

When I first go into Zope at localhost:8080/manage, the first thing I
tried was to add a VirtualHostMonster (specifying all the fields)...  Big
mistake #1...  the Data.fs is toast -- no way to access it...

Re-install and try again...

This time, I try SiteRoot, specifying the fields:
  pfortin.com
  http://pfortin.com/
  /Z
Big mistake #2!

Re-install and try again...

This time, I do the same thing; but without specifying a 
Base...  Big mistake #3!

In every case, I was left with an unusable Data.fs because the
http://localhost:8080/manage page was now pointing to non-existent data...

I'm off to do some more reading; but the intent was to try to setup 2
virtual hosts on localhost:8080 without disturbing the running hosts on
port 80...  but I ended up with deadlocked files since main screen points
to http://localhost:8080/fubar/manage* which are not setup.

Pierre

___
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] 2.5.0b4: how to deadlock/DoS your Data.fs

2002-01-21 Thread Jens Vagelpohl

did you read the documentation that explains how to suppress e.g. site 
roots by inserting certain names into the URL?

installing site roots or virtual host monsters does not toast any ZODB.

jens


On Tuesday, January 22, 2002, at 12:10 , Pierre Fortin wrote:

 Hi,

 I've been away from Zope for nearly two years and thought I'd give 2.5.0b4
 a whirl...  instead, it's giving me a spinning head...

 I have multiple sites and would like to give Zope another try...

 When I first go into Zope at localhost:8080/manage, the first thing I
 tried was to add a VirtualHostMonster (specifying all the fields)...  Big
 mistake #1...  the Data.fs is toast -- no way to access it...

 Re-install and try again...

 This time, I try SiteRoot, specifying the fields:
   pfortin.com
   http://pfortin.com/
   /Z
 Big mistake #2!

 Re-install and try again...

 This time, I do the same thing; but without specifying a
 Base...  Big mistake #3!

 In every case, I was left with an unusable Data.fs because the
 http://localhost:8080/manage page was now pointing to non-existent data..
 .

 I'm off to do some more reading; but the intent was to try to setup 2
 virtual hosts on localhost:8080 without disturbing the running hosts on
 port 80...  but I ended up with deadlocked files since main screen points
 to http://localhost:8080/fubar/manage* which are not setup.

 Pierre

 ___
 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] 2.5.0b4: how to deadlock/DoS your Data.fs

2002-01-21 Thread Pierre Fortin

Well... pointing my browser to http://localhost:8080/manage gives errors
due to everything getting re-written to entities which don't exist yet;
the frameset's three frames point  to
http://localhost:8080/fubar/manage* which are not setup.
^^^   ^ My point is that it is way
too easy to (yes) toast your ZODB as a result.  In other words,
inability to access the manage page is equivalent to a toasted ZODB since
there is no [visible] way back in...  the manage page is no longer
accessible if the first thing I do is add a VHM or SiteRoot...

Injecting a rewrite rule between the browser and Zope's
http://localhost:8080/manage won't help when going directly to
http://localhost:8080/manage gives errors which prevent doing anything
else to the ZODB; but hey...  I'm re-learning Zope (which didn't have VHM
back then, IIRC), and being unable to access the ZODB after adding a
single item to a virgin copy is not a very friendly loophole, IMHO.  

Even following http://www.zope.org/Members/Jace/apache-vhm appears to
assume that a Zope site already exists...  am I wrong...?

BTW, did you really mean suppress?  If so, I haven't found that yet...
(pointer?)  If not, see above.

http://www.zope.org/DocProjects/AdminGuide/Project/FrontPage states
Complex software without documentation is hard to sell someone on, IMHO.
--willdawg which kinda says it all...

If the above results in unusable ZODB; why should I waste my time building
content if my first experience is to lose access to the ZODB..?  The way I
see it right now is that my confidence in Zope has been shot down by a
rather simple setup attempt locking me out...  

[It's late, I'm really tired; so hope this makes some sense...]

Pierre



On Tue, 22 Jan 2002 00:18:56 -0500
Jens Vagelpohl [EMAIL PROTECTED] wrote:

 did you read the documentation that explains how to suppress e.g. site 
 roots by inserting certain names into the URL?
 
 installing site roots or virtual host monsters does not toast any
ZODB. 
 jens
 
 
 On Tuesday, January 22, 2002, at 12:10 , Pierre Fortin wrote:
 
  Hi,
 
  I've been away from Zope for nearly two years and thought I'd give
2.5.0b4  a whirl...  instead, it's giving me a spinning head...
 
  I have multiple sites and would like to give Zope another try...
 
  When I first go into Zope at localhost:8080/manage, the first thing I
  tried was to add a VirtualHostMonster (specifying all the fields)... 
Big  mistake #1...  the Data.fs is toast -- no way to access it...
 
  Re-install and try again...
 
  This time, I try SiteRoot, specifying the fields:
pfortin.com
http://pfortin.com/
/Z
  Big mistake #2!
 
  Re-install and try again...
 
  This time, I do the same thing; but without specifying a
  Base...  Big mistake #3!
 
  In every case, I was left with an unusable Data.fs because the
  http://localhost:8080/manage page was now pointing to non-existent
data..  .
 
  I'm off to do some more reading; but the intent was to try to setup 2
  virtual hosts on localhost:8080 without disturbing the running hosts
on  port 80...  but I ended up with deadlocked files since main screen
points  to http://localhost:8080/fubar/manage* which are not setup.
 
  Pierre
 
  ___
  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 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 )