public inbox for gentoo-sparc@lists.gentoo.org
 help / color / mirror / Atom feed
* RE: [gentoo-sparc] PHP crashing...
@ 2006-03-14 23:33 Leif Sawyer
  2006-03-14 23:42 ` Paul Heinlein
  0 siblings, 1 reply; 15+ messages in thread
From: Leif Sawyer @ 2006-03-14 23:33 UTC (permalink / raw
  To: gentoo-sparc

[-- Attachment #1: Type: text/plain, Size: 2523 bytes --]

Replying to myself yet again:
> On Monday, March 13, 2006 9:31 AM, I wrote:
> > 
> > emerge --version
> > 	Portage 2.1_pre5-r4 (default-linux/sparc/sparc64/2005.0,
> > 		gcc-3.3.6, glibc-2.3.3.20040420-r2, 2.6.12.3 sparc64)
> > 
> > 
> > Hmm.. this isn't right.  Looks like one of the crashes munged up my 
> > conversion to 2006.0
> > 
> > I'm going to clean up my profile and re-emerge the system 
> stuff to see 
> > if it is a partial emerge issue that's causing this.
> 
> Think I found some of the cause -- my gcc environment was a 
> little snarfy.
> gcc32 was pointing to 3.3.6, and gcc64 was pointing to 3.4.5.
> re-ran gcc-config to force rebuilding the config files and 
> default everything to 3.4.5 and am revdep rebuilding right now.
> 
> hopefully this will cure the php issue.
> 

Damn:

# USE="hardened nptlonly" nice emerge  glibc

CPP='sparc-unknown-linux-gnu-gcc -E -x c-header'
/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-n
ptl/elf/ld-linux.so.2 --library-path
/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-n
ptl:/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-g
nu-nptl/math:/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknow
n-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-spar
c-unknown-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.3.6-r3/work/build-sp
arc32-sparc-unknown-linux-gnu-nptl/nss:/var/tmp/portage/glibc-2.3.6-r3/work/
build-sparc32-sparc-unknown-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.3.6-
r3/work/build-sparc32-sparc-unknown-linux-gnu-nptl/rt:/var/tmp/portage/glibc
-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-nptl/resolv:/var/tmp/po
rtage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-nptl/crypt:/
var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-np
tl/nptl
/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-n
ptl/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o
/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-n
ptl/sunrpc/xbootparam_prot.T
make[2]: ***
[/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-
nptl/sunrpc/xbootparam_prot.stmp] Segmentation fault
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory
`/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6'
make: *** [all] Error 2


I'm slowly begging to feel overwhelmed..

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3115 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [gentoo-sparc] PHP crashing...
@ 2006-03-16 19:09 Leif Sawyer
  0 siblings, 0 replies; 15+ messages in thread
From: Leif Sawyer @ 2006-03-16 19:09 UTC (permalink / raw
  To: gentoo-sparc

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

Gustavo Zacarias, in a couple of messages wrote:
> In theory you can use hardened without a profile, but it's 
> usually tricky. In the SPARC case last time we tried it 
> required the "boundschecking" USE flag on (gcc uses it so you 
> need to rebuild).
> /--------/
> Hello, "boundschecking", hello... you are not reading the
> thread in its complete form...
> /--------/


You know, it wasn't clear to me before, but having just gone
through the rebuild, it's now clear:

__gcc__  requires a rebuild with boundschecking.


Sorry if I've mitched and boaned trying to get this to work.

Anyhow, I updated /etc/make.conf with boundschecking as hardened
already existed, and re-ran:

     emerge --newuse glibc

which rebuild gcc and glibc in a nice pair.

So I've successfully build glibc 3.4.5.  Phew!

I've only I'd figured out earlier about the gcc rebuild.. D'oh!

Thanks again.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3115 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [gentoo-sparc] PHP crashing...
@ 2006-03-15 19:26 Leif Sawyer
  2006-03-15 19:41 ` Gustavo Zacarias
  0 siblings, 1 reply; 15+ messages in thread
From: Leif Sawyer @ 2006-03-15 19:26 UTC (permalink / raw
  To: gentoo-sparc

[-- Attachment #1: Type: text/plain, Size: 418 bytes --]

Gustavo Zacarias replied
> Leif Sawyer wrote:
> 
> > Hmm.
> > 
> > Even without NPTL enabled, I can't get glibc to build:
> > 
> > wormhole ~ # USE="-nptl" nice emerge --pretend glibc
> 
> Hello, "boundschecking", hello... you are not reading the 
> thread in its complete form...

I'm not running the build as hardend now.

But I'll give it a try anyhow.  Anything to get this fraking
build to complete successfully.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3115 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [gentoo-sparc] PHP crashing...
@ 2006-03-15 19:16 Leif Sawyer
  2006-03-15 19:23 ` Gustavo Zacarias
  0 siblings, 1 reply; 15+ messages in thread
From: Leif Sawyer @ 2006-03-15 19:16 UTC (permalink / raw
  To: gentoo-sparc

[-- Attachment #1: Type: text/plain, Size: 5514 bytes --]

Jason Wever, on 2006-3-14 at 15:59, wrote in response to:
> Paul Heinlein, whom wrote: 
>> Is NPTL ready to go for SPARC? It's lingering in the back 
>> of my head that it's not, but I can't recall exactly why
>> I think that...
> 
> Last I recall seeing it was known to be OK for sparc64 but 
> not for sparc32.
> 

Hmm.

Even without NPTL enabled, I can't get glibc to build:

wormhole ~ # USE="-nptl" nice emerge --pretend glibc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-libs/glibc-2.3.6-r3 [2.3.3.20040420-r2]
USE="glibc-omitfp% -glibc-compat20% -linuxthreads-tls% -nptlonly% -profile%
-userlocales%"


CPP='sparc-unknown-linux-gnu-gcc -E -x c-header'
/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-l
inuxthreads/elf/ld-linux.so.2 --library-path
/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-l
inuxthreads:/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown
-linux-gnu-linuxthreads/math:/var/tmp/portage/glibc-2.3.6-r3/work/build-spar
c32-sparc-unknown-linux-gnu-linuxthreads/elf:/var/tmp/portage/glibc-2.3.6-r3
/work/build-sparc32-sparc-unknown-linux-gnu-linuxthreads/dlfcn:/var/tmp/port
age/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-linuxthreads/n
ss:/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gn
u-linuxthreads/nis:/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-
unknown-linux-gnu-linuxthreads/rt:/var/tmp/portage/glibc-2.3.6-r3/work/build
-sparc32-sparc-unknown-linux-gnu-linuxthreads/resolv:/var/tmp/portage/glibc-
2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-linuxthreads/crypt:/var/
tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-linuxt
hreads/linuxthreads
/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-l
inuxthreads/sunrpc/rpcgen -Y ../scripts -h rpcsvc/bootparam_prot.x -o
/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-l
inuxthreads/sunrpc/rpcsvc/bootparam_prot.T
make[2]: ***
[/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-
linuxthreads/sunrpc/xbootparam_prot.stmp] Segmentation fault
make[2]: *** Waiting for unfinished jobs....
make[2]: ***
[/var/tmp/portage/glibc-2.3.6-r3/work/build-sparc32-sparc-unknown-linux-gnu-
linuxthreads/sunrpc/rpcsvc/bootparam_prot.stmp] Segmentation fault
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory
`/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.6-r3 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile
  glibc-2.3.6-r3.ebuild, line 1251:   Called toolchain-glibc_src_compile


--
wormhole ~ # emerge --info
Portage 2.1_pre6-r2 (default-linux/sparc/sparc64/2006.0, gcc-3.4.5,
glibc-2.3.3.20040420-r2, 2.6.15-gentoo-r3 sparc64)
=================================================================
System uname: 2.6.15-gentoo-r3 sparc64 sun4u
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.3.5, 2.4.2-r1
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-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.6.11-r4
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo
/etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nostrip sandbox sfperms
strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="sparc X Xaw3d aac aalib ao apache2 artswrappersuid asf audiofile
bash-completion berkdb bitmap-fonts bootsplash bzip2 c++ cdparanoia chroot
crypt curl dba dbm dbx dga dlloader dri eds encode esd expat fbcon fbdev
fbsplash ffmpeg firefox flac font-server fontconfig fping ftp gcc64 gd gdbm
ggi gif glibc-omitfp gnome gnutls gpm gstreamer gtk gtk2 id3 idn imlib ipv6
jack jack-tmpfs javascript jpeg jpeg2k kde ldap libwww live lzo mad mbox
mikmod mng motif mp3 mpeg mysql ncurses network nls nocardbus nousb nptl
nsplugin nspr offensive ogg openal opengl oss pam pcntl pcre pdf pear-db
perl php png posix python qt quicktime readline recode rtc sasl sdl sendfile
sensord sharedext sharedmem silc slang sndfile snmp sockets spell ssl sysfs
sysvipc tcltk tcpd threads tiff tls truetype truetype-fonts type1
type1-fonts udev video_cards_sunbw2 video_cards_suncg14 video_cards_suncg3
video_cards_sunffb vorbis xml xmlrpc xmms xpm xscreensaver xsl xv xvid zip
zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS,
LINGUAS


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3115 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [gentoo-sparc] PHP crashing...
@ 2006-03-14 19:08 Leif Sawyer
  0 siblings, 0 replies; 15+ messages in thread
From: Leif Sawyer @ 2006-03-14 19:08 UTC (permalink / raw
  To: gentoo-sparc

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

On Monday, March 13, 2006 9:31 AM, I wrote:
> 
> emerge --version
> 	Portage 2.1_pre5-r4 (default-linux/sparc/sparc64/2005.0,
> 		gcc-3.3.6, glibc-2.3.3.20040420-r2, 2.6.12.3 sparc64)
> 
> 
> Hmm.. this isn't right.  Looks like one of the crashes munged 
> up my conversion to 2006.0
> 
> I'm going to clean up my profile and re-emerge the system 
> stuff to see if it is a partial emerge issue that's causing this.

Think I found some of the cause -- my gcc environment was a little snarfy.
gcc32 was pointing to 3.3.6, and gcc64 was pointing to 3.4.5.
re-ran gcc-config to force rebuilding the config files and default
everything to 3.4.5
and am revdep rebuilding right now.

hopefully this will cure the php issue.


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3115 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [gentoo-sparc] PHP crashing...
@ 2006-03-13 18:31 Leif Sawyer
  0 siblings, 0 replies; 15+ messages in thread
From: Leif Sawyer @ 2006-03-13 18:31 UTC (permalink / raw
  To: gentoo-sparc

[-- Attachment #1: Type: text/plain, Size: 835 bytes --]

Jason Wever replied to me,
> When I wrote:
> > Can anybody help me troubleshoot?
> 
> I may have run into this with php-5.x on a ~sparc box.  Can 
> you provide details on your setup (profile, versions of 
> applicable software in use, output of emerge info)?

You bet.

2x300mhz Usparc-2 (ultra enterprise 2) with 2Gb phys ram
Prom 3.25.0, 2.6.15-r3 kernel, gcc 3.3.6

emerge --version
	Portage 2.1_pre5-r4 (default-linux/sparc/sparc64/2005.0,
		gcc-3.3.6, glibc-2.3.3.20040420-r2, 2.6.12.3 sparc64)


Hmm.. this isn't right.  Looks like one of the crashes munged up my
conversion to 2006.0

I'm going to clean up my profile and re-emerge the system stuff to see
if it is a partial emerge issue that's causing this.

Sometimes, you just need somebody to point you back at the issue
you've been staring at, but with new eyes.

Thanks!

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3115 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [gentoo-sparc] PHP crashing...
@ 2006-03-10  0:46 Leif Sawyer
  2006-03-12 17:57 ` Jason Wever
  0 siblings, 1 reply; 15+ messages in thread
From: Leif Sawyer @ 2006-03-10  0:46 UTC (permalink / raw
  To: gentoo-sparc

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

Is anybody experiencing core dumps with PHP and mysql?

I'm no longer able to run my website due to some bizarre
malloc errors:

#0  0x7064b948 in _int_malloc ()
   from /lib/libc.so.6
(gdb) where
#0  0x7064b948 in _int_malloc () from /lib/libc.so.6
#1  0x7064a69c in malloc () from /lib/libc.so.6
#2  0x7117e520 in my_malloc () from /usr/X11R6/lib/libmysqlclient.so.15
#3  0x711ac43c in vio_new () from /usr/X11R6/lib/libmysqlclient.so.15
#4  0x711a84a0 in mysql_real_connect () from
/usr/X11R6/lib/libmysqlclient.so.15
#5  0x70c3af90 in ?? () from /usr/lib/apache2/modules/libphp4.so
#6  0x70c3af90 in ?? () from /usr/lib/apache2/modules/libphp4.so
Previous frame identical to this frame (corrupt stack?)
(gdb) quit


Can anybody help me troubleshoot?

Thanks..

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3115 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-03-16 19:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-14 23:33 [gentoo-sparc] PHP crashing Leif Sawyer
2006-03-14 23:42 ` Paul Heinlein
2006-03-14 23:49   ` Brant Williams
2006-03-14 23:57     ` Gustavo Zacarias
2006-03-14 23:58   ` Gustavo Zacarias
2006-03-15  0:59   ` Jason Wever
  -- strict thread matches above, loose matches on Subject: below --
2006-03-16 19:09 Leif Sawyer
2006-03-15 19:26 Leif Sawyer
2006-03-15 19:41 ` Gustavo Zacarias
2006-03-15 19:16 Leif Sawyer
2006-03-15 19:23 ` Gustavo Zacarias
2006-03-14 19:08 Leif Sawyer
2006-03-13 18:31 Leif Sawyer
2006-03-10  0:46 Leif Sawyer
2006-03-12 17:57 ` Jason Wever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox