Bug#324803: Cannot reproduce with 0.2.4-2

2007-03-27 Thread Amos Waterland
I can't seem to trigger this bug when using the version of the package
that is in unstable, namely 0.2.4-2.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#324803: Can reproduce with package in sid

2007-03-27 Thread Amos Waterland
I am able to reproduce this problem in sid.  Here is the backtrace:

#0  0x002a95b665b0 in strlen () from /lib/libc.so.6
#1  0x002a95b384bc in vfprintf () from /lib/libc.so.6
#2  0x002a95b532c9 in vsprintf () from /lib/libc.so.6
#3  0x002a95b3e438 in sprintf () from /lib/libc.so.6
#4  0x0040c1ff in ?? ()
#5  0x004078ab in ?? ()
#6  0x002a95b104ca in __libc_start_main () from /lib/libc.so.6
#7  0x00402daa in ?? ()
#8  0x007fbdd8 in ?? ()
#9  0x in ?? ()
(gdb) x/i $pc
0x2a95b665b0 :   cmpb   $0x0,(%rax)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#324803: Bugfix

2007-03-29 Thread Amos Waterland
I worked around the segfault, and fixed a memory corruption bug that
caused a different crash.  Can the maintainer please consider this new
version of the package?

 http://shake.ath.cx:8080/~apw/debian/324803/

Here is the interdiff:

diff -u cdw-0.2.4/debian/changelog cdw-0.2.4/debian/changelog
--- cdw-0.2.4/debian/changelog
+++ cdw-0.2.4/debian/changelog
@@ -1,3 +1,10 @@
+cdw (0.2.4-3) unstable; urgency=low
+
+  * Fix memory corruption.
+  * Work around getenv segfaults.  (closes: #324803).
+
+ -- Amos Waterland <[EMAIL PROTECTED]>  Wed, 28 Mar 2007 23:00:08 +
+
 cdw (0.2.4-2) unstable; urgency=low
 
   * Remove circular dependency (closes: #340051).
only in patch2:
unchanged:
--- cdw-0.2.4.orig/src/color.c
+++ cdw-0.2.4/src/color.c
@@ -85,7 +85,8 @@
 int colors[20];
 int i;

-sprintf(line, "%s/.cdw.colors", getenv("HOME"));
+extern char *getenv_HOME;
+sprintf(line, "%s/.cdw.colors", getenv_HOME);
 if ((color_conf=fopen(line, "r"))==NULL) {
init_pair(1, COLOR_CYAN, COLOR_BLUE);
init_pair(2, COLOR_BLUE, COLOR_WHITE);
only in patch2:
unchanged:
--- cdw-0.2.4.orig/src/gtkgui.c
+++ cdw-0.2.4/src/gtkgui.c
@@ -61,6 +61,8 @@
 int select_window_gtk(bool real);
 void fill_info_gtk();
 
+extern char *getenv_HOME;
+
 /*/
 
 
@@ -956,7 +958,7 @@
if ( strlen(config.bootimg) ) {
char bootimage[255];

-   sprintf(bootimage, "%s/.cdw/%s", getenv("HOME"), config.bootimg);
+   sprintf(bootimage, "%s/.cdw/%s", getenv_HOME, config.bootimg);
if ( (isofile=fopen(bootimage, "r"))==NULL ){
boot_exists=gtk_error_message(_("Boot image doesn't exist!"));
boot_exists=0;
@@ -1047,7 +1049,7 @@
if ( strlen(config.bootimg) ) {
char bootimage[255];

-   sprintf(bootimage, "%s/.cdw/%s", getenv("HOME"), 
config.bootimg);
+   sprintf(bootimage, "%s/.cdw/%s", getenv_HOME, config.bootimg);
if ( (isofile=fopen(bootimage, "r"))==NULL ){
boot_exists=gtk_error_message(_("Boot image doesn't 
exist!"));
boot_exists=0;
@@ -1344,7 +1346,7 @@
 bind_textdomain_codeset(PACKAGE, "UTF-8");
 gtk_init(0, &argv);
 
-sprintf(homedir,"%.225s/.cdw",getenv("HOME"));
+sprintf(homedir,"%.225s/.cdw",getenv_HOME);
 mkdir(homedir,S_IRWXU);
 config=read_conf(); 
 window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
only in patch2:
unchanged:
--- cdw-0.2.4.orig/src/main.c
+++ cdw-0.2.4/src/main.c
@@ -53,6 +53,7 @@
 int select_window(bool real);
 int add_to_dic();
 int menupos;
+char *getenv_HOME;
 
 ITEM **items, **cditems;
 MENU *menu, *cdmenu;
@@ -237,7 +238,7 @@
 mvwaddch(addwin, 0, 2, ACS_RTEE);
 mvwprintw(addwin, 0, 3, " %s ", _("Add files"));
 waddch(addwin, ACS_LTEE);
-sprintf(path,"%s",getenv("HOME"));
+sprintf(path,"%s",getenv_HOME);
 load_dir(path, width, height);
 highlight(0, filei[menupos], 0);
 while ( (c=wgetch(addwin))!=27 ){
@@ -489,7 +490,7 @@
for (cnt=0; cntd_name)+strlen(dir)+4);
sprintf(ch,"%s/%s",dir,eps[cnt]->d_name);
-   finfo=(struct stat *)malloc(sizeof(finfo)+100);
+   finfo=(struct stat *)malloc(sizeof(*finfo)+100);
ok=lstat(ch,finfo);
if ( (eps[cnt]->d_type=DT_DIR) ) 
dirsize(ch);
@@ -1092,7 +1093,8 @@
 
 /* Read config */
 mtrace();
-sprintf(homedir,"%.225s/.cdw",getenv("HOME"));
+getenv_HOME = getenv("HOME");
+sprintf(homedir,"%.225s/.cdw",getenv_HOME);
 mkdir(homedir,S_IRWXU);
 config=read_conf();
 
@@ -1338,7 +1340,7 @@
if ( strlen(config.bootimg) ) {
char bootimage[255];

-   sprintf(bootimage, "%s/.cdw/%s", getenv("HOME"), 
config.bootimg);
+   sprintf(bootimage, "%s/.cdw/%s", getenv_HOME, 
config.bootimg);
if ( (isofile=fopen(bootimage, "r"))==NULL ){
boot_exists=dialogbox(_("Boot image doesn'n 
exists!"), _("Boot image error"), 0);
boot_exists=0;
@@ -1426,7 +1428,7 @@
if ( strlen(config.bootimg) ) {
char bootimage[255];

-   sprintf(bootimage, "%s/.cdw/%s", getenv("HOME"), 
config.bootimg);
+   sprintf(bootimage, "%s/.cdw/%s", getenv_HOME, 
con

Bug#415037: Verified

2007-04-05 Thread Amos Waterland
I can reproduce the test failure reported with a chroot sid as of
2007-04-05.  In addition, other tests, such as t9105-fetch-local.sh
are failing as well.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#416596: Fix prepared, NMU available

2007-04-05 Thread Amos Waterland
Hi.  I am in the NM process and am hoping to fix this bug with a NMU.  I put 
the fixed package up here:

 http://shake.ath.cx:8080/~apw/debian/416596/

Please let me know if you see problems with the approach.  Here is the debdiff:

--- gpib-3.2.06/debian/control
+++ gpib-3.2.06/debian/control
@@ -32,7 +32,7 @@
 Package: libgpib-bin
 Section: science
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, adduser, ${misc:Depends}
 Description: libgpib support applications and configuration
  ${Common:Description}
  This package contains configuration files and binaries for libgpib
diff -u gpib-3.2.06/debian/changelog gpib-3.2.06/debian/changelog
--- gpib-3.2.06/debian/changelog
+++ gpib-3.2.06/debian/changelog
@@ -1,3 +1,10 @@
+gpib (3.2.06-3.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add dependency on adduser. (Closes: #416596).
+
+ -- Amos Waterland <[EMAIL PROTECTED]>  Thu, 05 Apr 2007 15:15:35 +
+



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]