Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268480 - sys-libs/gpm-1.20.5/6 is causing locking problems in dev-util/dialog
Summary: sys-libs/gpm-1.20.5/6 is causing locking problems in dev-util/dialog
Status: RESOLVED DUPLICATE of bug 219577
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-03 18:03 UTC by pavel sanda
Modified: 2010-12-24 20:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pavel sanda 2009-05-03 18:03:20 UTC
after upgrade to gpm-1.20.5 my scripts using dev-util/dialog stopped to work. update to gpm-1.20.6 didn't help.

related problem is that i was not able to downgrade to sys-libs/gpm-1.20.1-r6 becausen of bug #225375 - devs fixed only 1.20.5 version. (fix with append flag
is of no help, however when you manually put
#define _GNU_SOURCE  /* needed for struct ucred */
in the begining of gpm.c, the emerge proceeds.)


i'm attaching my exchange with dialog developer:
-------------------------------------------------------------------------------
> hello,
>
> i after updating some parts of my system libraries (most notably some X
> libraries) dialog started to have occasional problems with displaying in the
> terminal. it just clears the screen and stops there. strange is that one needs
> to run dialog few times to make this happen. once it happens all next attempts
> (in the same or in a different terminal windows) are unsuccesfull.
>
> it looks like there is lock for something. after different attempts i found
> that when i resize the terminal dialog just appears. next strange thing i found
> is that the dialog also appears when i switch to text console from X and then
> back.

offhand, the only issue related to locking that I know of is (bugs in) 
gpm.  I closed off some recently-opened problems related to gpm in ncurses
last year by reducing the places where it would allow gpm to initialize in
an xterm.  So that might be related.

>
> last indication is that it is related to the setting of TERM variable.  i
> natively use Eterm and when i set the envi variable TERM to xterm it start
> to work again (unfortunately many things in like correct key bindings etc wont
> work now...). for a moment i thought that it may be just displaying problem of
> Eterm but when i go to xterm, set TERM=Eterm the problem reappears. also other
> varible settings like rxvt etc cause this problem too.
>
> please do you have any idea what could be the culprit? i have tried
> recompilation of dialog itself, downgrades of many of those libs, etc still
> without success.
>
> i use dialog on a regular basis and this is very annoying.
>
> thanks,
> pavel
>

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
------------------------------------------------------------------------------

Reproducible: Always

Steps to Reproduce:




Portage 2.1.6.11 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.19-suspend2-r3 i686)
=================================================================
System uname: Linux-2.6.19-suspend2-r3-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0
Timestamp of tree: Fri, 01 May 2009 09:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/"
LANG="cs_CZ"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde latex ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 pavel sanda 2009-05-03 18:04:51 UTC
i nearly forgot to add - after manual downgrade to gpm-1.20.1-r6 the problem disappeared
Comment 2 SpanKY gentoo-dev 2010-12-24 20:32:59 UTC

*** This bug has been marked as a duplicate of bug 219577 ***