Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Segmentation Fault

Posted on 2009-06-28
Medium Priority
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 1500 total points
ID: 24741731
Hi Mic

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

Javeed Abdul

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

664 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