Package: dialog
Version: 1.0-20050306-1
Severity: normal

Run, for instance :
dialog --inputbox "Media ID" 6 60 --inputbox "Media title" 6 60

It will segfault after the 2nd entry.

Adding "--separate-widget foo" fill fix the problem.
It seems that the value dialog_state.separate_str is not initialized
(or should be handled differently when it's NULL) :

Program received signal SIGSEGV, Segmentation fault.qqqqqqqqqqqqqqqj x  
0xb7e4d053 in strlen () from /lib/tls/libc.so.6qqqqqqqqqqqqqqqqqqqqqqj  
(gdb) bt                                                                
#0  0xb7e4d053 in strlen () from /lib/tls/libc.so.6
#1  0xb7e36ed8 in fputs () from /lib/tls/libc.so.6
#2  0x0804a9eb in show_result (ret=0) at dialog.c:600
#3  0x0804c0cb in main (argc=24, argv=0x8061958) at dialog.c:1419
(gdb) up
#1  0xb7e36ed8 in fputs () from /lib/tls/libc.so.6
(gdb) up
#2  0x0804a9eb in show_result (ret=0) at dialog.c:600
600                 fputs(dialog_state.separate_str, dialog_state.output);
(gdb) p dialog_state.separate_str
$1 = 0x0

I will use --separate-widget meanwhile :-)

Best regards

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.3
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_US)

Versions of packages dialog depends on:
ii  debianutils                   2.8.4      Miscellaneous utilities specific t
ii  libc6                         2.3.5-4    GNU C Library: Shared libraries an
ii  libncursesw5                  5.4-4      Shared libraries for terminal hand

dialog 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