Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27889 - ufed dies with "fatal error: the dialog couldn't be opened"
Summary: ufed dies with "fatal error: the dialog couldn't be opened"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Fred Van Andel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-03 18:34 UTC by Mark E. Drummond
Modified: 2004-03-29 19:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
strace output (ufed.strace,120.32 KB, text/plain)
2003-09-03 18:35 UTC, Mark E. Drummond
Details
strace -f ufed (strace.txt,197.20 KB, text/plain)
2003-09-04 20:44 UTC, Mark E. Drummond
Details
Test program that will save dialog parameters to a file. (ufed2,21.34 KB, text/plain)
2003-09-04 20:45 UTC, Fred Van Andel (RETIRED)
Details
ufed.pl output (ufed-output.txt,40.52 KB, text/plain)
2003-09-04 20:48 UTC, Mark E. Drummond
Details
test script # 1 for ufed (test1.sh,40.23 KB, text/plain)
2003-09-05 11:38 UTC, Fred Van Andel (RETIRED)
Details
Test script #2 for ufed (test2.sh,40.23 KB, text/plain)
2003-09-05 11:39 UTC, Fred Van Andel (RETIRED)
Details
strace -f output against dialog (strace.out,5.82 KB, text/plain)
2003-09-06 21:24 UTC, Mark E. Drummond
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark E. Drummond 2003-09-03 18:34:01 UTC
Trying to run ufed 0.34. It dies immediately with the message: 
 
fatal error: the dialog couldn't be opened 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Portage 2.0.49-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 
2.4.20-gentoo-r6) 
================================================================= 
System uname: 2.4.20-gentoo-r6 i686 Pentium II (Deschutes) 
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium2 -O2 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf 
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/ /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=pentium2 -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs distcc" 
GENTOO_MIRRORS="http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo 
ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ 
http://www.ibiblio.org/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad 
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv 
zlib directfb gtkhtml alsa gdbm berkdb slang readline arts tetex aalib nas 
bonobo svga ggi tcltk java guile ruby mysql postgres X sdl gpm tcpd pam libwww 
ssl perl python esd imlib oggvorbis gtk qt kde motif opengl gphoto2 cdr 
scanner acl apache2 athena cscope curl dga dvd fbcon gb gd imap innodb ipv6 
jikes junit kerberos ldap libgda maildir mbox mcal pda plotutils ppds samba 
sasl slp snmp socks5 sse tiff usagi usb vim-with-x wmf Xaw3d xinerama -3dnow"
Comment 1 Mark E. Drummond 2003-09-03 18:35:59 UTC
Created attachment 17027 [details]
strace output

Here's the output of a `strace ufed`.

Mark
Comment 2 SpanKY gentoo-dev 2003-09-04 04:35:19 UTC
you didnt run with -f so your strace didnt capture stuff post the fork() 
 
do you have dialog installed ?  is your terminal big enough ? 
Comment 3 Mark E. Drummond 2003-09-04 08:32:52 UTC
You're right, I forgot the -f. I'll rerun it when I get home. I assume I have 
dialog installed (ufed has always worked until recently) but I'll double check 
that too. 
 
Not sure what you mean by "is your terminal big enough ?". I am trying to run 
this from a VC, not an X terminal app. 
 
Mark 
Comment 4 Fred Van Andel (RETIRED) gentoo-dev 2003-09-04 20:43:26 UTC
When ufed gives that error is usually means something is wrong with the 
parameters being passed to dialog. I am attaching a slightly modified version 
of ufed called ufed2 to this bug. 
 
Please run it. It will create a file in the current directory called 
ufed-output.txt. Please attach that file to this bugreport. 
 
 
Comment 5 Mark E. Drummond 2003-09-04 20:44:41 UTC
Created attachment 17102 [details]
strace -f ufed
Comment 6 Fred Van Andel (RETIRED) gentoo-dev 2003-09-04 20:45:06 UTC
Created attachment 17103 [details]
Test program that will save dialog parameters to a file.

Please run and attach ufed-output.txt to this bug report
Comment 7 Mark E. Drummond 2003-09-04 20:45:50 UTC
Dialog is installed too: 
 
tess root # qpkg -I -i dialog 
dev-util/dialog-0.9_beta20030308-r1 * 
        A Tool to display Dialog boxes from Shell [ 
http://www.advancedresearch.org/dialog/ ] 
 
Comment 8 Mark E. Drummond 2003-09-04 20:48:12 UTC
Created attachment 17104 [details]
ufed.pl output
Comment 9 Fred Van Andel (RETIRED) gentoo-dev 2003-09-05 11:36:46 UTC
I think I know what the problem is, now to figure out why. 
 
I am attaching 2 scripts to this bug, please run them and tell me the results. 
One should work and the other should fail.  I want to know the error message 
that ensues. Please maximuse your terminal before running the scripts. 
 
Can you please tell me what terminal software are you using and does it occur 
when using different terminal software.  Can you please also try to run ufed 
from a textmode terminal as well. 
 
Comment 10 Fred Van Andel (RETIRED) gentoo-dev 2003-09-05 11:38:26 UTC
Created attachment 17127 [details]
test script # 1 for ufed
Comment 11 Fred Van Andel (RETIRED) gentoo-dev 2003-09-05 11:39:37 UTC
Created attachment 17128 [details]
Test script #2 for ufed
Comment 12 Mark E. Drummond 2003-09-05 22:55:39 UTC
There's something wrong with the scripts, I think. When I open them up they 
are both just single continuous lines (no life feeds). Can you upload them 
again if they are not supposed to be like that? 
 
And are these shell scripts? If not, how do I run them. 
 
Mark 
Comment 13 Mark E. Drummond 2003-09-06 05:34:24 UTC
errr, s/life/line/ 
Comment 14 Fred Van Andel (RETIRED) gentoo-dev 2003-09-06 10:39:29 UTC
Yes they are shell scripts.  
Yes they are supposed to be one very long line. 
run:   
   sh test1.sh 
   sh test2.sh 
to execute them. 
Comment 15 Mark E. Drummond 2003-09-06 11:38:54 UTC
I have tried running ufed both from a VC and in KDE's Konsole, both fail the 
same way. 
 
I ran both scripts and they both seem to do the same thing ... output a whole 
pile of text. They both end with: 
 
... Adds support for Zope Enterprise Objects" off "Adds support for Zope 
Enterprise Objects" zlib " (+  ) Adds support for zlib (de)compression" on 
"Adds support for zlib (de)compression" 
 
Mark 
Comment 16 Fred Van Andel (RETIRED) gentoo-dev 2003-09-06 21:07:29 UTC
The long output string is just repeating the command line for dialog. 
 
Lets try a simpler example, in a console run the followong command (as one 
line). 
 
dialog --checklist "Pick One" 12 20 3 one " 1 " off two " 2 " off three " 3" 
on 
Comment 17 Mark E. Drummond 2003-09-06 21:11:36 UTC
tess root # dialog --checklist "Pick One" 12 20 3 one " 1 " off two " 2 " off 
three " 3" 
Illegal instruction 
tess root # 
 
er, maybe I should just re-emerge dialog? 
 
Mark 
Comment 18 Fred Van Andel (RETIRED) gentoo-dev 2003-09-06 21:18:51 UTC
I would say that is probably the problem. 
 
Please mark the bug as fixed if it works. 
Comment 19 Mark E. Drummond 2003-09-06 21:24:12 UTC
Created attachment 17207 [details]
strace -f output against dialog

Re-emerged ufed, no joy:

mark@tess mark $ dialog --checklist "Pick One" 12 20 3 one "1" off two "2" off
three "3" on
Illegal instruction
mark@tess mark $

strace -f attached.
Comment 20 Fred Van Andel (RETIRED) gentoo-dev 2003-09-08 12:52:51 UTC
You need to re-emerge dialog, not ufed.
Comment 21 Mark E. Drummond 2003-09-08 19:52:23 UTC
Sorry, that's what I meant. I re-emerged dialog, not ufed. Brain burp ... 
 
 
Mark 
Comment 22 Mark E. Drummond 2003-09-20 03:02:47 UTC
Fixed by re-emerging ncurses. 
Comment 23 Mark E. Drummond 2003-10-02 04:14:32 UTC
Fixed by re-emerging ncurses. 
Comment 24 Chetan Sarva 2004-03-29 19:55:03 UTC
I'm having the same problem as Mark. Had ufed installed and working for some time but have not used it at least since upgrading to Portage 2.50 more than a month ago. A couple of emerge system/worlds later and its broken. I tried re-emerging dialog & ncurses with to no avail. I tried the tests listed in the comments above but I got the same errors as Mark.