Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208795 - app-portage/layman-1.1.1 - python segfaults with https
Summary: app-portage/layman-1.1.1 - python segfaults with https
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-03 21:01 UTC by Geaaru
Modified: 2009-12-29 11:15 UTC (History)
2 users (show)

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 Geaaru 2008-02-03 21:01:56 UTC
I'm try to use my overlay with this scenario:
- layman.txt file with overlay information at address https://overlay.geaaru.homelinux.net:8080
- svn repository of overlay on https://overlay.geaaru.homelinux.net:8080/svn

When i call layman -L a segfault is handled.

I try to debug layman with pdb module of python and seems that problem is happens here:
> /usr/lib64/python2.5/site-packages/layman/action.py(66)__init__()->None
-> self.db = RemoteDB(config)
(Pdb) 
--Call--
> /usr/lib64/python2.5/site-packages/layman/action.py(68)run()
-> def run(self):
(Pdb) 
> /usr/lib64/python2.5/site-packages/layman/action.py(70)run()
-> try:
(Pdb) 
> /usr/lib64/python2.5/site-packages/layman/action.py(71)run()
-> self.db.cache()
(Pdb) 
Segmentation fault


Reproducible: Always
Comment 1 Geaaru 2008-02-03 21:08:34 UTC
Layman support https? Maybe problem is there.

Ge@@ru
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-03 21:10:18 UTC
Please attach a backtrace and post emerge --info output; thanks.

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 3 Geaaru 2008-02-03 21:29:52 UTC
$# emerge --info

Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 AMD Turion(tm) 64 Mobile Technology ML-30
Timestamp of tree: Sun, 03 Feb 2008 11:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -msse3 -mno-tls-direct-seg-refs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/config /usr/spool/PBS /var/bind /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -msse3 -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://gentoo.mirrors.tds.net/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en it en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/zugaina /usr/portage/local/layman/gentopia /usr/portage/local/layman/custom-kernels /usr/portage/local/layman/enlightenment /usr/portage/local/layman/voip /usr/local/kpex-media"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi aiglx alsa amd64 apache2 arts asf async authdaemond authfile authfilei automount avahi avi beagle berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr chroot clamav cli cluster cracklib crypt cscope cups curl dba dbus dga directfb dlloader dmx doc dri dts dv dvb dvd dvdr dvdread dynamic editor eds emboss encode esd evo evolution examples extensions fam fame fbcon ffmpeg firefox flac fortran gdbm ggi gif gimpprint gmail gnokii gnome gphoto2 gpm gstreamer gtk hal hbci httpd iconv imagemagick imap ipv6 irda isdnlog java jpeg kde kerberos krb4 ldap libcaca lirc live lm_sensors logrotate mad maildir mbox midi mikmod mime mjpeg mmx mmxext mod mono motif mp3 mp4 mpeg mpm-prefork mudflap musepack mysql nas nautilus ncurses network nfs nls nntp nptl nptlonly nsplugin oav odbc ofx ogg oggvorbis ole opengl openmp opensslcrypt oss pam pcmcia pcre pdf perl php physfs png pop posix pppd python qt3 qt3support qt4 quicktime quotas quotes readline reflection rtc samba sasl screen sdk sdl server session skey smartcard sms sndfile snmp speex spell spl sqlite sse sse2 ssl stream subversion svg sysfs tcltk tcpd theora threads tiff toolbar tools truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vlm vorbis webdav widescreen wifi winbind wmf wxwindows x264 xine xinerama xinetd xml xml2 xorg xosd xprint xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="evdev keyboard mouse synaptics acecad wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it en_GB" USERLAND="GNU" VIDEO_CARDS="ati radeon fbdev vesa v4l vga dummy glint"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

And here backtrace of segfault:

Program received signal SIGSEGV, Segmentation fault.
0x00002ab9fb3f2dcb in ?? () from /usr/lib/libssl.so.0.9.8
(gdb) bt
#0  0x00002ab9fb3f2dcb in ?? () from /usr/lib/libssl.so.0.9.8
#1  0x00002ab9fb3f2fa2 in ssl_clear_bad_session () from /usr/lib/libssl.so.0.9.8
#2  0x00002ab9fb3f06bb in SSL_free () from /usr/lib/libssl.so.0.9.8
#3  0x00002ab9fb2812e0 in ?? () from /usr/lib64/python2.5/lib-dynload/_ssl.so
#4  0x00002ab9f9551ba3 in ?? () from /usr/lib/libpython2.5.so.1.0
#5  0x00002ab9f952acf3 in ?? () from /usr/lib/libpython2.5.so.1.0
#6  0x00002ab9f955017b in ?? () from /usr/lib/libpython2.5.so.1.0
#7  0x00002ab9f9551f2d in PyDict_SetItem () from /usr/lib/libpython2.5.so.1.0
#8  0x00002ab9f95551fe in PyObject_SetAttr () from /usr/lib/libpython2.5.so.1.0
#9  0x00002ab9f9599beb in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#10 0x00002ab9f959ee99 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#11 0x00002ab9f959ee99 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#12 0x00002ab9f959fea3 in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#13 0x00002ab9f9540d6f in ?? () from /usr/lib/libpython2.5.so.1.0
#14 0x00002ab9f951fd43 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
#15 0x00002ab9f952735b in ?? () from /usr/lib/libpython2.5.so.1.0
#16 0x00002ab9f951fd43 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
#17 0x00002ab9f9597c7d in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.5.so.1.0
#18 0x00002ab9f95700fa in ?? () from /usr/lib/libpython2.5.so.1.0
#19 0x00002ab9f95698a4 in ?? () from /usr/lib/libpython2.5.so.1.0
#20 0x00002ab9f959c68c in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#21 0x00002ab9f959ee99 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#22 0x00002ab9f959ee99 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#23 0x00002ab9f959fea3 in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#24 0x00002ab9f9540d6f in ?? () from /usr/lib/libpython2.5.so.1.0
#25 0x00002ab9f951fd43 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
#26 0x00002ab9f952735b in ?? () from /usr/lib/libpython2.5.so.1.0
#27 0x00002ab9f951fd43 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
#28 0x00002ab9f9597c7d in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.5.so.1.0
#29 0x00002ab9f952ae45 in PyInstance_New () from /usr/lib/libpython2.5.so.1.0
#30 0x00002ab9f951fd43 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
#31 0x00002ab9f959cf93 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#32 0x00002ab9f959ee99 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#33 0x00002ab9f959fea3 in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#34 0x00002ab9f95a0152 in PyEval_EvalCode () from /usr/lib/libpython2.5.so.1.0
#35 0x00002ab9f95c2eb1 in PyRun_FileExFlags () from /usr/lib/libpython2.5.so.1.0
#36 0x00002ab9f95c3138 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.5.so.1.0
#37 0x00002ab9f95cbc42 in Py_Main () from /usr/lib/libpython2.5.so.1.0
#38 0x00002ab9f9989b74 in __libc_start_main () from /lib/libc.so.6
#39 0x0000000000400699 in _start ()
(gdb) q
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-02-03 21:33:21 UTC
Thanks, looks like python/ssl related indeed.
Comment 5 René 'Necoro' Neumann 2008-04-22 23:05:38 UTC
Looks like related to #200992
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-10-17 09:10:08 UTC
Can you still reproduce this? What about without the kerberos use flag set?
Comment 7 Sebastian Pipping gentoo-dev 2009-12-29 11:15:23 UTC
(In reply to comment #6)
> Can you still reproduce this? What about without the kerberos use flag set?

Also, does layman 1.2.4 show the same behavior for you?