[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#159853: marked as done (prcs: Prj destoyed when removing file and asking diff -N)



Your message dated Mon, 06 Jun 2005 15:48:05 -0400
with message-id <E1DfNZt-00005C-00@newraff.debian.org>
and subject line Bug#159853: fixed in prcs 1.3.3-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Sep 2002 13:49:00 +0000
>From akim@lrde.epita.fr Fri Sep 06 08:49:00 2002
Return-path: <akim@lrde.epita.fr>
Received: from colt.epita.fr [62.23.180.27] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17nJTn-0002Bt-00; Fri, 06 Sep 2002 08:48:59 -0500
Received: from hermes.epita.fr (hermes.epita.fr [163.5.255.10])
	by colt.epita.fr id g86DjpY25260 for <submit@bugs.debian.org> 
	EPITA Paris France Fri, 6 Sep 2002 15:45:51 +0200 (CEST)
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id g86Djpe20418 for <submit@bugs.debian.org> 
	EPITA Paris France Fri, 6 Sep 2002 15:45:51 +0200 (MEST)
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian))
	id 17nJSc-000243-00
	for <submit@bugs.debian.org>; Fri, 06 Sep 2002 15:47:46 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.36 #1 (Debian))
	id 17nJSb-0003g1-00; Fri, 06 Sep 2002 15:47:45 +0200
From: Akim Demaille <akim@epita.fr>
Subject: prcs: Prj destoyed when removing file and asking diff -N
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10.1
Message-Id: <E17nJSb-0003g1-00@nostromo.lrde.epita.fr>
Sender: Akim Demaille <akim@lrde.epita.fr>
Date: Fri, 06 Sep 2002 15:47:45 +0200
Delivered-To: submit@bugs.debian.org

Package: prcs
Version: 1.3.2-5
Severity: important

I finally managed to have a stripped down version of a bug I found
several times: PRCS can destoyed the PRJ file!!!  And deterministically.

Run the following script:

----------------------------------------
#! /bin/sh -x

prcs admin pdelete -f prcs-bug

cd /tmp
rm -rf prcs-bug
mkdir prcs-bug
cd prcs-bug

# First checkin.
echo "foo content" >foo
echo "bar content" >bar
echo "baz content" >baz
prcs checkout prcs-bug
prcs populate
prcs checkin -f

# Removal and diff.
rm -f foo bar
prcs populate -df
prcs diff -N

# Prj is destroyed: it holds the content of the first file that was removed.
cat prcs-bug.prj
----------------------------------------

And see how the .prj gets killed (at the end):

/tmp % ./prcs-bug.sh                                             nostromo 15:46
+ prcs admin pdelete -f prcs-bug
prcs: Remove project `prcs-bug'.  Deleting.
+ cd /tmp
+ rm -rf prcs-bug
+ mkdir prcs-bug
+ cd prcs-bug
+ echo 'foo content'
+ echo 'bar content'
+ echo 'baz content'
+ prcs checkout prcs-bug
prcs: Project not found in repository, initial checkout.
prcs: You may now edit the file `prcs-bug.prj'.
+ prcs populate
prcs: 3 files were added.
+ prcs checkin -f
prcs: Created repository entry `prcs-bug'.
prcs: Checking in project `prcs-bug' version 0.1.
+ rm -f foo bar
+ prcs populate -df
prcs: File `bar' is unavailable.  Deleting.
prcs: File `foo' is unavailable.  Deleting.
prcs: No new files.
prcs: 2 files were deleted.
+ prcs diff -N
prcs: Producing diffs from 0.1 to 0.1(w).
Index: 0.1/prcs-bug.prj
--- 0.1/prcs-bug.prj
+++ 0.1(w)/prcs-bug.prj
@@ -17,8 +17,14 @@
 ;; to version 0.0(w), by akim:

   (baz (prcs-bug/0_baz 1.1 644))
-  (bar (prcs-bug/1_bar 1.1 644))
-  (foo (prcs-bug/2_foo 1.1 644))
+
+
+
+;; Files deleted by populate at Fri, 06 Sep 2002 15:46:43 +0200,
+;; from version 0.1(w), by akim:
+
+  ; (foo ())
+  ; (bar ())
 )
 (Merge-Parents)
 (New-Merge-Parents)
Index: 0.1(w)/bar
--- 0.1/bar Fri, 06 Sep 2002 15:46:43 +0200 akim (prcs-bug/1_bar 1.1 644)
+++ 0.1(w)/bar Fri, 06 Sep 2002 15:46:44 +0200 akim ()
@@ -1 +0,0 @@
-bar content
Index: 0.1(w)/foo
--- 0.1/foo Fri, 06 Sep 2002 15:46:43 +0200 akim (prcs-bug/2_foo 1.1 644)
+++ 0.1(w)/foo Fri, 06 Sep 2002 15:46:44 +0200 akim ()
@@ -1 +0,0 @@
-foo content
+ cat prcs-bug.prj
foo content


This bug is not new: I found it a couple of years ago, but it's the
first time I manage to strip it down.


-- System Information
Debian Release: testing/unstable
Kernel Version: Linux nostromo 2.4.17 #9 Wed Jan 2 19:07:31 CET 2002 i686 unknown unknown GNU/Linux

Versions of the packages prcs depends on:
ii  libc6          2.2.5-14       GNU C Library: Shared libraries and Timezone
ii  libstdc++2.10- 2.95.4-11      The GNU stdc++ library
ii  rcs            5.7-13         The GNU Revision Control System

---------------------------------------
Received: (at 159853-close) by bugs.debian.org; 6 Jun 2005 19:54:12 +0000
>From katie@ftp-master.debian.org Mon Jun 06 12:54:12 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DfNfo-0003vF-00; Mon, 06 Jun 2005 12:54:12 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DfNZt-00005C-00; Mon, 06 Jun 2005 15:48:05 -0400
From: Romain Francoise <rfrancoise@debian.org>
To: 159853-close@bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#159853: fixed in prcs 1.3.3-5
Message-Id: <E1DfNZt-00005C-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 06 Jun 2005 15:48:05 -0400
Delivered-To: 159853-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 4

Source: prcs
Source-Version: 1.3.3-5

We believe that the bug you reported is fixed in the latest version of
prcs, which is due to be installed in the Debian FTP archive:

prcs-el_1.3.3-5_all.deb
  to pool/main/p/prcs/prcs-el_1.3.3-5_all.deb
prcs-synch_1.3.3-5_all.deb
  to pool/main/p/prcs/prcs-synch_1.3.3-5_all.deb
prcs-utils_1.3.3-5_all.deb
  to pool/main/p/prcs/prcs-utils_1.3.3-5_all.deb
prcs-visualtree_1.3.3-5_all.deb
  to pool/main/p/prcs/prcs-visualtree_1.3.3-5_all.deb
prcs_1.3.3-5.diff.gz
  to pool/main/p/prcs/prcs_1.3.3-5.diff.gz
prcs_1.3.3-5.dsc
  to pool/main/p/prcs/prcs_1.3.3-5.dsc
prcs_1.3.3-5_i386.deb
  to pool/main/p/prcs/prcs_1.3.3-5_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 159853@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Romain Francoise <rfrancoise@debian.org> (supplier of updated prcs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon,  6 Jun 2005 21:09:01 +0200
Source: prcs
Binary: prcs-visualtree prcs-synch prcs prcs-el prcs-utils
Architecture: source all i386
Version: 1.3.3-5
Distribution: unstable
Urgency: low
Maintainer: Romain Francoise <rfrancoise@debian.org>
Changed-By: Romain Francoise <rfrancoise@debian.org>
Description: 
 prcs       - The Project Revision Control System
 prcs-el    - ELisp support for the Project Revision Control System
 prcs-synch - Synchronize PRCS projects between repositories
 prcs-utils - Utilities for PRCS
 prcs-visualtree - Visualize PRCS projects in a graph
Closes: 134047 149811 156588 159853 177879 204265 268350 272152 287958 293805 294074 294221
Changes: 
 prcs (1.3.3-5) unstable; urgency=low
 .
   * The "Stayin' alive, stayin' alive" release.
 .
   * New maintainer (closes: #293805).
   * debian/control: Update maintainer contact information.
 .
   * debian/prcs-el.emacsen-startup:
     + Use debian-pkg-add-load-path-item, don't special-case load-path
       modification for Emacs 19 which is long gone (closes: #272152).
     + Do nothing if the package has been removed but not purged.
     + Add source files to load-path.
 .
   * debian/patches/10_prcs-el_dirs.dpatch: New patch to prcs-hooks.el,
     wrap call to directory-files with condition-case to workaround a bug
     where opening files in executable but non readable directories
     signalled an error, many thanks to Aaron M. Ucko <ucko@debian.org>
     (closes: #294074).
 .
   * debian/patches/20_prcs-mv.dpatch: New patch, bring prcs-mv in sync
     with latest upstream (somewhat belatedly), patch submitted by Yann
     Dirson <dirson@debian.org> (closes: #204265).
 .
   * debian/patches/30_diff-N-corruption.dpatch: New patch, fixes a bug
     where calling 'prcs diff -N' on a project where files have been
     locally removed would completely wipe the PRCS project file...
     (closes: #159853).
 .
   * debian/patches/40_prcs_checkin.dpatch: New patch, initial checkins
     cannot be run with --no-action because PRCS needs the repository
     entry, clarify error message to make this more explicit in the command
     output (closes: #149811).
 .
   * debian/patches/50_prcserror_segv.dpatch: New patch, check pointer in
     prcserror.cc before dereferencing it to prevent a segmentation fault,
     this could happen in some cases when removing already deleted
     attributes from a project file during a merge (closes: #177879).
 .
   * debian/patches/60_prcs_empty-locks.dpatch: New patch, when trying to
     get a lock on the repository, ignore empty lock files instead of
     bailing out with the "Inconsistant lock information" message: empty
     lock files get created when the filesystem runs out of space at
     checkin time and we should just ignore them (closes: #156588).
 .
   * debian/patches/70_man_fixes.dpatch: New patch, fixes a few typos and
     spelling errors in man pages.
 .
   * debian/patches/50_g++-3.4.dpatch: Dropped (it doesn't actually fix the
     build with G++ 3.4).
   * debian/patches/80_build_fixes.dpatch: New patch:
     + (Conditionally) use new __gnu_cxx::stdio_filebuf prototype for g++
       versions newer than 3.3 (closes: #268350).
     + Change hash.cc to cast to long instead of int, for lack of a better
       fix (closes: #287958).
     + Drop erroneous fdopen change from the previous patch (closes: #294221).
 .
   * debian/patches/90_prcs-synch_misc.dpatch: New patch to prcs-synch:
     + Change the doc to say 'prcs-synch' instead of 'synch' when referring
       to the script since it's how it's called in Debian.
     + Apply a patch from "R. Church" <rc@ghostbitch.org> to fix
       repository sync failures over SSH (closes: #134047).
 .
   * debian/patches/00list: Update.
   * debian/control: Update build dependency on dpatch to >= 2.0.9 for the
     new style patches.
Files: 
 05b74ef0dd7a6bed1949943c1774502c 684 devel optional prcs_1.3.3-5.dsc
 17480e149d9a65a0c77bc19a443863e4 31579 devel optional prcs_1.3.3-5.diff.gz
 75a26c23316f534066052f1790b853c5 52026 devel optional prcs-el_1.3.3-5_all.deb
 77d1848abc6051a5ccf1b0c0df199a8d 32984 devel optional prcs-synch_1.3.3-5_all.deb
 5b1ec3a0feb196244e0bd8fa585c2ccc 16552 devel optional prcs-visualtree_1.3.3-5_all.deb
 3a47186648357b28a3eff46c144a9c17 48302 devel optional prcs-utils_1.3.3-5_all.deb
 7bd0f1adba272352a99c2d55e4e8e8fa 389292 devel optional prcs_1.3.3-5_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCpKNjogN2vsA8Vt8RAvNQAJ9sUVV4xLiH6HIMZxh4G4+79ca1AACdGaI+
Yk0oAPsfnK21Uy8xBQg1RDE=
=3XV5
-----END PGP SIGNATURE-----



Reply to: