Package: motor
Version: 2:3.4.0-7
Severity: important

Motor segfaults on startup.

On AMD64 bit, int is 32 bit, while the pointers are 64 bits. So when
it pushes the int(0) as last argument on the stack for
horizontalbar(nc,sc, ...), it only pushes 4 bytes worth of 0's, in
stead of 8.
Problem is, I see a lot of functions using "..." as argument, and
cannot easily find where they are used to make sure there are no other
instances of this.


At least with the patch below motor starts on my AMD 64 bit system.


diff -u -r motor-3.4.0/src/ui/ncurses/ncursesui.cc 
motor-3.4.0-patch/src/ui/ncurses/ncursesui.cc
--- motor-3.4.0/src/ui/ncurses/ncursesui.cc     2008-04-21
10:42:24.000000000 +0200
+++ motor-3.4.0-patch/src/ui/ncurses/ncursesui.cc       2008-04-21
10:32:51.000000000 +0200
@@ -338,7 +338,7 @@

    if(amode == selectorcreate) {
       db.setbar(new horizontalbar(getcolor(cp_menu), getcolor(cp_menusel),
-           _("Create/Import.."), _("Add"), _("Remove"), _("Open"), 0));
+           _("Create/Import.."), _("Add"), _("Remove"), _("Open"), (char *)0));

       db.addkey(KEY_IC, 1);
       db.addkey(KEY_DC, 2);



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ISO-8859-1) (ignored: 
LC_ALL set to en_US)

Versions of packages motor depends on:
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  libgcc1                1:4.1.1-21        GCC support library
ii  libncurses5            5.5-5             Shared libraries for terminal hand
ii  libstdc++6             4.1.1-21          The GNU Standard C++ Library v3
ii  motor-common           2:3.4.0-7         C/C++/Java Integrated Development 

motor recommends no packages.

-- no debconf information



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

Reply via email to