-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/981718

Title:
  package at 3.1.13-1ubuntu1 failed to install/upgrade: subprocess
  installed post-installation script returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/981718/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

From [email protected] Sat Apr 14 
09:40:58 2012
Return-path: <[email protected]>
Envelope-to: [email protected]
Delivery-date: Sat, 14 Apr 2012 09:40:58 -0700
Received: from exprod5mx258.postini.com ([64.18.0.54] helo=psmtp.com)
        by mail-archive.com with esmtp (Exim 4.69)
        (envelope-from 
<[email protected]>)
        id 1SJ61x-0000QQ-77
        for [email protected]; Sat, 14 Apr 2012 09:40:57 -0700
Received: from mail.python.org ([82.94.164.166]) (using TLSv1) by 
exprod5mx258.postini.com ([64.18.4.10]) with SMTP;
        Sat, 14 Apr 2012 12:40:56 EDT
Received: from albatross.python.org (localhost [127.0.0.1])
        by mail.python.org (Postfix) with ESMTP id 3VVM6t4Lt3zMny
        for <[email protected]>; Sat, 14 Apr 2012 18:40:54 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901;
        t=1334421654; bh=f3u+Ns0DPA4f600cN7Jqzr2eGJhRE/OACO/lJ+kdHAM=;
        h=MIME-Version:From:To:Message-Id:Date:Subject:List-Id:
         List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
         Content-Type:Content-Transfer-Encoding:Sender;
        b=rbq2VwRtBwMtZKPwEJbhkwW3k8Ev+WGBN/ao3yJwNEg42QmtTiXlr2ZLK6qVA1clw
         /HG3MMk3PCzNaTCQFpg5DH9jpHIsVFW8XGuNzn7o/k7zhJLbd8q+g++qTwHimolV10
         MkPOSdHx5gSQIYytTUECXRbPlCHjmLL7u2G6/PhI=
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from albatross.python.org (localhost [127.0.0.1])
        by mail.python.org (Postfix) with ESMTP id 3VVM6n5ctvzMl3
        for <[email protected]>; Sat, 14 Apr 2012 18:40:49 +0200 (CEST)
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '+++': 0.03; 'author:':
        0.03; 'log:': 0.05; 'received:134': 0.05; 'def': 0.06; 'diff':
        0.07; 'object.': 0.07; 'url:bitbucket': 0.07; '(it': 0.09;
        'assert': 0.09; 'obj,': 0.09; 'res': 0.09; 'subject:test': 0.09;
        'url:changeset': 0.09; '(needed': 0.16; '+503,7': 0.16; '--git':
        0.16; 'branch:': 0.16; 'changeset:': 0.16;
        'from:addr:buildbot.pypy.org': 0.16; 'length,': 0.16; 'message-
        id:@wyvern.cs.uni-duesseldorf.de': 0.16; 'received:134.99': 0.16;
        'received:134.99.112': 0.16; 'received:134.99.112.69': 0.16;
        'received:cs.uni-duesseldorf.de': 0.16; 'received:uni-
        duesseldorf.de': 0.16; 'received:wyvern.cs.uni-duesseldorf.de':
        0.16; 'subject:pypy': 0.16; 'to:addr:pypy-commit': 0.16;
        'url:pypy': 0.16; 'skip:{ 20': 0.17; 'external': 0.19; 'skip:b
        30': 0.20; 'import': 0.20; 'skip:m 30': 0.21; 'bytes': 0.21;
        'hacking': 0.21; 'skip:l 40': 0.21; '+0200': 0.23; 'implemented':
        0.23; 'handling': 0.26; 'skip:e 30': 0.27; 'skip:s 30': 0.28;
        'minor': 0.28; 'fixed': 0.29; "skip:' 10": 0.29; '---': 0.30;
        'date:': 0.30; 'possibly': 0.31; 'skip:b 40': 0.31; 'skip:~ 10':
        0.32; 'handle': 0.33; 'two': 0.35; 'test': 0.35; 'url:org': 0.35;
        'skip:s 40': 0.37; 'but': 0.37; 'skip:l 20': 0.37; 'subject:: ':
        0.37; 'skip:s 20': 0.37; 'build': 0.38; 'skip:l 10': 0.39;
        'to:addr:python.org': 0.39; 'subject:-': 0.40; 'skip:t 20': 0.40;
        'received:de': 0.40; 'header:Message-Id:1': 0.61; 'finally': 0.66;
        'direct': 0.68; 'from:addr:noreply': 0.82; 'factors,': 0.84;
        'gen': 0.84; 'nursery': 0.84
Received: from localhost (HELO mail.python.org) (127.0.0.1)
        by albatross.python.org with SMTP; 14 Apr 2012 18:40:49 +0200
Received: from wyvern.cs.uni-duesseldorf.de (wyvern.cs.uni-duesseldorf.de
        [134.99.112.69]) by mail.python.org (Postfix) with ESMTP
        for <[email protected]>; Sat, 14 Apr 2012 18:40:49 +0200 (CEST)
Received: from wyvern.cs.uni-duesseldorf.de (localhost [127.0.0.1])
        by wyvern.cs.uni-duesseldorf.de (Postfix) with ESMTP id 9BC4082F4E
        for <[email protected]>; Sat, 14 Apr 2012 18:40:49 +0200 (CEST)
MIME-Version: 1.0
From: fijal <[email protected]>
To: [email protected]
Message-Id: <[email protected]>
Date: Sat, 14 Apr 2012 18:40:49 +0200 (CEST)
Subject: [pypy-commit] pypy gc-minimark-pinning: a direct test for the return
X-BeenThere: [email protected]
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: commits to pypy development <pypy-commit.python.org>
List-Unsubscribe: <http://mail.python.org/mailman/options/pypy-commit>,
        <mailto:[email protected]?subject=unsubscribe>
List-Archive: <http://mail.python.org/pipermail/pypy-commit>
List-Post: <mailto:[email protected]>
List-Help: <mailto:[email protected]?subject=help>
List-Subscribe: <http://mail.python.org/mailman/listinfo/pypy-commit>,
        <mailto:[email protected]?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: [email protected]
Errors-To: [email protected]
X-pstn-neptune: 0/0/0.00/0
X-pstn-levels:     (S:90.63230/99.90000 CV:99.9000 FC:93.6803 LC:95.5390 
R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-dkim: 1 skipped:not-enabled
X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c 
X-pstn-addresses: from <[email protected]> [294/10] 

Author: Maciej Fijalkowski <[email protected]>
Branch: gc-minimark-pinning
Changeset: r54367:5a93314d513e
Date: 2012-04-14 18:40 +0200
http://bitbucket.org/pypy/pypy/changeset/5a93314d513e/

Log:    a direct test for the return

diff --git a/pypy/rpython/memory/gc/minimark.py 
b/pypy/rpython/memory/gc/minimark.py
--- a/pypy/rpython/memory/gc/minimark.py
+++ b/pypy/rpython/memory/gc/minimark.py
@@ -333,7 +333,8 @@
             # external factors, like trackgcroot or the handling of the write
             # barrier.  Implemented by still using 'minsize' for the nursery
             # size (needed to handle mallocs just below 'large_objects') but
-            # hacking at the current nursery position in collect_and_reserve().
+            # hacking at the current nursery position in
+            # maybe_collect_and_reserve().
             if newsize <= 0:
                 newsize = 4*1024*1024   # fixed to 4MB by default
                 #        (it was env.estimate_best_nursery_size())
@@ -502,7 +503,7 @@
             result = self.nursery_free
             self.nursery_free = result + totalsize
             if self.nursery_free > self.nursery_top:
-                result = self.collect_and_reserve(totalsize)
+                result = self.maybe_collect_and_reserve(totalsize)
             #
             # Build the object.
             llarena.arena_reserve(result, totalsize)
@@ -561,7 +562,7 @@
             result = self.nursery_free
             self.nursery_free = result + totalsize
             if self.nursery_free > self.nursery_top:
-                result = self.collect_and_reserve(totalsize)
+                result = self.maybe_collect_and_reserve(totalsize)
             #
             # Build the object.
             llarena.arena_reserve(result, totalsize)
@@ -580,7 +581,7 @@
         if gen > 0:
             self.major_collection()
 
-    def collect_and_reserve(self, totalsize):
+    def maybe_collect_and_reserve(self, totalsize):
         """To call when nursery_free overflows nursery_top.
         Do a minor collection, and possibly also a major collection,
         and finally reserve 'totalsize' bytes at the start of the
@@ -595,7 +596,6 @@
                 self.nursery_free = self.nursery_free + cur_obj_size
                 self.nursery_top = self.nursery_barriers.popleft()
             if self.nursery_free + totalsize <= self.nursery_top:
-                llarena.arena_reserve(self.nursery_free, totalsize)
                 res = self.nursery_free
                 self.nursery_free = res + totalsize
                 return res
@@ -622,7 +622,7 @@
                 self.nursery_free = self.nursery_top - self.debug_tiny_nursery
         #
         return result
-    collect_and_reserve._dont_inline_ = True
+    maybe_collect_and_reserve._dont_inline_ = True
 
 
     def external_malloc(self, typeid, length, can_make_young=True):
@@ -789,10 +789,12 @@
                 not self.header(obj).tid & GCFLAG_PINNED)
 
     def pin(self, obj):
-        self.header(obj).tid |= GCFLAG_PINNED
+        if self.is_in_nursery(obj):
+            self.header(obj).tid |= GCFLAG_PINNED
 
     def unpin(self, obj):
-        self.header(obj).tid &= ~GCFLAG_PINNED
+        if self.is_in_nursery(obj):
+            self.header(obj).tid &= ~GCFLAG_PINNED
 
     def shrink_array(self, obj, smallerlength):
         #
diff --git a/pypy/rpython/memory/gc/test/test_direct.py 
b/pypy/rpython/memory/gc/test/test_direct.py
--- a/pypy/rpython/memory/gc/test/test_direct.py
+++ b/pypy/rpython/memory/gc/test/test_direct.py
@@ -522,6 +522,19 @@
             self.stackroots.pop()
     test_card_marker.GC_PARAMS = {"card_page_indices": 4}
 
+    def test_pin_1(self):
+        self.malloc(S)
+        s2 = self.malloc(S)
+        self.gc.pin(llmemory.cast_ptr_to_adr(s2))
+        self.stackroots.append(s2)
+        self.gc.minor_collection()
+        self.stackroots.pop()
+        self.malloc(S)
+        one = self.gc.nursery_free
+        self.malloc(S)
+        two = self.gc.nursery_free
+        assert one != two
+
     def test_writebarrier_before_copy(self):
         from pypy.rpython.memory.gc import minimark
         largeobj_size =  self.gc.nonlarge_max + 1
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to