Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175958 - cadaver segfaults on AMD64
Summary: cadaver segfaults on AMD64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-25 12:14 UTC by Stéphane Bortzmeyer
Modified: 2007-07-21 20:25 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 Stéphane Bortzmeyer 2007-04-25 12:14:21 UTC
Cadaver (the Web DAV client) segfaults for every server. This may be AMD64-related (cadaver was masked, I unmasked it for testing).


Reproducible: Always

Steps to Reproduce:
1.cadaver http://www.gentoo.org
2.
3.

Actual Results:  
Could not access / (not WebDAV-enabled?):
405 Method Not Allowed
Connection to `www.gentoo.org' closed.
zsh: segmentation fault  cadaver http://www.gentoo.org


Expected Results:  
Could not access / (not WebDAV-enabled?):
405 Method Not Allowed
Connection to `www.gentoo.org' closed.

(Without the segfault)

If the server is WebDAV-enabled, I get only the segfault.

gcc --version:
gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
Comment 1 Victor Trac 2007-05-04 12:04:16 UTC
I was told that this is a incompatibility with the neon library and has been fixed in the latest two cadaver versions (0.22.4 and 0.22.5).  0.22.3 is a year and a half old, so it would be *fabulous* if we could get an upgrade. ;)
Comment 2 Jan Van Uytven 2007-06-11 15:12:37 UTC
Not AMD64 related.  I've got a Centrino, and have the same issue.  Here's my info followed by the strace log.

Portage 2.1.2.9 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r3, 2.6.21 i686)
=================================================================
System uname: 2.6.21 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 11 Jun 2007 14:30:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu         
tdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/         
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress          
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/di         
stfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bitmap-fonts cdr cli cracklib crypt cups dri dvd foo         
maticdb fortran gd gdbm gif gpm i iconv ipv6 isdnlog jabber jpeg kde ldap libg++         
 mad maildir midi mime mlib2 mp3 mpeg mplayer msn mudflap mysql ncurses nls nptl         
 nptlonly offensive opengl openmp pam pcre pdf perl png pppd python qt4 readline         
 reflection session spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicod         
e usb wxwindows x86 xml xorg xscreensave zlib" ALSA_CARDS="ali5451 als4000 atiix         
p atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es196         
8 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-         
modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty ex         
tplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug          
rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev"         
 KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 m         
txorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy         
 fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon renditi         
on s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vg         
a via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU         
AS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_         
OVERLAY


Strace log (last 50 lines or so)

open("/usr/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300a\3"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=1275000, ...}) = 0
mmap2(NULL, 1273176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c55000
mmap2(0xb7d74000, 86016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11e) = 0xb7d74000
mmap2(0xb7d89000, 11608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d89000
close(3)                                = 0
open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\246"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1147868, ...}) = 0
mmap2(NULL, 1148820, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b3c000
mmap2(0xb7c4f000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x113) = 0xb7c4f000
mmap2(0xb7c54000, 1940, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c54000
close(3)                                = 0
open("/lib/libz.so.1", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\24\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=71192, ...}) = 0
mmap2(NULL, 73524, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b2a000
mmap2(0xb7b3b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0xb7b3b000
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3603\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=155340, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b29000
mmap2(NULL, 147584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b04000
mmap2(0xb7b27000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7b27000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b03000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7b036b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7ef1000, 4096, PROT_READ)   = 0
mprotect(0xb7fcd000, 4096, PROT_READ)   = 0
munmap(0xb7fa5000, 52778)               = 0
brk(0)                                  = 0x805f000
brk(0x8080000)                          = 0x8080000
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=52778, ...}) = 0
mmap2(NULL, 52778, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fa5000
close(3)                                = 0
open("/lib/libz.so", O_RDONLY)          = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\24\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=71192, ...}) = 0
close(3)                                = 0
munmap(0xb7fa5000, 52778)               = 0
open("/home/wyvern/.netrc", O_RDONLY)   = -1 ENOENT (No such file or directory)
rt_sigaction(SIGTERM, {0x804c990, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGABRT, {0x804c990, [ABRT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x804c990, [QUIT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804c990, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
stat64("/home/wyvern/.cadaverrc", 0xbfbf96c0) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 14279 detached

Comment 3 Hans de Graaff gentoo-dev Security 2007-07-21 20:25:38 UTC
I've just committed cadaver 0.22.5 to CVS. This version seems to work fine on my AMD64 machine.