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 aborts 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 ---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. Chris ---------- 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 ;) thanks Runnnig `foomatic-db-engine -O` in gdb says that the bug is at line 1840: 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
patch
Description: Binary data
--- End Message ---

