Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 143980
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Net-Mail Packages <net-mail@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Andrej Kacian (RETIRED) <ticho@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 143980 depends on: Show dependency tree
Bug 143980 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-08-15 00:58 0000
Over 30 days in bugzilla and looking good! Please stabilize, thanks.

------- Comment #1 From Christian Faulhammer 2006-08-15 01:24:32 0000 -------
1) emerges fine
2) passes collision test
3) gets some email

Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash
/etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer
parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
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='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa arts artworkextra asf audiofile avi
bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo
cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus
dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds emacs emboss
encode esd evo exif expat fam fat fbcon ffmpeg firefox foomaticdb fortran ftp
gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick
imap imlib ipv6 isdnlog java javascript jikes jpeg jpeg2k ldap leim libg++
libwww lm_sensors mad maildir matroska mbox mikmod mime mmx mmxext mng mono
motif mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nptl nptlonly
nsplugin nvidia objc ogg opengl pam pcre pdf pdflib perl plotutils pmu png ppds
pppd preview-latex print python qt3 qt4 quicktime readline reflection reiserfs
samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd theora
thunderbird tiff truetype truetype-fonts type1-fonts udev usb vcd videos vorbis
win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib elibc_glibc
input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU
video_cards_radeon video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Joshua Jackson 2006-08-15 20:52:40 0000 -------
got my mail, anyone in the mood for a bonfire?

------- Comment #3 From Gustavo Zacarias (RETIRED) 2006-08-16 11:25:11 0000 -------
sparc stable.

------- Comment #4 From Tobias Scherbaum 2006-08-18 13:50:04 0000 -------
ppc stable

------- Comment #5 From Christoph Mende 2006-08-30 05:55:45 0000 -------
compiles fine, passes collision test, passes multilib-strict test, passes test
suite, able to fetch mail, but getmail_mbox and getmail_maildir fail.

strace getmail_mbox ~/mbox (file exists, filled by getmail_fetch):
stat("./mbox", {st_mode=S_IFREG|0644, st_size=4041, ...}) = 0
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2aab2ced6000
read(0,
hangs here, when ^C out of it:
strace: read(0,  <unfinished ...>
stderr: Traceback (most recent call last):
  File "/usr/bin/getmail_mbox", line 57, in ?
    msg = Message(fromfile=sys.stdin)
  File "/usr/lib/python2.4/site-packages/getmailcore/message.py", line 103, in
__init__
    self.__msg = parser.parse(fromfile)
  File "/usr/lib/python2.4/email/Parser.py", line 85, in parse
    return Parser.parse(self, fp, True)
  File "/usr/lib/python2.4/email/Parser.py", line 65, in parse
    data = fp.read(8192)
KeyboardInterrupt

Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
2.6.17-reiser4-r6 x86_64)
=================================================================
System uname: 2.6.17-reiser4-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-test distlocks metadata-transfer
multilib-strict parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/ "
LANG="en_US.ISO8859-1"
LC_ALL="en_US.ISO8859-1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/stuff"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa asf avi berkdb bitmap-fonts bzip2 cdda cddb cdr
cli crypt cups dbus dlloader dri dvd dvdr emboss encode expat foomaticdb
fortran gif glut gpm gstreamer gtk gtk2 hal idn imagemagick imlib isdnlog jpeg
lcms lirc lzw lzw-tiff mad mng mp3 mpeg musicbrainz ncurses nls nptl ogg opengl
pam pcre pdflib perl php png pppd python quicktime readline reflection ruby sdl
session spl ssl svg tcpd tiff truetype-fonts type1-fonts udev usb v4l v4l2 xine
xinerama xorg xpm xv zlib elibc_glibc input_devices_evdev
input_devices_keyboard input_devices_mouse kernel_linux lirc_devices_hauppauge
userland_GNU video_cards_fglrx video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS

------- Comment #6 From Andrej Kacian (RETIRED) 2006-09-21 10:25:22 0000 -------
Christoph, can you reproduce this on latest getmail ebuild in portage?

------- Comment #7 From Christoph Mende 2006-09-21 10:47:44 0000 -------
Exactly the same problem, getmail_fetch works, getmail_maildir and getmail_mbox
don't - maybe someone else should try it to see if it's a local problem, the
problem doesn't look arch specific to me

------- Comment #8 From Christoph Mende 2006-10-14 10:20:33 0000 -------
Got new info on this, by accident I found out that it's not really hanging,
it's reading from stdin.
I took a look at /usr/bin/getmail_mbox and found the following on line 57 (see
the output after ^C in comment 5): msg = Message(fromfile=sys.stdin)
Looks like me as if it wants to read the mail from stdin (which is not
intended, huh?), so I tried getmail_mbox ./mbox < ./mbox, that gives me a new
result, no output, but I can see reading it my mbox in strace:
stat("./mbox", {st_mode=S_IFREG|0644, st_size=268196, ...}) = 0
fstat(0, {st_mode=S_IFREG|0644, st_size=268196, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac3bace8000
read(0, "From <> Thu Sep 21 19:56:08 2006"..., 8192) = 8192
[complete mail in that style here]
I cannot find any errors after that though - tell me if you want the whole
strace output.
BTW exit code after piping my mbox into getmail is 0.

------- Comment #9 From Andrej Kacian (RETIRED) 2006-10-14 11:33:43 0000 -------
Check `man getmail_mbox` - it is supposed to read from stdin.

------- Comment #10 From Christoph Mende 2006-10-14 11:52:55 0000 -------
/me gets himself a really, really big cup of RTFM.
Everything works as expected (looks like at least), mbox is created in proper
format, Maildir is filled in proper way - just a sidenot, maybe getmail_maildir
should create $maildir/(cur|new|tmp) if they don't exist. Tried 4.6.3 and .4 in
case you want to wait the 30 days for .4, they both work, someone get me an
amd64 dev to mark it stable :P

PS: Still ashamed, took a look at the manp age, but only looked for the
synopsis, which said "getmail_mbox [OPTION] PATH", whereas I expected it to be
"getmail_mbox [OPTION] PATH < FILE" :/
PPS: Alpha is kinda understaffed, huh?

------- Comment #11 From Steve Dibb 2006-10-31 20:05:25 0000 -------
amd64 ... late, but worth the wait

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug