Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: SPARC

PHP crashing...

 

 

Gentoo sparc RSS feed   Index | Next | Previous | View Threaded


lsawyer at gci

Mar 9, 2006, 5:46 PM

Post #1 of 15 (1612 views)
Permalink
PHP crashing...

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..
Attachments: smime.p7s (3.04 KB)


weeve at gentoo

Mar 12, 2006, 10:57 AM

Post #2 of 15 (1580 views)
Permalink
Re: PHP crashing... [In reply to]

On Thu, 9 Mar 2006 15:46:49 -0900
"Leif Sawyer" <lsawyer [at] gci> 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)?

Thanks,
--
Jason Wever
Gentoo/Sparc Team Co-Lead
Attachments: signature.asc (0.19 KB)


lsawyer at gci

Mar 13, 2006, 11:31 AM

Post #3 of 15 (1579 views)
Permalink
RE: PHP crashing... [In reply to]

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!
Attachments: smime.p7s (3.04 KB)


lsawyer at gci

Mar 14, 2006, 12:08 PM

Post #4 of 15 (1579 views)
Permalink
RE: PHP crashing... [In reply to]

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.
Attachments: smime.p7s (3.04 KB)


lsawyer at gci

Mar 14, 2006, 4:33 PM

Post #5 of 15 (1583 views)
Permalink
RE: PHP crashing... [In reply to]

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..
Attachments: smime.p7s (3.04 KB)


heinlein at madboa

Mar 14, 2006, 4:42 PM

Post #6 of 15 (1580 views)
Permalink
RE: PHP crashing... [In reply to]

On Tue, 14 Mar 2006, Leif Sawyer wrote:

> Damn:
>
> # USE="hardened nptlonly" nice emerge glibc

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...

--
Paul Heinlein <> heinlein [at] madboa <> www.madboa.com
--
gentoo-sparc [at] gentoo mailing list


brant at tnarb

Mar 14, 2006, 4:49 PM

Post #7 of 15 (1585 views)
Permalink
RE: PHP crashing... [In reply to]

Correct me if I'm wrong, but doesn't the "hardened" USE flag require the
"hardened" profile? AFAIK, that profile doesn't exist for SPARC.

-Brant


public GPG/PGP key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xEBA14420



On Tue, 14 Mar 2006, Paul Heinlein wrote:

> On Tue, 14 Mar 2006, Leif Sawyer wrote:
>
>> Damn:
>>
>> # USE="hardened nptlonly" nice emerge glibc
>
> 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...
>
> --
> Paul Heinlein <> heinlein [at] madboa <> www.madboa.com
> --
> gentoo-sparc [at] gentoo mailing list
>
--
gentoo-sparc [at] gentoo mailing list


gustavoz at gentoo

Mar 14, 2006, 4:57 PM

Post #8 of 15 (1579 views)
Permalink
Re: PHP crashing... [In reply to]

Brant Williams wrote:

> Correct me if I'm wrong, but doesn't the "hardened" USE flag require the
> "hardened" profile? AFAIK, that profile doesn't exist for SPARC.

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).
YMMV - there's no guarantee this is still working.

--
Gustavo Zacarias
Gentoo/SPARC monkey
--
gentoo-sparc [at] gentoo mailing list


gustavoz at gentoo

Mar 14, 2006, 4:58 PM

Post #9 of 15 (1582 views)
Permalink
Re: PHP crashing... [In reply to]

Paul Heinlein 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...

As long as you're on a 2.6 kernel and 2006.0 profile up to date
(toolchain upgraded and so on) it works just fine.

--
Gustavo Zacarias
Gentoo/SPARC monkey
--
gentoo-sparc [at] gentoo mailing list


weeve at gentoo

Mar 14, 2006, 5:59 PM

Post #10 of 15 (1586 views)
Permalink
Re: PHP crashing... [In reply to]

On Tue, 14 Mar 2006 15:42:17 -0800 (PST)
Paul Heinlein <heinlein [at] madboa> 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.

Cheers,
--
Jason Wever
Gentoo/Sparc Team Co-Lead
Attachments: signature.asc (0.19 KB)


lsawyer at gci

Mar 15, 2006, 12:16 PM

Post #11 of 15 (1588 views)
Permalink
RE: PHP crashing... [In reply to]

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
Attachments: smime.p7s (3.04 KB)


gustavoz at gentoo

Mar 15, 2006, 12:23 PM

Post #12 of 15 (1583 views)
Permalink
Re: PHP crashing... [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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...

- --
Gustavo Zacarias
Gentoo/SPARC monkey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2-ecc0.1.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEGGmuV3G/IBCn/JARAgnyAJ9ZhwRoDFiq6I1eeNg9MVrvCnEWmACfZFY+
qmIps1gFvDE6BIp4n5FhKds=
=btkx
-----END PGP SIGNATURE-----
--
gentoo-sparc [at] gentoo mailing list


lsawyer at gci

Mar 15, 2006, 12:26 PM

Post #13 of 15 (1583 views)
Permalink
RE: PHP crashing... [In reply to]

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.
Attachments: smime.p7s (3.04 KB)


gustavoz at gentoo

Mar 15, 2006, 12:41 PM

Post #14 of 15 (1580 views)
Permalink
Re: PHP crashing... [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Leif Sawyer wrote:

> 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.

If you switched from USE="hardened" to non-hardened half-way you will
have issues.
Also it's highly recommended when upgrading <2006.0 profiles to >=2006.0
to rebuild everything with the new gcc, not just revdep-rebuild.

- --
Gustavo Zacarias
Gentoo/SPARC monkey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2-ecc0.1.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEGG33V3G/IBCn/JARAkEYAJ4lbRHyq8tvW9tb2cWY0NIK3UpVIACePHFo
9vsaiXZXBr4MLcSM7/mgPMg=
=RV3+
-----END PGP SIGNATURE-----
--
gentoo-sparc [at] gentoo mailing list


lsawyer at gci

Mar 16, 2006, 12:09 PM

Post #15 of 15 (1578 views)
Permalink
RE: PHP crashing... [In reply to]

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.
Attachments: smime.p7s (3.04 KB)

Gentoo sparc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.