Go Premium for a chance to win a PS4. Enter to Win


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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.
Suggested Courses

877 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