php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41552 Bus Error - core dumped - Solaris - make: [test] Error 138
Submitted: 2007-05-31 16:25 UTC Modified: 2007-06-04 08:35 UTC
From: shane dot kinsch at netracorp dot com Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 4.4.7 OS: Solaris 10 (SunOS 5.10)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shane dot kinsch at netracorp dot com
New email:
PHP Version: OS:

 

 [2007-05-31 16:25 UTC] shane dot kinsch at netracorp dot com
Description:
------------
Running the "make test" for PHP 4.4.7 caused a core dump under Solaris

Using GCC 3.4.6 under Solaris 10 (SunOS 5.10) and receive the same Bus Error / core dump on an elaborate configure or a basic configure.  In the example below, I'm using a simple configure in order to isolate where the issue may live, but unfortunately I'm still stumped.

Reproduce code:
---------------
I received a simple warning about libiconv, so I've downgraded libiconv from 1.11 to 1.9.2 with no different results.  I've since removed 1.9.2 and re-applied libiconv 1.11.

I get the same bus error / core dump when I configure PHP with only these options:

# make clean
# CC="gcc" \
 ./configure --disable-xml --without-pear

It configures what appears to be fine:
http://my.gi.net/shane.kinsch/php-configure-log.txt

It compiles what appears to be fine as well:
http://my.gi.net/shane.kinsch/php-make-log.txt

OS and Package Versions:
SunOS web1 5.10 s10_72 sun4u sparc SUNW,UltraSPARC-IIi-cEngine

- openssl-0.9.8e    - autoconf 2.60
- automake 1.10     - bison 2.3
- expat 1.95.5      - flex 2.5.33
- fontconfig 2.4.2  - freetype 2.3.1
- gcc 3.4.6         - gd 2.0.33
- jpeg 6b           - libiconv 1.9.2
- libpng 1.2.16     - libtool 1.5
- libxml2 2.6.26    - libxslt 1.1.17
- m4 1.4.7          - make 3.81
- perl 5.8.8        - texinfo 4.8
- xpm 3.4k          - zlib 1.2.3

Expected result:
----------------
"make test" to complete successfully, or even execute.

Actual result:
--------------
# make test
Bus Error - core dumped
make: [test] Error 138 (ignored)
core dump

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-31 16:33 UTC] tony2001@php.net
Try updating GCC to the latest available version.
 [2007-06-01 14:45 UTC] shane dot kinsch at netracorp dot com
I downloaded the Sun Studio 11 compiler from: http://opensolaris.org/os/community/tools/sun_studio_tools/sun_studio_11_tools/

Then recompiled PHP using these options:

arch=`isainfo -k | sed s/sparc//` \
CC="/opt/SUNWspro/bin/cc -fast -xarch=${arch}" \
CXX="/opt/SUNWspro/bin/CC -fast -xarch=${arch}" \
CPPFLAGS="-I/usr/local/ssl/include" \
LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib --L/usr/local/mysql/lib -L/usr/local/etc/apache/lib" \

 ./configure \
          --with-apxs2=/usr/local/etc/apache/bin/apxs \
          --enable-track-vars \
          --enable-sockets \
          --enable-wddx \
          --enable-xslt \
            --with-xslt-sablot=/usr/local \
            --with-expat-dir=/usr/local \
            --with-iconv=/usr/local \
            --with-libxml-dir=/usr/local/lib \
          --with-curl \
          --with-mysql=/mysql-client \
          --with-zlib-dir=/usr/local \
          --with-jpeg-dir=/usr/local \
          --with-png-dir=/usr/local \
          --with-freetype-dir=/usr/local \
          --with-gd \
          --with-xpm-dir=/usr/local \
          --with-openssl=/usr/local/ssl \
          --disable-debug \
          --enable-safe-mode \
          --enable-inline-optimization \
          --enable-memory-limit \
          --enable-bcmath \
          --enable-calendar

It compiled fine.  Thanks for the assistance.

Shane Kinsch
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC