[Zope-dev] [BUG] maybe yet unknown BTREES bug
Attention: cross post We have run in an apparent BTrees bug (with the BTrees version included in Zope 2.5.1). We try to insert a value into an BTrees.OOBTree.OOBTree instance with tree[k]= v and get an exceptions.KeyError on 13384379A0pfvqTmtEQ. The code comes from Zope's Transience implementation. The reported key is some session key. We are not yet sure, however, whether it is the key we are just trying to insert. Reading the News.txt of ZODB-3.2a1, this bug may not yet be known. We will install the BTrees package from ZODB-3.2a1 and see whether the problem disappears. I will report back... 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] maybe yet unknown BTREES bug
Tim has fixed lots of bugs in the BTrees code since 2.5.1. Also, there were cases in the Transience implementation where I was iterating over the .keys()/.items()/.values() of an OOBTree or IOBTree and also mutating its contents, which is disastrous. Is this one of those cases? On Fri, 2003-01-24 at 03:13, Dieter Maurer wrote: Attention: cross post We have run in an apparent BTrees bug (with the BTrees version included in Zope 2.5.1). We try to insert a value into an BTrees.OOBTree.OOBTree instance with tree[k]= v and get an exceptions.KeyError on 13384379A0pfvqTmtEQ. The code comes from Zope's Transience implementation. The reported key is some session key. We are not yet sure, however, whether it is the key we are just trying to insert. Reading the News.txt of ZODB-3.2a1, this bug may not yet be known. We will install the BTrees package from ZODB-3.2a1 and see whether the problem disappears. I will report back... 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 ) ___ 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] XMLRPC client and Zope 2.6.0
Hi, Is there something wrong with XML-RPC client and Zope 2.6.0 ? Things that worked perfectly with Zope 2.5.1 don't work any more ! Even when I make a hello world Python script handler like ## Script (Python) xtest ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## return 'Hello world' And from a console : $ cd /zope/root/lib/python (using xmlrpclib provided with Zope 2.6.0) from xmlrpclib import Server s = Server('http://localhost') s.xtest() Traceback (most recent call last): File stdin, line 1, in ? File /usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py, line 829, in __call__ return self.__send(self.__name, args) File /usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py, line 983, in __request verbose=self.__verbose File /usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py, line 861, in request return self.parse_response(h.getfile()) File /usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py, line 904, in parse_response return u.close() File /usr/home/zope/Zope-2.6.0-src/lib/python/xmlrpclib.py, line 579, in close raise apply(Fault, (), self._stack[0]) xmlrpclib.Fault: Fault -2: 'Unexpected Zope error value: \nTraceback (most recent call last):\n File /usr/home/zope/Zope-2.6.0-src/lib/python/ZPublisher/Publish.py, line 150, in publish_module\nresponse = publish(request, module_name, after_list, debug=debug)\n File /usr/home/zope/Zope-2.6.0-src/Products/Localizer/__init__.py, line 58, in new_publish\nx = Publish.old_publish(request, module_name, after_list, debug)\n File /usr/home/zope/Zope-2.6.0-src/lib/python/ZPublisher/Publish.py, line 114, in publish\nsys.exc_info()[2],\n File /usr/home/zope/Zope-2.6.0-src/lib/python/ZPublisher/Publish.py, line 89, in publish\nobject=request.traverse(path, validated_hook=validated_hook)\n File /usr/home/zope/Zope-2.6.0-src/lib/python/ZPublisher/BaseRequest.py, line 299, in traverse\n subobject=object.__bobo_traverse__(request,entry_name)\n File /usr/home/zope/Zope-2.6.0-src/lib/python/OFS/Application.py, line 106, in __bobo_traverse__\ntry: REQUEST.RESPONSE.notFoundError(%s\\n%s % (name, method))\n File /usr/home/zope/Zope-2.6.0-src/lib/python/ZPublisher/HTTPResponse.py, line 606, in notFoundError\nSorry, the requested resource does not exist. +\nNotFound: \n \n\n \n \n \n\n \n Site Error \n An error was encountered while publishing this resource.\n \nResource not found \n\n Sorry, the requested resource does not exist. Check the URL and try again. Resource: RPC2\nPOST \n \n\n Troubleshooting Suggestions \n\n \n The URL may be incorrect. \n The parameters passed to this resource may be incorrect. \n A resource that this resource relies on may be\n encountering an error. \n \n\n For more detailed information about the error, please\n refer to the HTML source for this page.\n \n\n If the error persists please contact the site maintainer.\n Thank you for your patience.\n \n \n \n' (sorry for this long traceback...) Did I miss something ? Thanks in advance ! --Gilles ___ 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: [ZODB-Dev] [BUG] maybe yet unknown BTREES bug
[Dieter Maurer] We have run in an apparent BTrees bug (with the BTrees version included in Zope 2.5.1). ... We will install the BTrees package from ZODB-3.2a1 and see whether the problem disappears. I will report back... There are two new kinds of sanity checks you can make there: 1. somebtree._check() This is a new method on BTree objects, which does extensive checks of internal inter-pointer consistency. It raises AssertionError if internal pointers have gotten into an inconsistent state. This used to be possible in the presence of (unlikely mixtures of) inserts and deletes. 2. from BTrees.check import check check(somebtree) This is a brand new checker that does a different kind of consistency check, verifying subtle invariants involving the key *values* (not the internal C pointers) in a BTree (or TreeSet). Again, it raises AssertionError if anything is wrong there. If anything is wrong, from BTrees.check import display display(somebtree) displays the internal bucket structure of a BTree, to stdout. It can clarify the nature of the damage. There are no known ways of creating a damaged BTree anymore, short of (so far) hypothetical scenarios involving multiple processes somehow managing to get hold of stale data without realizing it. 3.2a1 fixes a newly-discovered but extremely unlikely bug in BTree conflict resolution. I don't know that it's ever been seen in real life (it was provoked by a multithreaded stress test I wrote) -- if it ever did happen, the symptom would have been a segfault, not silent BTree corruption. We try to insert a value into an BTrees.OOBTree.OOBTree instance with tree[k]= v and get an exceptions.KeyError on 13384379A0pfvqTmtEQ. That's indeed peculiar. ___ 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] XMLRPC client and Zope 2.6.0
s = Server('http://localhost') try: s = Server('http://localhost/') And read the xmlrpclib.py docs where it automatically appends RPC2 if the url doesnt end in a slash. -- Andy McKay ___ 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] XMLRPC client and Zope 2.6.0
Gilles Lenfant wrote at 2003-1-24 17:24 +0100: ... from xmlrpclib import Server s = Server('http://localhost') Append / to your URL. I.e. use: s = Server('http://localhost/') again. Resource: RPC2\nPOST The RC2 not found it an indication that you just specified the server without a path. 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] 2.6.1b2?
Guido van Rossum wrote: If only it were that easy. Everybody wants no new features except for the one feature they desperately want to have without upgrading to the next feature release. :-( Still, we're back to the situation where it's been weeks since the last release, and there's nothing we (the public) can do about that :-( cheers, Chris PS: How's the new zope.org coming? ___ 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.6.1b2?
Guido van Rossum wrote: If only it were that easy. Everybody wants no new features except for the one feature they desperately want to have without upgrading to the next feature release. :-( Still, we're back to the situation where it's been weeks since the last release, and there's nothing we (the public) can do about that :-( If you want to make a rogue release, that will be available until Brian deems the time ready for the next release, be my guest. PS: How's the new zope.org coming? Very well. I just posted a progress update: http://lists.zope.org/pipermail/zope-web/2003-January/002310.html --Guido van Rossum (home page: http://www.python.org/~guido/) ___ 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 )