Bug#325645: hnb: segfault on startup

2005-09-04 Thread James A. Morrison
Line 161 in evilloop.c is causing the problem since docmd returns an
int not a pointer.
pos = docmd (pos, binding-action_param)

On 8/29/05, dann frazier [EMAIL PROTECTED] wrote:
 On Mon, 2005-08-29 at 17:51 -0700, James A. Morrison wrote:
   Does this affect 1.9.18-2?
 
 Sorry - should've upgraded first.  I verified that this still exists in
 1.9.18-2.  Thanks for fixing the previous bug so quick, btw.
 
 This one definitely looks like a truncated pointer - hnb assumes in a
 number of places that it can just cast a pointer to an int, which breaks
 systems where sizeof(int) != sizeof(void *).
 
 
 
 


-- 
Thanks,
Jim
http://phython.blogspot.com



Bug#325645: hnb: segfault on startup

2005-08-29 Thread dann frazier
Package: hnb
Version: 1.9.18-1
Severity: important

0x4002b1c0 in node_backrecurse (node=0x56b90) at tree.c:67
67  if (node_up (node)) {
(gdb) bt
#0  0x4002b1c0 in node_backrecurse (node=0x56b90) at tree.c:67
#1  0x4002b490 in node_no (node=0x56b90) at tree.c:83
#2  0x4003ef10 in ui_draw (node=0x56b90, input=0x60018d18 ,
edit_mode=0) at ui_draw.c:707
#3  0x400068f0 in evilloop (pos=0x56b90) at evilloop.c:149
#4  0x400237c0 in main (argc=1, argv=0x6fdeb7f8) at hnb.c:342
(gdb)

This is probably due to one of the number of
warning: cast from pointer to integer of different size compiler warnings.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: ia64
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-itanium-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages hnb depends on:
ii  libc6.1   2.3.5-3GNU C Library: Shared libraries an
ii  libncurses5   5.4-9  Shared libraries for terminal hand

hnb recommends no packages.

-- no debconf information


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



Bug#325645: hnb: segfault on startup

2005-08-29 Thread James A. Morrison
 Does this affect 1.9.18-2?

On 8/29/05, dann frazier [EMAIL PROTECTED] wrote:
 Package: hnb
 Version: 1.9.18-1
 Severity: important
 
 0x4002b1c0 in node_backrecurse (node=0x56b90) at tree.c:67
 67  if (node_up (node)) {
 (gdb) bt
 #0  0x4002b1c0 in node_backrecurse (node=0x56b90) at tree.c:67
 #1  0x4002b490 in node_no (node=0x56b90) at tree.c:83
 #2  0x4003ef10 in ui_draw (node=0x56b90, input=0x60018d18 ,
 edit_mode=0) at ui_draw.c:707
 #3  0x400068f0 in evilloop (pos=0x56b90) at evilloop.c:149
 #4  0x400237c0 in main (argc=1, argv=0x6fdeb7f8) at hnb.c:342
 (gdb)
 
 This is probably due to one of the number of
 warning: cast from pointer to integer of different size compiler warnings.
 
 -- System Information:
 Debian Release: testing/unstable
   APT prefers unstable
   APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
 Architecture: ia64
 Shell:  /bin/sh linked to /bin/bash
 Kernel: Linux 2.6.12-1-itanium-smp
 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
 
 Versions of packages hnb depends on:
 ii  libc6.1   2.3.5-3GNU C Library: Shared libraries 
 an
 ii  libncurses5   5.4-9  Shared libraries for terminal 
 hand
 
 hnb recommends no packages.
 
 -- no debconf information
 
 


-- 
Thanks,
Jim
http://phython.blogspot.com



Bug#325645: hnb: segfault on startup

2005-08-29 Thread dann frazier
On Mon, 2005-08-29 at 17:51 -0700, James A. Morrison wrote:
  Does this affect 1.9.18-2?

Sorry - should've upgraded first.  I verified that this still exists in
1.9.18-2.  Thanks for fixing the previous bug so quick, btw.

This one definitely looks like a truncated pointer - hnb assumes in a
number of places that it can just cast a pointer to an int, which breaks
systems where sizeof(int) != sizeof(void *).





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