Bug#570727: xmldiff - Unable to compare minimal tree

2010-02-23 Thread Stefano Zacchiroli
tags 570727 + unreproducible
thanks

On Sat, Feb 20, 2010 at 11:50:02PM +0100, Bastian Blank wrote:
 xmldiff is not able to compare a minimal tree with itself. As I would
 consider this the minimal tree with any information, this makes the
 whole tool unusable.
 
 | $ cat test.xml 
 | test test=test /
 | $ xmldiff test.xml test.xml

I can't reproduce this:

  z...@usha:/tmp$ cat test.xml 
  test test=test /
  z...@usha:/tmp$ xmldiff test.xml test.xml 
  z...@usha:/tmp$ echo $?
  0

(As your bug log does not contain architecture information, I can't say
 if this is arch-specific or not, even though I doubt it. I'm on amd64,
 FWIW.)

Can you please attach the test.xml file with which you can reproduce
this bug? Maybe it is not XML-well-formed due to some byte encoding
issues? Can you please try to run xmllint on it?

TIA,
Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
z...@{upsilon.cc,pps.jussieu.fr,debian.org} -- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...| ..: | Je dis tu à tous ceux que j'aime



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#570727: xmldiff - Unable to compare minimal tree

2010-02-23 Thread Bastian Blank
On Tue, Feb 23, 2010 at 11:49:57AM +0100, Stefano Zacchiroli wrote:
 (As your bug log does not contain architecture information, I can't say
  if this is arch-specific or not, even though I doubt it. I'm on amd64,
  FWIW.)

Well, it is. On amd64 it succeds, on i386 it fails.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages xmldiff depends on:
ii  libc62.10.2-5Embedded GNU C Library: Shared lib
ii  python   2.5.4-9 An interactive high-level object-o
ii  python-central   0.6.14+nmu2 register and build utility for Pyt

xmldiff recommends no packages.

Versions of packages xmldiff suggests:
pn  python-psyco  none (no description available)
pn  xmldiff-xmlrevnone (no description available)

-- no debconf information

-- 
Virtue is a relative term.
-- Spock, Friday's Child, stardate 3499.1



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#570727: xmldiff - Unable to compare minimal tree

2010-02-23 Thread Stefano Zacchiroli
tags 570727 - unreproducible
tags 570727 + confirmed
retitle 570727 fails when comparing minimal trees on i386
thanks

On Tue, Feb 23, 2010 at 01:02:55PM +0100, Bastian Blank wrote:
 Well, it is. On amd64 it succeds, on i386 it fails.

I confirm that: I've been able to reproduce the bug inside an i386
chroot; retitling and tagging the bug appropriately. Thanks for your
feedback.

Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
z...@{upsilon.cc,pps.jussieu.fr,debian.org} -- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...| ..: | Je dis tu à tous ceux que j'aime



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#570727: xmldiff - Unable to compare minimal tree

2010-02-20 Thread Bastian Blank
Package: xmldiff
Version: 0.6.8-4.1
Severity: grave

xmldiff is not able to compare a minimal tree with itself. As I would consider
this the minimal tree with any information, this makes the whole tool unusable.

| $ cat test.xml 
| test test=test /
| $ xmldiff test.xml test.xml
| [append-first, /,
| Traceback (most recent call last):
|   File /usr/bin/xmldiff, line 4, in module
| main.run()
|   File /usr/lib/python2.5/site-packages/xmldiff/main.py, line 255, in run
| encoding, html)
|   File /usr/lib/python2.5/site-packages/xmldiff/main.py, line 117, in 
process_files
| strategy.process_trees(tree1, tree2)
|   File /usr/lib/python2.5/site-packages/xmldiff/fmes.py, line 104, in 
process_trees
| self._formatter.end()
|   File /usr/lib/python2.5/site-packages/xmldiff/format.py, line 80, in end
| self.format_action(action)
|   File /usr/lib/python2.5/site-packages/xmldiff/format.py, line 105, in 
format_action
| xml_print(action[A_N2])
|   File /usr/lib/python2.5/site-packages/xmldiff/objects.py, line 180, in 
xml_print
| _xml_print_internal_format(node, indent, stream)
|   File /usr/lib/python2.5/site-packages/xmldiff/objects.py, line 191, in 
_xml_print_internal_format
| n[N_CHILDS][0][N_VALUE])
| IndexError: list index out of range

Bastian

-- 
Spock: We suffered 23 casualties in that attack, Captain.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org