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 on 2011-09-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Martin Packman
bzr (Ubuntu)

Bug Description


I was attempting to merge lp:debian/apache2 into lp:ubuntu/apache2 following the steps at when this crash happened.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.4-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-11.48-server
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
 PATH=(custom, user)
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

Steve Beattie (sbeattie) wrote :
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) on 2011-09-05
visibility: private → public
Steve Beattie (sbeattie) wrote :

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

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)
  branch root: .

Related branches:
  parent branch: bzr+ssh://
$ 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

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...

Dave Walker (davewalker) wrote :

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/debian/", line 168, in __init__
    super(AptPkgVersion, self).__init__(version)
  File "/usr/lib/pymodules/python2.7/debian/", line 91, in __init__
    self.full_version = version
  File "/usr/lib/pymodules/python2.7/debian/", line 113, in __setattr__
  File "/usr/lib/pymodules/python2.7/debian/", 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) on 2011-09-28
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) on 2011-12-15
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) on 2011-12-16
Changed in bzr-builddeb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers