Bug 184027

Summary: games/warzone2100: *** Bazaar has encountered an internal error.
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2013-11-17 11:00:01 UTC
This very specific error bugs me on a single Core2Duo-driven box (while on Sandy- and IvyBridge driven systems it isn't!).

Even after I rebuilt everything needed to build the port and even after rebuilding every single ports I face this error again:


[...]
gmake[3]: Entering directory `/usr/ports/games/warzone2100/work/warzone2100-3.1.0/src'
cd .. && ./build_tools/autorevision -t h -o /usr/ports/games/warzone2100/work/warzone2100-3.1.0/src/autorevision.cache > /usr/ports/games/warzone2100/work/warzone2100-3.1.0/src/autorevision.h.new
bzr: ERROR: exceptions.NotImplementedError: <bound method SvnBasisTree.list_files of <SvnBasisTree for '<SvnWorkingTree of /usr/ports>'>>

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/cmd_version_info.py", line 138, in run
    builder.generate(self.outf)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/version_info_formats/format_custom.py", line 104, in generate
    self._extract_file_revisions()
  File "/usr/local/lib/python2.7/site-packages/bzrlib/version_info_formats/__init__.py", line 107, in _extract_file_revisions
    for info in basis_tree.list_files(include_root=True):
  File "/usr/local/lib/python2.7/site-packages/bzrlib/tree.py", line 217, in list_files
    raise NotImplementedError(self.list_files)
NotImplementedError: <bound method SvnBasisTree.list_files of <SvnBasisTree for '<SvnWorkingTree of /usr/ports>'>>

bzr 2.6.0 on python 2.7.5 (FreeBSD-11.0-CURRENT-amd64-64bit-ELF)
arguments: ['/usr/local/bin/bzr', 'version-info', '--custom', '--
    template={clean}\\n']
plugins: bash_completion[2.6.0], changelog_merge[2.6.0], grep[2.6.0],
    launchpad[2.6.0], netrc_credential_store[2.6.0], news_merge[2.6.0],
    po_merge[2.6.0], svn[1.2.2], weave_fmt[2.6.0]
encoding: 'ascii', fsenc: 'utf8', lang: None

*** Bazaar has encountered an internal error.  This probably indicates a
    bug in Bazaar.  You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
| determining revno 33176/334072334072
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-17 11:00:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Dmitry Marakasov 2013-11-18 19:05:45 UTC
* O. Hartmann (ohartman@zedat.fu-berlin.de) wrote:

> >Number:         184027
> >Category:       ports
> >Synopsis:       games/warzone2100: *** Bazaar has encountered an internal error.
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-ports-bugs
> >State:          open
> >Quarter:        
> >Keywords:       
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Sun Nov 17 11:00:01 UTC 2013
> >Closed-Date:
> >Last-Modified:
> >Originator:     O. Hartmann
> >Release:        FreeBSD 11.0-CURRENT/amd64
> >Organization:
> >Environment:
> >Description:
> This very specific error bugs me on a single Core2Duo-driven box (while on Sandy- and IvyBridge driven systems it isn't!).
> 
> Even after I rebuilt everything needed to build the port and even after rebuilding every single ports I face this error again:

Do you by the change have .bzr directory somewhere on the path from port
work directory to root?

Also, please try this patch:

http://people.freebsd.org/~amdmi3/warzone.patch

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 3 O. Hartmann 2013-11-21 23:04:07 UTC
On Mon, 18 Nov 2013 23:05:45 +0400
Dmitry Marakasov <amdmi3@amdmi3.ru> wrote:

> * O. Hartmann (ohartman@zedat.fu-berlin.de) wrote:
> 
> > >Number:         184027
> > >Category:       ports
> > >Synopsis:       games/warzone2100: *** Bazaar has encountered an
> > >internal error. Confidential:   no
> > >Severity:       non-critical
> > >Priority:       low
> > >Responsible:    freebsd-ports-bugs
> > >State:          open
> > >Quarter:        
> > >Keywords:       
> > >Date-Required:
> > >Class:          sw-bug
> > >Submitter-Id:   current-users
> > >Arrival-Date:   Sun Nov 17 11:00:01 UTC 2013
> > >Closed-Date:
> > >Last-Modified:
> > >Originator:     O. Hartmann
> > >Release:        FreeBSD 11.0-CURRENT/amd64
> > >Organization:
> > >Environment:
> > >Description:
> > This very specific error bugs me on a single Core2Duo-driven box
> > (while on Sandy- and IvyBridge driven systems it isn't!).
> > 
> > Even after I rebuilt everything needed to build the port and even
> > after rebuilding every single ports I face this error again:
> 
> Do you by the change have .bzr directory somewhere on the path from
> port work directory to root?


No, checked that, nothing but .bzr.log in root's home (have it deleted).

> 
> Also, please try this patch:
> 
> http://people.freebsd.org/~amdmi3/warzone.patch
> 


The patch doesn't prevent this weird counting in 

\ determining revno 8735/334532/334532

and the reported error stays the same - on that specific machine.

The patch doesn't also prevent the warzone2100 binary from coredumping.
I built a package on another machine especially with CPUTYPE=core2 set
for the target box (the box I can not build the port anymore).

The same happens on any other box with FreeBSD >= 10 I built it
natively. This happens (the coredump) when libstdc++ has gone and.
Comment 4 Dmitry Marakasov 2013-11-28 22:42:45 UTC
* O. Hartmann (ohartman@zedat.fu-berlin.de) wrote:

I've updated warzone2100 port - it now should no longer segfault
on 10.x, and autorevision changes were merged as well. Could you
please recheck?

If bzr shows up again, you will probably need to add -x to #!/bin/sh
in build_tools/autorevision to trace why bzr is called when it
shouldn't, and send me a full build log.

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 5 O. Hartmann 2013-11-29 09:11:15 UTC
On Fri, 29 Nov 2013 02:42:45 +0400
Dmitry Marakasov <amdmi3@amdmi3.ru> wrote:

> * O. Hartmann (ohartman@zedat.fu-berlin.de) wrote:
> 
> I've updated warzone2100 port - it now should no longer segfault
> on 10.x, and autorevision changes were merged as well. Could you
> please recheck?
> 
> If bzr shows up again, you will probably need to add -x to #!/bin/sh
> in build_tools/autorevision to trace why bzr is called when it
> shouldn't, and send me a full build log.
> 



Checked and it works well on FBSD 11-CURRENT. Thank you very much.
Comment 6 Dmitry Marakasov freebsd_committer freebsd_triage 2013-11-29 11:50:10 UTC
State Changed
From-To: open->closed

Fixed