Solved

Segmentation Fault

Posted on 2009-06-28
5
667 Views
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
0
Comment
Question by:michofreiha
  • 3
  • 2
5 Comments
 
LVL 9

Author Comment

by:michofreiha
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
/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
 
LVL 9

Author Comment

by:michofreiha
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)
0
 
LVL 6

Expert Comment

by:javeedabdul
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
0
 
LVL 9

Author Comment

by:michofreiha
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

Regards
0
 
LVL 6

Accepted Solution

by:
javeedabdul earned 500 total points
ID: 24741731
Hi Mic


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

thanks
Javeed Abdul
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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 (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now