Bug#255030: marked as done (dia segfaults opening files created by older version)

Debian Bug Tracking System owner@bugs.debian.org
Sat, 04 Sep 2004 06:48:03 -0700


Your message dated Sat, 04 Sep 2004 15:37:40 +0200
with message-id <1094305060.4300.1.camel@atari.stigge.org>
and subject line dia segfaults opening files created by older version
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; 18 Jun 2004 12:48:07 +0000
>From peff-debbug@peff.net Fri Jun 18 05:48:07 2004
Return-path: <peff-debbug@peff.net>
Received: from 66-23-211-5.clients.speedfactory.net (peff.net) [66.23.211.5] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BbIms-0001zC-00; Fri, 18 Jun 2004 05:48:06 -0700
Received: (qmail 30075 invoked from network); 18 Jun 2004 12:48:05 -0000
Received: from unknown (HELO coredump.intra.peff.net) (10.0.0.2)
  by peff.net with SMTP; 18 Jun 2004 12:48:05 -0000
Received: by coredump.intra.peff.net (sSMTP sendmail emulation); Fri, 18 Jun 2004 08:48:05 -0400
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jeff King <peff-debbug@peff.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dia segfaults opening files created by older version
Bcc: Jeff King <peff-debbug@peff.net>
X-Mailer: reportbug 2.61
Date: Fri, 18 Jun 2004 08:48:05 -0400
Message-Id: <E1BbIms-0001zC-00@spohr.debian.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	HTML_20_30 autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: dia
Version: 0.93-3
Severity: normal

When trying to load an (circa 2001) dia file, dia segfaulted. I
systematically removed all objects from the file using a text editor and
determined that the problem is caused by a "UML - Message" object. I
have included the object's XML below:

    <object type="UML - Message" version="0" id="O5">
      <attribute name="obj_pos">
        <point val="8,5"/>
      </attribute>
      <attribute name="obj_bb">
        <rectangle val="7.6,4.95;8.4,11.25"/>
      </attribute>
      <attribute name="conn_endpoints">
        <point val="8,5"/>
        <point val="8,11.2"/>
      </attribute>
      <attribute name="text">
        <string/>
      </attribute>
      <attribute name="text_pos">
        <point val="8,8.1"/>
      </attribute>
      <attribute name="type">
        <int val="-690563370"/>
      </attribute>
      <connections>
        <connection handle="0" to="O3" connection="0"/>
        <connection handle="1" to="O0" connection="0"/>
      </connections>
    </object>

I was able to prevent the segfault by replacing <string/> with
<string>##</string> (as is generated by current versions of dia). It
seems that some piece of code is assuming the '##' markers will be
there.  I haven't tracked it further than this.

I believe that new dia versions should:
 - either support loading this construct or provide a short script to
   convert old files (a sed one-liner would work in most cases, but to
   be 100% correct, we might need to actually parse the XML).
 - at the very least not segfault. :)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-1-k7-smp
Locale: LANG=C, LC_CTYPE=C

Versions of packages dia depends on:
ii  dia-common                  0.93-3       Diagram editor (common files)
ii  dia-libs                    0.93-3       Diagram editor (library files)
ii  libart-2.0-2                2.3.16-5     Library of functions for 2D graphi
ii  libatk1.0-0                 1.6.1-2      The ATK accessibility toolkit
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared libraries an
ii  libfreetype6                2.1.7-2.1    FreeType 2 font engine, shared lib
ii  libglib2.0-0                2.4.2-1      The GLib library of C routines
ii  libgtk2.0-0                 2.4.3-1      The GTK+ graphical user interface 
ii  libpango1.0-0               1.4.0-4      Layout and rendering of internatio
ii  libpng12-0                  1.2.5.0-6    PNG library - runtime
ii  libpopt0                    1.7-4        lib for parsing cmdline parameters
ii  libxml2                     2.6.10-3     GNOME XML library
ii  zlib1g                      1:1.2.1.1-3  compression library - runtime

-- no debconf information

---------------------------------------
Received: (at 255030-done) by bugs.debian.org; 4 Sep 2004 13:37:53 +0000
>From stigge@antcom.de Sat Sep 04 06:37:53 2004
Return-path: <stigge@antcom.de>
Received: from pd9e7ea5e.dip.t-dialin.net (stigge.org) [217.231.234.94] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1C3ajn-0007Kj-00; Sat, 04 Sep 2004 06:37:53 -0700
Received: (qmail 1124 invoked from network); 4 Sep 2004 13:37:40 -0000
Received: from unknown (HELO atari.stigge.org) (192.168.1.99)
  by sbo.stigge.org with SMTP; 4 Sep 2004 13:37:40 -0000
Received: from localhost (localhost [127.0.0.1])
	by atari.stigge.org (Postfix) with ESMTP id 6A12E1092C342
	for <255030-done@bugs.debian.org>; Sat,  4 Sep 2004 15:37:40 +0200 (CEST)
Subject: dia segfaults opening files created by older version
From: Roland Stigge <stigge@antcom.de>
To: 255030-done@bugs.debian.org
Content-Type: text/plain
Organization: Antcom
Message-Id: <1094305060.4300.1.camel@atari.stigge.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6 
Date: Sat, 04 Sep 2004 15:37:40 +0200
Content-Transfer-Encoding: 7bit
Delivered-To: 255030-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Hi,

this bug has been fixed in experimental a while ago. Now that dia 0.94
is in unstable, I'm closing this bug.

Thanks for reporting. If you ever encounter similar problems, please
report back.

bye,
  Roland