[email protected]
[Top] [All Lists]

Bug#362586: marked as forwarded (foomatic-db-engine: foomatic-combo-xml

Subject: Bug#362586: marked as forwarded foomatic-db-engine: foomatic-combo-xml -O -l /usr/share/foomatic aborts
From: Debian Bug Tracking System
Date: Mon, 29 May 2006 07:48:55 -0700
Your message dated Mon, 29 May 2006 10:42:50 -0400
with message-id <[email protected]>
has caused the Debian Bug report #362586,
regarding foomatic-db-engine: foomatic-combo-xml -O -l /usr/share/foomatic 
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(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)

--- Begin Message ---
Subject: Fwd: Bug#362586: patch
From: "Chris Lawrence"
Date: Mon, 29 May 2006 10:42:50 -0400
Till et al: any idea what could be causing these double-free problems?
Apparently they only get triggered if both the Gutenprint and
foomatic-db xml files are installed at the same time.


---------- Forwarded message ----------
From: Luca Bruno <[email protected]>
Date: May 29, 2006 9:21 AM
Subject: Bug#362586: patch
To: [email protected], [email protected]

tags 362586 patch
#more a workaround than a real patch ;)

Runnnig `foomatic-db-engine -O` in gdb says that the bug is at line

1832          if (debug) fprintf(stderr, "  Printer file loaded!\n");
1833          /* process it */
1834          parse(&printerbuffer, NULL, NULL, printerfilename,
&printerlist, 4,
1835                (const char **)defaultsettings, num_defaultsettings, &nopjl,
1836                idlist, debug2);
1837          /* put it out */
1838          printf("%s", printerbuffer);
1839          /* Delete the printer file from memory */
1840          free((void*)printerbuffer);
1841          printerbuffer = NULL;
1842        }

Just commenting out that line fixes the glibc error. I've attached
here the patch.
I've tried it in printconf and it now works. Please note that this is
a just a workaround,
because I couldn't find a trivial double free. A better patch should
be applied once identified
the real issue.

Theorically this could lead to memory leak (but I didn't experience in my test).

Cheers, Luca

.''`.  ** Debian GNU/Linux **  | Luca Bruno
: :'  :   The Universal O.S.    | luca.br(AT)uno.it
`. `'`                          | GPG Key ID: 3BFB9FB3
 `-     http://www.debian.org  | Proud Debian GNU/Linux User

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#362586: marked as forwarded (foomatic-db-engine: foomatic-combo-xml -O -l /usr/share/foomatic aborts), Debian Bug Tracking System <=