Segmentation Fault

Posted on 2009-06-28
Last Modified: 2013-12-27
Hi all,

When trying to run a php script on Solaris 10 I get the following error:

Segmentation Fault (core dumped)

Thanks for help
Question by:michofreiha
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Author Comment

ID: 24732345
Please find below details:

bash-3.00# pflags core
core 'core' of 10726:   /usr/local/bin/php -q /micho/exe.php
        data model = _ILP32  flags = MSACCT|MSFORK
 /1:    flags = 0
        sigmask = 0xffffbefc,0x0000ffff  cursig = SIGSEGV

bash-3.00# pldd core
core 'core' of 10726:   /usr/local/bin/php -q /micho/exe.php

Author Comment

ID: 24732442
Getting the below info when trying to debug core file:

debugging core file of php (32-bit) from reporting
file: /usr/local/bin/php
initial argv: /usr/local/bin/php -q /micho/exe.php
threading model: multi-threaded
status: process terminated by SIGSEGV (Segmentation Fault)

Expert Comment

ID: 24734156
Are you running OS in vbox.
Please provide more info.

Uname -a
prtdiag -v

Did the script worked before?
Any changes recently done of the system (patched etc)
What exactly the script suppose to do ?

Javeed abdul

Author Comment

ID: 24734254
Dear Sir,

please find below my answers:

uname -a:  SunOS reporting 5.10 Generic_137137-09 sun4u sparc SUNW,Sun-Fire-V210

prtdiag -v
System Configuration: Sun Microsystems  sun4u Sun Fire V210
System clock frequency: 167 MHZ
Memory size: 2GB        

==================================== CPUs ====================================
               E$          CPU                    CPU
CPU  Freq      Size        Implementation         Mask    Status      Location
---  --------  ----------  ---------------------  -----   ------      --------
0    1336 MHz  1MB         SUNW,UltraSPARC-IIIi    3.4    on-line     MB/P0
1    1336 MHz  1MB         SUNW,UltraSPARC-IIIi    3.4    on-line     MB/P1

================================= IO Devices =================================
Bus     Freq  Slot +      Name +
Type    MHz   Status      Path                          Model
------  ----  ----------  ----------------------------  --------------------
pci     66    MB          pci108e,1648 (network)                          
              okay        /pci@1f,700000/network@2

pci     66    MB          pci108e,1648 (network)                          
              okay        /pci@1f,700000/network@2,1

pci     33    MB          isa/su (serial)                                  
              okay        /pci@1e,600000/isa@7/serial@0,3f8

pci     33    MB          isa/su (serial)                                  
              okay        /pci@1e,600000/isa@7/serial@0,2e8

pci     33    MB          isa/rmc-comm-rmc_comm (seria+                    
              okay        /pci@1e,600000/isa@7/rmc-comm@0,3e8

pci     33    MB          pci10b9,5229 (ide)                              
              okay        /pci@1e,600000/ide@d

pci     66    MB          scsi-pci1000,21 (scsi-2)                        
              okay        /pci@1c,600000/scsi@2

pci     66    MB          scsi-pci1000,21 (scsi-2)                        
              okay        /pci@1c,600000/scsi@2,1

pci     66    MB          pci108e,1648 (network)                          
              okay        /pci@1d,700000/network@2

pci     66    MB          pci108e,1648 (network)                          
              okay        /pci@1d,700000/network@2,1

============================ Memory Configuration ============================
Segment Table:
Base Address       Size       Interleave Factor  Contains
0x0                1GB               1           BankIDs 0
0x1000000000       1GB               1           BankIDs 16

Bank Table:
           Physical Location
ID       ControllerID  GroupID   Size       Interleave Way
0        0             0         1GB             0
16       1             0         1GB             0

Memory Module Groups:
ControllerID   GroupID  Labels         Status
0              0        MB/P0/B0/D0    
0              0        MB/P0/B0/D1    
1              0        MB/P1/B0/D0    
1              0        MB/P1/B0/D1    

============================ Environmental Status ============================
Fan Status:
Location             Sensor          Status
F0                   RS              okay
F1                   RS              okay
F2                   RS              okay
F3                   RS              okay
MB/P0/F0             RS              okay
MB/P0/F1             RS              okay
MB/P1/F0             RS              okay
MB/P1/F1             RS              okay
PS0                  FF_FAN          okay        

Temperature sensors:
Location       Sensor              Status
MB/P0          T_CORE              okay
MB/P1          T_CORE              okay
MB             T_ENC               okay
PS0            FF_OT               okay
Current sensors:
Location             Sensor       Status
MB                   FF_SCSI      okay
PS0                  FF_OC        okay
Voltage sensors:
Location       Sensor        Status
MB/P0          V_CORE        okay
MB/P1          V_CORE        okay
MB             V_VTT         okay
MB             V_GBE_+2V5    okay
MB             V_GBE_CORE    okay
MB             V_VCCTM       okay
MB             V_+2V5        okay
MB             V_+1V5        okay
MB/BAT         V_BAT         okay
PS0            P_PWR         okay
PS0            FF_POK        okay
PS0            FF_UV         okay
PS0            FF_OV         okay
Led State:
Location               Led                   State       Color
MB                     ACT                   on          green          
MB                     SERVICE               off         amber          
MB                     LOCATE                off         white          
PS0                    ACT                   on          green          
PS0                    SERVICE               off         amber          
PS0                    OK2RM                 off         blue            
HDD0                   SERVICE               off         amber          
HDD0                   OK2RM                 off         blue            
HDD1                   SERVICE               off         amber          
HDD1                   OK2RM                 off         blue            

=========================== FRU Operational Status ===========================
Fru Operational Status:
Location                Status
MB/SC                   okay
PS0                     okay
HDD0                    present
HDD1                    present

================================ HW Revisions ================================
ASIC Revisions:
Path                   Device           Status             Revision
/pci@1f,700000         pci108e,a801     okay               4  
/pci@1e,600000         pci108e,a801     okay               4  
/pci@1c,600000         pci108e,a801     okay               4  
/pci@1d,700000         pci108e,a801     okay               4  

System PROM revisions:
OBP 4.16.2 2004/10/04 18:22 Sun Fire V210/V240,Netra 240
OBDIAG 4.16.2 2004/10/04 18:23  

- The script was working fine before...No patches has been added to the system recently...

- The Script connect to a live database, select records from a table and insert these records into another table...The script contains a loop that keep it running all the time


Accepted Solution

javeedabdul earned 500 total points
ID: 24741731
Hi Mic

I would like to see the bug details
Can you paste the link ?

Javeed Abdul

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question