Segmentation Fault

Hi all,

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

Segmentation Fault (core dumped)

Thanks for help
LVL 9
michofreihaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

michofreihaAuthor Commented:
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
/lib/librt.so.1
/usr/openwin/lib/libX11.so.4
/usr/openwin/lib/libXpm.so.4
/usr/lib/libpng12.so.0.18.0
/usr/lib/libz.so.1
/usr/lib/libjpeg.so.62.0.0
/usr/lib/libbz2.so.1
/lib/libresolv.so.2
/lib/libm.so.2
/lib/libnsl.so.1
/lib/libsocket.so.1
/usr/local/lib/libxml2.so.2.7.1
/lib/libpthread.so.1
/lib/libc.so.1
/lib/libaio.so.1
/lib/libmd.so.1
/usr/sfw/lib/libgcc_s.so.1
/platform/sun4u-us3/lib/libc_psr.so.1
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysql.so
/opt/csw/mysql5/lib/mysql/libmysqlclient.so.15.0.0
/lib/libgen.so.1
/lib/libm.so.1
/opt/csw/lib/sparcv8plus+vis/libz.so.1.2.3
0
michofreihaAuthor Commented:
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)
0
javeedabdulCommented:
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
0
michofreihaAuthor Commented:
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

Regards
0
javeedabdulCommented:
Hi Mic


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

thanks
Javeed Abdul
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.