[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#264459: bblaunch segfaults under Fedora Core 2 (patch)



Package:  bblaunch
Version:  0.0.3-5

Any attempt to run bblaunch on Fedora Core 2 under Fluxbox results in "Segmentation fault" with no
core file.  This behavior is consistent regardless of arguments used.

[root@tomis .backups]# uname -a
Linux tomis 2.6.5-1.358.8kstacks #1 Sat May 22 21:46:42 EDT 2004 i686 athlon i386 GNU/Linux

[root@tomis .backups]# ls -l /lib/libc.so.6 
lrwxrwxrwx  1 root root 13 Jun 12 23:16 /lib/libc.so.6 -> libc-2.3.3.so

It appears that this package is no longer maintained: 
http://packages.qa.debian.org/b/bblaunch.html

I tracked down the problem to a bad cast and, as it turns out, the variable in question wasn't
even being used.  I deleted the line and everything works just fine.  Patch is below my signoff.

Please note that I cannot guarantee that this will fix anything in bblaunch other than allowing it
to run with the "-d 0" option, which I use to create a borderless aterm under fluxbox.

Cheers,
Ovid

--
Only in bblaunch-0.0.3: bblaunch
diff -u bblaunch-0.0.3.orig/bblaunch.c bblaunch-0.0.3/bblaunch.c
--- bblaunch-0.0.3.orig/bblaunch.c      2004-08-08 10:14:14.560014872 -0700
+++ bblaunch-0.0.3/bblaunch.c   2004-08-08 10:15:09.425674024 -0700
@@ -170,8 +170,6 @@
        launchargs.iconic = False;
        launchargs.pause = 1000;
 
-       sprintf(launchargs.call, "%s", (char *)atoi(argv[0]));
-
        i = 1;
        valargs = 1;
        while ((i < argc) && valargs) {
diff -u bblaunch-0.0.3.orig/bblaunch.h bblaunch-0.0.3/bblaunch.h
--- bblaunch-0.0.3.orig/bblaunch.h      2004-08-08 10:14:14.560014872 -0700
+++ bblaunch-0.0.3/bblaunch.h   2004-08-08 10:15:16.908536456 -0700
@@ -1,7 +1,6 @@
 
 typedef struct LArgs
   {
-    char call[1024];
     char command[1024];
     unsigned long flags, attrib, workspace, stack, decoration;
     unsigned long pause;



=====
Silence is Evil            http://users.easystreet.com/ovid/philosophy/indexdecency.htm
Ovid                       http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl  http://users.easystreet.com/ovid/cgi_course/



Reply to: