Bug 109468 - dialog with --menu option returns what appears to be a fatal error from gpm (strncmp/isdigit/option.consolename failed). Sample script snippet included.
Summary: dialog with --menu option returns what appears to be a fatal error from gpm (...
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gpm (Show other bugs)
(Show other bugs)
Version: 1
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Eido Inoue
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-08 03:04 UTC by Scott Kilau
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version: 1.20.1-43
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-02-27 00:31:01 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Scott Kilau 2003-11-08 03:04:36 UTC
Description of problem:

Using:
dialog-0.9b-20031002.1
and:
gpm-1.20.1-38

When using a dialog box with the --menu option, when user selects on 
an option, a bizarre failure from what appears to be the gpm library 
occurs.

Very simple example of problem:
#!/bin/sh

dialog --backtitle "test" --nocancel --title "test"  --menu "test" 19 
10 3 \
        1 "blah 1" \
        2 "blah 2" \
        3 "blah 3" \
        2>/tmp/test.out

A cat of the resulting /tmp/test.out shows:

# more /tmp/test.out 
*** err [lib/liblow.c(267)]:
strncmp/isdigit/option.consolename failed
*** err [lib/liblow.c(376)]:
Oh, oh, it's an error! possibly I die! 
3

Notice that it *does* get the correct value at the very bottom,
but the text above causes problem when parsing the result.

A google scan shows that liblow.c belongs to gpm.


How reproducible:

Occurs every time.

Steps to Reproduce:
1. Try the sample script thats included in description field.
  
Actual results:
*** err [lib/liblow.c(267)]:
strncmp/isdigit/option.consolename failed
*** err [lib/liblow.c(376)]:
Oh, oh, it's an error! possibly I die! 
3


Expected results:
Just "3", no error message.

Comment 1 Harald Hoyer 2003-11-24 10:14:40 UTC
cannot reproduce the problem...
$ rpm -q gpm dialog
gpm-1.20.1-38
dialog-0.9b-20031002.1

In which kind of terminal do you run this?
I reassign to gpm then, because of the source of the error message.

Comment 2 Scott Kilau 2003-11-24 22:26:02 UTC
I telnet into the Fedora box using SecureCRT,
term type set to "Linux", then run the test script included.

This problem does not occur on RedHat 9.


Comment 3 Steven Shiau 2004-01-19 16:28:03 UTC
I comfirmed that I encountered the same problem in FC1, while in RH9
dialog works very well.

Comment 4 jo 2004-02-17 06:04:45 UTC
Make this on the shell:

export TERM=eterm

To go Up and Down in mc use ctrl-n and ctrl-p!


Note You need to log in before you can comment on or make changes to this bug.