Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#3568 - gpm bug effecting dialog, and hence netcfg

Attached to Project: Arch Linux
Opened by Alec Thomas (alecthomas) - Saturday, 03 December 2005, 15:25 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 04 December 2005, 08:21 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To dorphell (dorphell)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I noticed that netcfg was ignoring my choice of network profile. Upon investigation it seems to be a bug in GPM.

Here is an identical report for Fedora: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=109468

Not sure what the fix is, but it renders netcfg's --menu option useless.

Reproducible every time with this:

[root@cavern:~]dialog --menu "Pick one" 10 40 4 1 One 2 Two 2> t
[root@cavern:~]cat t
*** debug [lib/liblow.c(205)]:
VC: 0
*** err [lib/liblow.c(264)]:
strncmp/isdigit/option.consolename failed
*** err [lib/liblow.c(373)]:
Oh, oh, it's an error! possibly I die!
2
This task depends upon

Closed by  Judd Vinet (judd)
Monday, 05 December 2005, 07:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in gpm 1.20.1-5
Comment by dorphell (dorphell) - Sunday, 04 December 2005, 16:20 GMT
Not reproducible here.

Are you using a custom-made dialog/gpm pkg? Did you rebuild gpm in the past?

... and if not, are you using the current versions? (1.20.1-4 and 1.0-4)
Comment by Alec Thomas (alecthomas) - Sunday, 04 December 2005, 23:00 GMT
No custom versions and they are current:

[root@cavern:~]pacman -Q gpm
gpm 1.20.1-4
[root@cavern:~]pacman -Q dialog
dialog 1.0-4

If I run the same dialog command at the console I get this:

*** debug [lib/liblow.c(205)]:
VC: 0

Perhaps I have inadvertently enabled a debug mode...

Interestingly, here is a fellow Archer with the same issue: http://www.archlinux.it/forum/viewpost.2323.html

I might check out the GPM source code when I get to work, and see if anything leaps out at me.
Comment by dorphell (dorphell) - Sunday, 04 December 2005, 23:48 GMT
By custom version i mean built from PKGBUILD.... did you build it from PKGBUILD or did you use the official .pkg.tar.gz?

The reason you and the other Archer have this issue is because gpm is linking up against dialog and gpm has been causing such havoc for years.

Official dialog does *not* link against gpm so clearly this is an isolated issue.
Comment by Alec Thomas (alecthomas) - Monday, 05 December 2005, 03:22 GMT
Yes I understand what you meant. I am not using custom packages.

From this page: http://dickey.his.com/ncurses/ncurses.faq.html#using_gpm_lib
"ncurses 5.5 can dynamically load the GPM library on Linux, and that eliminates any reason to have the ncurses library built with an explicit dependency upon GPM."

I've verified this is occurring by commenting out the error message in the GPM source, recompiling, and installing the package. dailog no longer displays the message.

Strangely, if I set my TERM to "xterm" I don't get this error. However TERM of "rxvt" and "linux" both produce the error.

I have attached an updated gpm.patch which fixes the symptoms. It looks like it was just debug messages and an error message that was unnecessary. The Fedora SRPM applies the same patch (plus about 1000 more).

Loading...