View previous topic :: View next topic |
Author |
Message |
Spart n00b
Joined: 26 May 2004 Posts: 10
|
Posted: Wed May 26, 2004 5:53 pm Post subject: emerge php fails after [PEAR] Net_SMTP... [SOLVED] |
|
|
I can't seem to get php installed. It looks like it compiles correctly but fails near the end where it installs PEAR stuff.
The last line is
[PEAR] Net_SMTP [1.x.x installed] (/ i forget the exact version number)
If I send a term signal C-c quick enough the system won't hang, but if I leave it for a few minutes the who system freezes. If I do a ctrl+c successfully, but then try to emerge php without restarting, it leads to an immediate system hang/crash.
This is really quite frustrating. I had this all working for a year or so, but had to re-install due to my filesystem dying on me... php is the last thing I need to have installed before I can tar and save my /.
I'd appreciate any help, thx.
note:
USE = "-java"
Here's the last bit of output:
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
>>> Install php-4.3.6 into /var/tmp/portage/php-4.3.6/image/ category dev-php
Installing PHP CLI binary: /var/tmp/portage/php-4.3.6/image//usr/bin/
Installing PHP CLI man page: /var/tmp/portage/php-4.3.6/image//usr/share/man/man1/
Installing PEAR environment: /var/tmp/portage/php-4.3.6/image//usr/lib/php/[PEAR] Archive_Tar - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR - installed: 1.3.1
Wrote PEAR system config file at: /var/tmp/portage/php-4.3.6/image///etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path
[PEAR] DB - installed: 1.6.2
[PEAR] HTTP - installed: 1.2.2
[PEAR] Mail - installed: 1.1.3
[PEAR] Net_SMTP - installed: 1.2.3
--- Hangs here ---
Edit, new Solution:
Well, I got tired of not having php installed so I went ahead and figured out a workaround.
1. mv /var/tmp to /var/tmp.backup
2. format swap partition as ext2
3. mount new ext2 partiton as /var/tmp
4. emerge php
5. put things back to the way they were before step 1.
Works!
Last edited by Spart on Mon May 31, 2004 2:18 am; edited 1 time in total |
|
Back to top |
|
|
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Thu May 27, 2004 1:38 am Post subject: Re: emerge php fails after [PEAR] Net_SMTP. Causes system h |
|
|
Spart wrote: | I can't seem to get php installed. It looks like it compiles correctly but fails near the end where it installs PEAR stuff.
The last line is
[PEAR] Net_SMTP [1.x.x installed] (/ i forget the exact version number)
If I send a term signal C-c quick enough the system won't hang, but if I leave it for a few minutes the who system freezes. If I do a ctrl+c successfully, but then try to emerge php without restarting, it leads to an immediate system hang/crash.
This is really quite frustrating. I had this all working for a year or so, but had to re-install due to my filesystem dying on me... php is the last thing I need to have installed before I can tar and save my /.
I'd appreciate any help, thx.
note:
USE = "-java"
Here's the last bit of output:
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
>>> Install php-4.3.6 into /var/tmp/portage/php-4.3.6/image/ category dev-php
Installing PHP CLI binary: /var/tmp/portage/php-4.3.6/image//usr/bin/
Installing PHP CLI man page: /var/tmp/portage/php-4.3.6/image//usr/share/man/man1/
Installing PEAR environment: /var/tmp/portage/php-4.3.6/image//usr/lib/php/[PEAR] Archive_Tar - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR - installed: 1.3.1
Wrote PEAR system config file at: /var/tmp/portage/php-4.3.6/image///etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path
[PEAR] DB - installed: 1.6.2
[PEAR] HTTP - installed: 1.2.2
[PEAR] Mail - installed: 1.1.3
[PEAR] Net_SMTP - installed: 1.2.3
--- Hangs here --- |
Im having the excact same problem... i tried to emerge all the php ebuild that are avaliable but all of them do the same!
HERE MY make.conf
# These settings were set by the catalyst build script that automatically built this stage
CFLAGS="-march=pentium4 -Os -funroll-loops -pipe -mfpmath=sse,387 -ffast-math -msse2 -mmmx -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
USE="3dnow aalib acpi adns aim alsa apache2 apm arts atlas audiofile avi berkdb bidi bonobo caps cdr cjk crypt cscope cups culr dedicated dga doc dvb dvd emacs emacs-w3 encode esd ethereal evo fastcgi fbcon firebird flac flash foomaticdb freetds gb gd gdbm ggi gif ginac gmp -gnome gphoto2 gpm gstreamer gtk2 gtkhtml guile hardened icq imap imagemagick imlib innodb informix jabber jack java jikes jpeg junit kde kerberos -krb4 ladca lcms ldap leim libg++ libgda libwww mad maildir mbox mcal mikmod memlimit mmx motif lesstif mozilla mpeg mpi msn mule mysql nas ncurses nls odbc offensive oggvorbis opengl oscar oss pam pda ppds pdflib perl plotutils png prelude python qt quicktime readline ruby samba scanner sdl slang slp snmp speex spell sse ssl sqlite svga tcltk tcpd tetex theora tiff truetype trusted unicode usb vhost videos wmf wxwindows X Xaw3d xml2 xmms xv yahoo yaz zeo zlib x86"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo http://gentoo.ccccom.com ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://mirror.datapipe.net/gentoo" |
|
Back to top |
|
|
robmoss Retired Dev
Joined: 27 May 2003 Posts: 2634 Location: Jesus College, Oxford
|
|
Back to top |
|
|
Spart n00b
Joined: 26 May 2004 Posts: 10
|
Posted: Thu May 27, 2004 2:11 am Post subject: |
|
|
robmoss2k wrote: | Do you get the same with:
Code: | CFLAGS="" CXXFLAGS="" emerge php |
|
System hangs at the same spot. I'd tried less aggressive CFLAGS options thinking that that might be the problem but... nope.
I also tried the php-5.0.betaX ebuild which also resulted in a system hang. It's actually pretty wierd to describe, b/c the whole computer doesn't hang but I can't sigterm out of the console running the failed emerge. But the system behaves odd afterwards - can't reboot (need to hard-reboot (Hardware)), etc. |
|
Back to top |
|
|
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Thu May 27, 2004 3:03 am Post subject: |
|
|
Spart wrote: | robmoss2k wrote: | Do you get the same with:
Code: | CFLAGS="" CXXFLAGS="" emerge php |
|
System hangs at the same spot. I'd tried less aggressive CFLAGS options thinking that that might be the problem but... nope.
I also tried the php-5.0.betaX ebuild which also resulted in a system hang. It's actually pretty wierd to describe, b/c the whole computer doesn't hang but I can't sigterm out of the console running the failed emerge. But the system behaves odd afterwards - can't reboot (need to hard-reboot (Hardware)), etc. |
Same problems here... this time i had to emerge baselayout in order for the runlevels to work fine.. dont know what couses..
Reier4 by the way..
NOTE: IF YOU PLAN TO REMERGE BASELAYOUT..
BACKUP YOUR.. MAKE.CONF RC.CONF NET.CONF FSTAB.. ETC |
|
Back to top |
|
|
Spart n00b
Joined: 26 May 2004 Posts: 10
|
Posted: Thu May 27, 2004 6:40 am Post subject: |
|
|
RedDawn wrote: |
Reier4 by the way.. |
Me too, php worked no problem with everything else the same but reiserfs3, I've just moved over to a fresh re-install on a reiser4 FS and... well, all of the above. |
|
Back to top |
|
|
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Thu May 27, 2004 10:35 pm Post subject: |
|
|
116 Views..
Bump... |
|
Back to top |
|
|
Spart n00b
Joined: 26 May 2004 Posts: 10
|
Posted: Fri May 28, 2004 4:09 am Post subject: |
|
|
Ok, I really think this is a reiser4 problem. I mean, the freeze happens during th install (not compile) so ...
I'm almost tempted to move everything onto an ext2 fs, emerge php, then move back to reiser4.
Anyone have any other ideas? |
|
Back to top |
|
|
Spart n00b
Joined: 26 May 2004 Posts: 10
|
Posted: Sun May 30, 2004 11:59 pm Post subject: |
|
|
I hate to bump, but I've really run out of ideas here. Anyone solved this or have any suggestions? |
|
Back to top |
|
|
DarwinianCoeus Tux's lil' helper
Joined: 29 Sep 2003 Posts: 98 Location: Potsdam, NY
|
Posted: Mon May 31, 2004 12:46 am Post subject: |
|
|
I can almost certainly say that this is a reiser4 problem, as I have had the same problem, and everyone else I talked to with the same problem was running reiser4 as well. _________________ karma++; |
|
Back to top |
|
|
Spart n00b
Joined: 26 May 2004 Posts: 10
|
Posted: Mon May 31, 2004 2:19 am Post subject: |
|
|
Posting so this will bump the thread for others experiencing this problem.
Well, I got tired of not having php installed so I went ahead and made out a workaround.
1. mv /var/tmp to /var/tmp.backup
2. format swap partition as ext2
3. mount new ext2 partiton as /var/tmp
4. emerge php
5. put things back to the way they were before step 1.
Works! |
|
Back to top |
|
|
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
|
Back to top |
|
|
Ethereal n00b
Joined: 19 Mar 2003 Posts: 38 Location: Russia, Moscow
|
Posted: Tue Jun 01, 2004 11:36 am Post subject: |
|
|
has anybody posted bugreport to namesys ? |
|
Back to top |
|
|
Spart n00b
Joined: 26 May 2004 Posts: 10
|
Posted: Tue Jun 01, 2004 9:24 pm Post subject: |
|
|
Ethereal wrote: | has anybody posted bugreport to namesys ? |
Yep |
|
Back to top |
|
|
dvang n00b
Joined: 19 May 2004 Posts: 25
|
Posted: Tue Jun 01, 2004 10:47 pm Post subject: |
|
|
Spart wrote: | Posting so this will bump the thread for others experiencing this problem.
Well, I got tired of not having php installed so I went ahead and made out a workaround.
1. mv /var/tmp to /var/tmp.backup
2. format swap partition as ext2
3. mount new ext2 partiton as /var/tmp
4. emerge php
5. put things back to the way they were before step 1.
Works! |
Doing all of this is not necessary, and probably isn't safe if the swap partition is currently being used.
The following should be much simpler:
1. make a large enough sized file for emerge php to use (this file can be on a reiser4 filesystem)
Code: | dd if=/dev/zero of=/root/portage.ext2 bs=1M count=128 |
2. format the file using ext2 filesystem
Code: | mkfs.ext2 /root/portage.ext2 |
3. mount it using loop device to /var/tmp/portage (modprobe loop first if you don't have loop built in or already loaded)
Code: | mount -o loop /root/portage.ext2 /var/tmp/portage |
4. emerge php
5. umount the ext2 filesystem we were using
Code: | umount /var/tmp/portage |
Then you're all set, and everything in /var/tmp/portage is back to normal as it was before emerging php |
|
Back to top |
|
|
Spart n00b
Joined: 26 May 2004 Posts: 10
|
Posted: Wed Jun 02, 2004 2:24 am Post subject: |
|
|
dvang: That was very cool, thanks for the tip. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sat Jun 26, 2004 6:00 am Post subject: |
|
|
That was damn cleaver.
and it worked. PHP now uptodate. I never cease to be amased at what you can do with Linux.
Any idea why that cleaver little trick was necessary?
I should add that I was having emerge PHP drop out exactly as the original post indicated but with none of the lockup or other bad behaviour. Just the emerge failure.
I am running 2.6.6-love4 kernel with PORTAGE_TMPDIR on an R4 partition.
I seems that more recent kernels have more problems with r4 which is why I am still on 2.6.6
In contrast I rebuilt glibc yesterday without problems so it does not seem to be simply r4 flaking-out under heavy load.
Thanks to all concerned. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
drakos7 Apprentice
Joined: 21 Feb 2003 Posts: 294 Location: Rockville, MD, USA, Earth, Sol
|
Posted: Tue Sep 28, 2004 8:59 pm Post subject: |
|
|
dvang is the man. Thank you for this brilliant idea. Makes me wish I had some extra partition space to make /var/tmp/portage on a ext2! |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue Sep 28, 2004 9:48 pm Post subject: |
|
|
You cant find 128 megs somewhere? Time to by yourself a disk.
Try deleting PORTAGE_TMPDIR and make sure you dont have some old kernel sources somewhere , they are HUGE.
I'm not even sure from your post that you have understood what was suggested. Read it again.
If I'm mistaken , sincere appologies, please dont feel insulted.
_________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
tecknojunky Veteran
Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Wed Oct 06, 2004 7:27 pm Post subject: |
|
|
Hi,
Guess what? I have reiser4
Lucky me, I'm configuring a brand new 160 GB on which (of course) I installed LVM. My root fs is only 20GB.
I don't want to bitch, but I have 140GB to spare for the hack shown here. Do I have enough?
Anyhow, I did not tried it yet, but seing the ammount of positive feedback, I'm pretty sure it will work. I just wanted to thank everyone who had the problem to 1- diagnose the cause, and 2- found a work around.
You guys are great.
EDIT:
Code: | # lvcreate -ntemp -L200M <VolumeGroupName>
# mke2fs /dev/<VolumeGroupName>/temp
# mount --bind /dev/<VolumeGroupName>/temp /var/tmp/portage
# emerge php
# umount /var/tmp/portage
# lvremove <VolumeGroupName>/temp |
Voilà _________________ (7 of 9) Installing star-trek/species-8.4.7.2::talax. |
|
Back to top |
|
|
cpdsaorg Guru
Joined: 16 Oct 2003 Posts: 359
|
Posted: Tue Nov 02, 2004 12:35 am Post subject: |
|
|
I have reiser 4 too. thanks guys for the awsome workaround _________________ PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB |
|
Back to top |
|
|
justanothergentoofanatic Guru
Joined: 29 Feb 2004 Posts: 337
|
Posted: Wed Nov 24, 2004 8:31 pm Post subject: |
|
|
Strange...I too use reiserfs4 and suffered from the very same problem. The workaround was perfect, though. Thanks!
-Mike |
|
Back to top |
|
|
Mazumoto n00b
Joined: 28 Apr 2004 Posts: 25
|
Posted: Thu Dec 02, 2004 2:20 pm Post subject: |
|
|
This bug is still there in mm-sources-2.6.10-rc2-mm3 and mm-sources-2.6.10-rc2-mm4. This is the output at the end of the php-emerge:
Code: | Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
>>> Test phase [not enabled]: dev-php/php-4.3.9
>>> Install php-4.3.9 into /var/tmp/portage/php-4.3.9/image/ category dev-php
Installing PHP CLI binary: /var/tmp/portage/php-4.3.9/image//ust/bin/
Installing PHP CLI man page: /var/tmp/portage/php-4.3.9/image//usr/share/man/man1/
Installing shared extensions:
/var/tmp/portage/php-4.3.9/imgae//usr/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /var/tmp/portage/php-4.3.9/image//usr/lib/php/
[PEAR] Archive_Tar - installed: 1.1
--------[cut here]--------
kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:58!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: ipv6 snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device rtc
pcspkr yenta_socket pcmcia_core eepro100 ohci1394 ieee1394 snd_intel8x0 snd_ac97_codec snd_pcm snd_timer snd
soundcore snd_page_alloc
CPU: 0
EIP: 0060:[<c020e94f>] Not tainted VLI
EFLAGS: 00010282 (2.6.10-rc2-mm4)
EIP is at get_nonexclusive_access+0x28/0x32
eax: d45ddf1c ebx: d6020930 ecx: df61be80 edx: d60208d8
esi: d6020900 edi: d60208d8 ebp: c17a46a4 esp: d45ddc7c
ds: 007b es: 007b ss: 0068
Process php (pid: 32229, threadinfo=d45dc000 task=de6a9020)
Stack: c020d641 d60208d8 dfc44c00 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Call Trace:
[<c020d641>] unix_file_filemap_nopage+0x67/0xcd
[<c01e6b34>] update_sd+0x85/0x9b
[<c020d5da>] unix_file_filemap_nopage+0x0/0xcd
[<c0147466>] do_no_page+0xda/0x39b
[<c01d87a8>] dscale_fit+0x2e/0x3e
[<c0147a0d>] handle_mm_fault+0x1c7/0x1f9
[<c0145c41>] follow_page+0x27/0x2b
[<c0145ddd>] get_user_pages+0x165/0x3e2
[<c020cb3e>] reiser4_get_user_pages+0x9a/0xbf
[<c020db96>] write_unix_file+0x305/0x457
[<c01c7b65>] init_context+0x75/0xb4
[<c01e0239>] reiser4_write+0x8f/0xf8
[<c01e01aa>] reiser4_write+0x0/0xf8
[<c0157613>] vfs_write+0xdb/0x180
[<c0157789>] sys_write+0x51/0x80
[<c0102635>] sysenter_past_esp+0x52/0x71
Code: 00 00 c3 b8 00 e0 ff ff 21 e0 8b 00 8b 80 b8 04 00 00 8b 54 24 04 8b 40 3c 8b 48 08 85 c9 75 0b 89 d0 ff
00 0f 88 af 11 00 00 c3 <0f> 0b 3a 00 d0 80 36 c0 eb eb 8b 44 24 04 ba ff ff ff ff 0f c1
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2
!!! ERROR: dev-php/php-4.3.9 failed.
!!! Function php-sapi_src_install, Line 525, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message. |
and after some time (doing nothing) I got this at the console:
Code: | <1>Unable to handle kernel NULL pointer dereference at virtual adress 00000105
printing eip:
c01872c0
*pde = 00000000
Oops: 0000 [#2]
PREEMPT
Modules linked in: ipv6 snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device rtc
pcspkr yenta_socket pcmcia_core eepro100 ohci1394 ieee1394 snd_intel8x0 snd_ac97_codec snd_pcm snd_timer snd
soundcore snd_page_alloc
CPU: 0
EIP: 0060:[<c01872c0>] Not tainted VLI
EFLAGS: 00010213 (2.6.10-rc2-mm4)
EIP is at dnotify_parent+0x38/0xc4
eax: 00000001 ebx: dfc3f0f4 ecx: 00000001 edx: d45dc000
esi: 00000020 edi: daaa7330 ebp: d45ddf34 esp: d45ddef0
ds: 007b es:007b ss: 0068
Process touch (pid:32297, threadinfo=d45dc000 task=df89a540)
Stack: 00000000 00000070 00000000 00000070 c0173cb7 df61bf10 00000020 41af0619
00000000 fffffff3 daaa7330 d45ddf74 d45dc000 c0155be8 df61bf10 d45ddf34
d45ddf2c 00000070 00030002 00000000 00000000 daaa7330 c0227f6a 41af0619
Call Trace:
[<c0173cb7>] notify_change+0x182/0x1db
[<c0155be8>] sys_utime+0xe3/0x157
[<c0227f6a>] _atomic_dec_and_lock+0x2e/0x74
[<c0158590>] __fput+0xeb/0x18d
[<c0156b8b>] sys_close+0x74/0xbf
[<c0102635>] sysenter_past_esp+0x52/0x71
Code: 74 24 0c 85 c0 8b 5c 24 14 8b 74 24 18 75 0c 8b 5c 24 08 8b 74 24 0c 83 c4 10 c3 b8 01 00 00 00 e8 de c6
f8 ff 8b 5b 0c 8b 43 08 <85> b0 04 01 00 00 74 47 85 db 74 08 8b 03 85 c0 74 70 ff 03 b8
<6>note: touch[32297] exited with preempt_count 1
scheduling while atomic: touch/0x10000001/32297
[<c034949a>] schedule+0x488/0x538
[<c0349a22>] cond_resched+0x2a/0x46
[<c0145a5b>] unmap_vmas+0x20f/0x255
[<c014a87d>] exit_mmap+0x83/0x167
[<c0114ec5>] mmput+0x51/0x104
[<c0119a8f>] do_exit+0x18b/0x54b
[<c0111ac1>] do_page_fault+0x0/0x5ef
[<c0103871>] do_trap+0x0/0x11d
[<c0111ac1>] do_page_fault+0x0/0x5ef
[<c01177b3>] printk+0x17/0x1b
[<c0111eb0>] do_page_fault+0x3ef/0x5ef
[<c01cac07>] txn_end+0x40/0x44
[<c01c7ca4>] done_context+0x47/0x72
[<c01df864>] reiser4_setattr+0x7a/0xe1
[<c0111ac1>] do_page_fault+0x0/0x5ef
[<c01030e3>] error_code+0x2b/0x30
[<c01872c0>] dnotify_parent+0x38/0xc4
[<c0173cb7>] notify_change+0x182/0x1db
[<c0155be8>] sys_utime+0xe3/0x157
[<c0227f6a>] _atomic_dev_and_lock+0x2e/0x74
[<c0158590>] __fput+0xeb/0x18d
[<c0156b8b>] sys_close+0x74/0xbf
[<c0102635>] syscenter_past_esp+0x52/0x71 |
I could use the system after that.
Anything new about the bug/bugreport from namesys ?
Should I post the logs somewhere ?
Greetings,
mazumoto. |
|
Back to top |
|
|
priapus n00b
Joined: 04 Oct 2007 Posts: 3
|
Posted: Sat Oct 06, 2007 5:22 am Post subject: |
|
|
Has this bug been fixed yet? |
|
Back to top |
|
|
|