Skip to contentSkip to conversation

FYI, php compile bug is rc1-mm2 correlated, not reiser4 correlated, and not rc2-mm2 correlated

DISCUSSION Hans Reiser 1 participant 1 message Nov 23, 2004

lore
Share & tools
lore
#0 lore raw

(to be not lost)
This was send to Kai Lippok and cc-ed to reiserfs-dev, but it was reterned by thebsh due to long size.

Quoted 292 lines · E.Gryaznova

Hello.

My investigation shows that php-5.0.2 can not be installed both on reiser4 and ext2 if current kernel is 2.6.10-rc1-mm2. Both ext2 and reiser4 fail with the same emerge messages (like you have) :

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Test phase [not enabled]: dev-php/php-5.0.2

Install php-5.0.2 into /var/tmp/portage/php-5.0.2/image/ category

dev-php

Installing PHP SAPI module:       embed
Installing PHP CLI binary:        /var/tmp/portage/php-5.0.2/image//usr/bin/
Installing PHP CLI man page:      /var/tmp/portage/php-5.0.2/image//usr/share/man/man1/
Installing PEAR environment:      /var/tmp/portage/php-5.0.2/image//usr/lib/php/

Could not startup.
*** glibc detected *** double free or corruption (!prev): 0x081e5178 *** make[1]: *** [install-pear-installer] Aborted
make: *** [install-pear] Error 2

!!! ERROR: dev-php/php-5.0.2 failed.
!!! Function php5-sapi_src_install, Line 439, Exitcode 2
!!! install failed
!!! If you need support, post the topmost build error, NOT this status message.
----

BUT: this package php-5.0.2 can be succesfully installed on reiser4 if current kernel is 2.6.10-rc2-mm2 :

1. KERNEL : 2.6.10-rc2-mm2
------------------------------------

# uname -rv
2.6.10-rc2-mm2 #1 SMP Tue Nov 23 05:57:20 MSK 2004
(reiser4 debug ON)

# ACCEPT_KEYWORDS="~x86" emerge "=php-5.0.2"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

dev-php/php-5.0.2 merged.

clean: No packages selected for removal.

Auto-cleaning packages ...

No outdated packages were found on your system.

* Regenerating GNU info directory index...
* Processed 103 info files.
* IMPORTANT: 6 config files in /etc need updating.
* Type emerge --help config to learn how to update config files.

# qpkg -I -v -nc | grep 'libc'
sys-libs/glibc-2.3.4.20041102
# qpkg -I -v -nc | grep 'gcc'
sys-devel/gcc-3.3.4-r2
sys-devel/gcc-config-1.3.7-r1
sys-devel/gcc-3.4.3
# qpkg -I -v -nc | grep 'php'
dev-php/php-5.0.2
# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/specs
Configured with: /var/tmp/portage/gcc-3.3.4-r2/work/gcc-3.3.4/configure --prefix=/usr 
--bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.3 
--includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include 
--datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3 
--mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/man 
--infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info 
--enable-shared --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu 
--with-system-zlib --enable-languages=c,c++ --enable-threads=posix 
--enable-long-long --disable-checking --disable-libunwind-exceptions 
--enable-cstdio=stdio --enable-version-specific-runtime-libs 
--with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include/g++-v3 
--with-local-prefix=/usr/local --enable-shared --disable-nls 
--disable-multilib --enable-__cxa_atexit --enable-clocale=generic
Thread model: posix
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r2, ssp-3.3.2-2, pie-8.7.6)

The next unmerging/merging do not fail too :

# emerge  unmerge php
ok
# ACCEPT_KEYWORDS="~x86" emerge -p "=php-5.0.2"

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild N ] dev-php/php-5.0.2

# ACCEPT_KEYWORDS="~x86" emerge "=php-5.0.2"

# qpkg -I -v -nc | grep 'php'
dev-php/php-5.0.2
=================================================

2. KERNEL 2.6.10-rc1-mm2

# uname -rv
2.6.10-rc1-mm2 #2 SMP Tue Nov 23 02:07:11 MSK 2004

# ACCEPT_KEYWORDS="~x86" emerge "=php-5.0.2"
...
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Test phase [not enabled]: dev-php/php-5.0.2

Install php-5.0.2 into /var/tmp/portage/php-5.0.2/image/ category

dev-php

Installing PHP SAPI module:       embed
Installing PHP CLI binary:        /var/tmp/portage/php-5.0.2/image//usr/bin/
Installing PHP CLI man page:      /var/tmp/portage/php-5.0.2/image//usr/share/man/man1/
Installing PEAR environment:      /var/tmp/portage/php-5.0.2/image//usr/lib/php/

Fatal error: Maximum execution time of 0 seconds exceeded in Unknown on line 0 make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2

!!! ERROR: dev-php/php-5.0.2 failed.
!!! Function php5-sapi_src_install, Line 439, Exitcode 2
!!! install failed
!!! If you need support, post the topmost build error, NOT this status message.

======================================================

So, I think that this is not reiser4 problem (because this is reproducible on ext2 too) and I propose you to try 2.6.10-rc2-mm2.

Please let me know if you will fail on installing php over 2.6.10-rc2-mm2 kernel on reiser4

Thanks,
Lena.

PS: while merging php-5.0.2 fails on reiser4 (-rc1-mm2 kernel) -- there are nothing on my kernel logs.

Quoted 154 lines · Kai Lippok

Please see the attachment.

Its 01:00 now and I am going to bed ;)

Quoted 148 lines · E.Gryaznova

is there some reiser4 debug info in kernel logs? if yes -- would you please send ?

Thanks,
Lena

Quoted 140 lines · Kai Lippok

Hi,

I am sorry to tell you that this does not fix the problem. See attached log. But emerging goes a few bits further now.

Quoted 134 lines · E.Gryaznova

Hello again.

Would you please try this patch?

# cd fs/reiser4
# cat reiser4_write-add-access_ok-3.diff | patch -p1

Thanks,
Lena.

Quoted 122 lines · E.Gryaznova

Hello, again.

Ok, thank you for your work.
Finally I've reproduced reiser4 Oops on emerging (glibc-2.3.4.20041102 package). I do not know if this the same what you have (you did not send me your logs), but the problem exists and we will fix it.

Thanks,
Lena

Quoted 112 lines · Kai Lippok

I have rebuild gcc and glibc with CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" and CXXFLAGS="${CFLAGS}".

The same error occurs again. The qpkg result is attached.

Quoted 105 lines · E.Gryaznova

Hello.

1. Would you please send me output

# qpkg -I -v -nc

2. did you try to build gcc 3.3.4-rc2 with default CFLAGS and then to build php with defailt CFLAGS? ( There is the citation from make.conf # Please note that if you experience strange issues with a package, it may be

# due to gcc's optimizations interacting in a strange way. Please test the
# package (and in some cases the libraries it uses) at default optimizations
# before reporting errors to developers.
)

3. Were anything usefull in logs?

Thanks,
Lena

Quoted 85 lines · Kai Lippok

I switched to kernel 2.6.10-rc2-mm and to an older gcc (3.3.4-r2) and tried to compile php5. Same error again. This time I compiled via ssh so I can send a log. The kernel-messages are not send through ssh, but you can see clearly where it hangs. Hope this helps.

Quoted 81 lines · E.Gryaznova
Quoted 3 lines · Kai Lippok

Puh,

indeed. I tried the current flags before bootstrapping but some CFLAGS/CXXFLAGS do not work with the old gcc, so I've removed them. I do not exactly remember which one (can look when I am at home). But I am sure that I have recompiled at least gcc with all these new flags after bootstrapping. Do you think that my selection of CFLAGS is problematic?

yes, it is possible. If you have a time for experiments, you would try to build gcc, etc. with default options and look is this problem reproducible in this case. I could do this by myself, but I need the list of flags you've used.

Thanks,
Lena.

Quoted 60 lines

I am not so familiar with these settings - just followed a speed-up guide on gentoo forums.

Normally I can connect via ssh to my server at home. Currently its not available. My feeling says its reiser4 ;-) Damn...

Quoted 53 lines · E.Gryaznova
Quoted 2 lines · Kai Lippok

No problem. But isn't reiser4 part of the kernel and so the
CFLAGS/CXXFLAGS aren't used!?

You said that you used stage 1. Did you change make.conf before bootstrap or after it?
I am not familar with Gentoo. I just want to reproduce reiser4 bug and your help is very appritiated for me. If make.conf was changed before bootstrap -- this means that glibc, gcc, etc. were built with not default CFLAGS.

Thanks
Lena.

Quoted 30 lines

I am using development-kernel-2.6.10-rc1 (vanilla) with the reiser4
patch from your server.

Thanks for the work!

E.Gryaznova schrieb:

Hello,
would you please send me your ./etc/make.conf ?

Thanks,
Lena

Kai Lippok wrote:

Hi,

i am sorry to give you such a bad bug-report, but I cannot write to harddisc at the moment the error occurs, so I decided to take a picture of my screen.

The following happens when compiling php-5.0.2 on gentoo 2004.2 with kernel 2.6.10-rc1. My hardware is a Celeron 2GHz with 512 MB RAM

This is my first reiser4 setup and I am a bit confused now as it is marked stable.

Thx,
--
Kai Lippok [email protected]
MCDBA / gentoo linux

[skipped]
[skipped]

Quoted 81 lines
Quoted 79 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines

----------------------------------------------------------------------

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

Quoted 13 lines
Quoted 10 lines
Quoted 2 lines

Test phase [not enabled]: dev-php/php-5.0.2-r1

Quoted 10 lines
Quoted 10 lines
Quoted 2 lines

Install php-5.0.2-r1 into /var/tmp/portage/php-5.0.2-r1/image/ category dev-php

Installing PHP SAPI module:       embed
Installing PHP CLI binary:        /var/tmp/portage/php-5.0.2-r1/image//usr/bin/
Installing PHP CLI man page:      /var/tmp/portage/php-5.0.2-r1/image//usr/share/man/man1/
Installing shared extensions:     /var/tmp/portage/php-5.0.2-r1/image//usr/lib/php/extensions/no-debug-non-zts-20040412/ 

Installing PEAR environment: /var/tmp/portage/php-5.0.2-r1/image//usr/lib/php/
[PEAR] Archive_Tar - installed: 1.1
make[1]: *** [install-pear-installer] Speicherzugriffsfehler
make: *** [install-pear] Fehler 2

!!! ERROR: dev-php/php-5.0.2-r1 failed.
!!! Function php5-sapi_src_install, Line 439, Exitcode 2
!!! install failed
!!! If you need support, post the topmost build error, NOT this status message.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

hh-kl-srv1 gcc # sync

------------------------------------------------------------------------

------------[ cut here ]------------
kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:32!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: ip_nat_ftp ip_conntrack_ftp ppp_synctty ppp_async crc_ccitt nfsd exportfs lockd sunrpc capi capifs capability commoncap sha1 md5 des arc4 ip_gre ppp_mppe_mppc fcpci kernelcapi usbhid uhci_hcd usbcore ppp_generic slhc 3c59x 8139too msr cpuid ntfs vfat msdos fat fan button ac
CPU:    0
EIP:    0060:[<c01cb12e>]    Tainted: P      VLI
EFLAGS: 00010282   (2.6.10-rc1)

EIP is at get_exclusive_access+0x2e/0x38
eax: df23e380 ebx: 00000000 ecx: d17e5d58 edx: 00000000
esi: 00000000 edi: d17e5d58 ebp: d17e5d64 esp: d62f9e0c
ds: 007b es: 007b ss: 0068
Process php (pid: 21163, threadinfo=d62f8000 task=d7633590)

Stack: c01ca3c5 00000001 d62f9e4c 0000003c 00000000 d194e430 d62f8000 d194e430
      00000001 00000001 00000d05 00000000 00000001 d17e5db0 b703f000 
d3663980
      00000d05 00000d05 c126c7e0 d62f9d34 d2f10780 00000000 00000000 
001e7b3c
Call Trace:
[<c01ca3c5>] write_unix_file+0x1ae/0x3f7
[<c01a2910>] reiser4_write+0x79/0xce
[<c0150c87>] vfs_write+0xcd/0x126
[<c0150d8b>] sys_write+0x41/0x6a
[<c0105f1b>] syscall_call+0x7/0xb
Code: 00 e0 ff ff 21 e0 8b 00 8b 80 b8 04 00 00 8b 40 3c 8b 40 08 85 c0 75 13 ba 01 00 ff ff 89 c8 0f c1 10 85 d2 0f 85 b0 0f 00 00 c3 <0f> 0b 20 00 84 d0 30 c0 eb e3 ba ff ff 00 00 0f c1 10 0f 85 a3