bzr crashed with ValueError in _set_full_version(): Invalid version string '2.0.37+cvs.JCW_PRE2_2037-1'

Bug #842144 reported by Steve Beattie
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
bzr-builddeb
Fix Released
Medium
Martin Packman
bzr (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi,

I was attempting to merge lp:debian/apache2 into lp:ubuntu/apache2 following the steps at http://developer.ubuntu.com/packaging/html/udd-merging.html when this crash happened.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.4-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-11.48-server 2.6.38.8
Uname: Linux 2.6.38-11-server x86_64
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.3.4
CommandLine: ['/usr/bin/bzr', 'merge-package', 'lp:debian/apache2']
CrashDb: bzr
Date: Mon Sep 5 14:05:41 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InterpreterPath: /usr/bin/python2.7
Locale: en_US.UTF-8
PackageArchitecture: all
Platform: Linux-2.6.38-11-server-x86_64-with-Ubuntu-11.04-natty
ProcCmdline: /usr/bin/python /usr/bin/bzr merge-package lp:debian/apache2
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
PythonVersion: 2.7.1
SourcePackage: bzr
Title: bzr crashed with ValueError in _set_full_version(): Invalid version string '2.0.37+cvs.JCW_PRE2_2037-1'
UpgradeStatus: Upgraded to natty on 2011-03-25 (163 days ago)
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout kvm libvirtd lpadmin plugdev sambashare sbuild

Revision history for this message
Steve Beattie (sbeattie) wrote :
Revision history for this message
Steve Beattie (sbeattie) wrote :

I suspect this is more of an issue with UDD than bzr itself, adding the UDD project.

tags: removed: need-duplicate-check
Steve Beattie (sbeattie)
visibility: private → public
Revision history for this message
Steve Beattie (sbeattie) wrote :

Note that this only happens on natty, on oneiric, the merge-package command succeeds.

Revision history for this message
Steve Beattie (sbeattie) wrote :

While merge-package on oneiric doesn't abort with a backtrace, the changelog merge results in an empty debian/changelog file:

$ dpkg -l bzr-builddeb | tail -1
ii bzr-builddeb 2.7.7 bzr plugin for Debian package management
[alyosha apache2]$ bzr info .
Standalone tree (format: 2a)
Location:
  branch root: .

Related branches:
  parent branch: bzr+ssh://bazaar.launchpad.net/%2Bbranch/ubuntu/apache2/
$ bzr st
$ bzr merge-package -v lp:debian/apache2
Most recent Debian version: 2.2.20-1
Packaging branch status: CURRENT
dpkg-mergechangelogs: error: 2.0.37+cvs.JCW_PRE2_2037-1 is not a valid version

Text conflict in debian/control
1 conflicts encountered.
The merge resulted in 1 conflicts. Please resolve these and commit the changes with "bzr commit".
$ cat debian/changelog
$

Revision history for this message
Vincent Ladeuil (vila) wrote :

  $ perl -e 'use Dpkg::Version ; print Dpkg::Version::version_check("2.0.37+cvs.JCW_PRE2_2037-1")'
  0version number contains illegal character `_'

seems relevant here but I'm not sure what we should do about that...

Revision history for this message
Dave Walker (davewalker) wrote :

Traceback (most recent call last):
....
  File "/usr/lib/pymodules/python2.7/debian/debian_support.py", line 168, in __init__
    super(AptPkgVersion, self).__init__(version)
  File "/usr/lib/pymodules/python2.7/debian/debian_support.py", line 91, in __init__
    self.full_version = version
  File "/usr/lib/pymodules/python2.7/debian/debian_support.py", line 113, in __setattr__
    self._set_full_version(str(value))
  File "/usr/lib/pymodules/python2.7/debian/debian_support.py", line 96, in _set_full_version
    raise ValueError("Invalid version string %r" % version)
ValueError: Invalid version string '2.0.37+cvs.JCW_PRE2_2037-1'

Jelmer Vernooij (jelmer)
Changed in bzr (Ubuntu):
status: New → Invalid
Changed in python-debian (Ubuntu):
status: New → Triaged
Changed in udd:
status: New → Triaged
Changed in bzr-builddeb:
status: New → Invalid
status: Invalid → Triaged
Changed in bzr:
status: New → Invalid
Changed in bzr-builddeb:
importance: Undecided → Medium
Changed in udd:
importance: Undecided → Medium
Changed in python-debian (Ubuntu):
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
Changed in bzr-builddeb:
status: Triaged → Fix Committed
assignee: nobody → Martin Packman (gz)
milestone: none → 2.8
no longer affects: udd
no longer affects: python-debian (Ubuntu)
Jelmer Vernooij (jelmer)
Changed in bzr-builddeb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.