php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1266 cc1 segfault when compiling language-parser.tab.c
Submitted: 1999-03-25 16:26 UTC Modified: 1999-03-29 01:14 UTC
From: neut at hutch dot com dot au Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.7 OS: Solaris 2.6 - Sparc (works on x8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: neut at hutch dot com dot au
New email:
PHP Version: OS:

 

 [1999-03-25 16:26 UTC] neut at hutch dot com dot au
It doesnt matter what complier you use, or what type of
Sparc arch. you try to compile on. I have tried to compile
from Solaris 2.5 -> 2.6, on sun's ranging from Sparc5 to
a E450. I tried to compile on Solaris 2.6 (x86) and had no
problems, so it seems to be related to the Sparc arch.

I have not used gdb before, so I hope below is enough, if
you need me to run certain gdb commands for more info please
let me know.

Plus I have tried this on the last few releases of php3.

It doesnt seem to matter what I configure into it (e.g.
module settings or cgi settings etc etc)



******** ON A Sun Ultra E1 *****************
gdb make core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (sparc-sun-solaris2.5.1), Copyright 1996 Free Software Foundation, Inc...
(no debugging symbols found)...

warning: core file may not match specified executable file.
Core was generated by `/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/cc1 /var/tmp/ccJ_2wV_.i -quie'.
Program terminated with signal 11, Segmentation fault.
#0  0xd9ff4 in ?? ()
(gdb) bt
#0  0xd9ff4 in ?? ()
Cannot access memory at address 0x60eac.
(gdb) 


********** ON A Sun Ultra E450 ******************
gdb make core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.6"...

warning: core file may not match specified executable file.
Core was generated by `/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.3/cc1 /hta/tmp/cc0os7pS.i -qu'.
Program terminated with signal 11, Segmentation Fault.
#0  0xefdf1880 in ?? ()
(gdb) bt
#0  0xefdf1880 in ?? ()
Cannot access memory at address 0xefed71ac.


***** command line **************
make
gcc -g -O2 -O2   -I. -I.    -c language-parser.tab.c -o language-parser.tab.o
gcc: Internal compiler error: program cc1 got fatal signal 11
*** Error code 1
make: Fatal error: Command failed for target `language-parser.tab.o'



After talking to some people I drop the optimization on that source file only to
O1 and it compiled the .o file okay.

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 07:01:30 2024 UTC