Operating System - HP-UX
1745878 Members
4268 Online
108723 Solutions
New Discussion

Re: Got masked synchronous signal 10. Not able to debug with gdb

 
tarakant
Occasional Visitor

Got masked synchronous signal 10. Not able to debug with gdb

Hi all,

 

I am geting the below eror while execution of a process. The process is not creating any core file also.

 

[HP ARIES32]: ***** Log time:  Tue Feb 14 06:09:33 CST 2012  *****
[HP ARIES32]:
[HP ARIES32]: Internal Error (code : 021) [PID : 2961]
[HP ARIES32]:   Got masked synchronous signal 10.
[HP ARIES32]:   Aborting process!!
[HP ARIES32]:
[HP ARIES32]: ARIES Version   :
[HP ARIES32]:   11.23 (PHSS_39897) Ver: 2.0.00027 [Oct 28, 2009 15:6:43]
[HP ARIES32]: Invoked command :

I went through the threads already posted and went on to ebug the issue with gdb.

 

I invoked at the command prompt

>SHELL=/usr/bin/sh PA_DEBUG=1 /usr/ccs/bin/gdb64 /antsd2/ANTSRcvLogWorkServer/ANTSRcvLogWorkServer

Detected 32-bit executable.
Invoking /usr/ccs/bin/gdb32.
HP gdb 6.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11i
and target hppa1.1-hp-hpux11.00.
Copyright 1986 - 2009 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 6.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..(no debugging symbols found)...
(gdb) set args  -OAport 5054
(gdb) run
Starting program: /antsd2/ANTSRcvLogWorkServer/ANTSRcvLogWorkServer -OAport 5054
[HP ARIES32]: PA-RISC application launching non-PA-RISC application
[HP ARIES32]:   while being debugged. Or, Unable to open file
[HP ARIES32]:   /usr/bin/sh to find its file type.
[HP ARIES32]:   Further debugging may not be possible.
Cannot exec /usr/bin/sh: Invalid argument.

Program exited with code 0177.
You can't do that without a process to debug.

 

I am not bale to understand the issue and how to go further. please help.

does it require to change the permission of the file /usr/bin/sh?

 

Thanks

7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: Got masked synchronous signal 10. Not able to debug with gdb

>The process is not creating any core file also.

 

Are you root or setuid?  Or you can't write to core?

 

>SHELL=/usr/bin/sh PA_DEBUG=1 /usr/ccs/bin/gdb64 /antsd2/ANTSRcvLogWorkServer/ANTSRcvLogWorkServer

 

You are suppose to copy a PA shell over to your Integrity server:

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02255323/c02255323.pdf

tarakant
Occasional Visitor

Re: Got masked synchronous signal 10. Not able to debug with gdb

Hi Dennis,

 

Thank you for your reply.

 

>Are you root or setuid?  Or you can't write to core?

No iam not root. I login usinf su - user, under "user" all the exe's executes.

I have seen the other processes creating core files. So it has all the permissions to create core file.

 

Following the documentation that you have posted

ksh is thr in /usr/bin, i did set the SHELL variable

Add /usr/ccs/bin to the PATH environment variable: is already a part of the PATH

Looks /tmp has also enough space

/tmp                   (/dev/vg00/lvol6       ) :   520872 total allocated Kb
                                                    437208 free allocated Kb
                                                     83664 used allocated Kb
                                                        16 % allocation used

this is the permission for /tmp dir
-r-xr-xr-x   2 bin        bin         448024 Jun  9  2009 /usr/bin/ksh

 

below is the result i got.

 

gdb /antsd2/ANTSRcvLogWorkServer/ANTSRcvLogWorkServer
Detected PA executable.
Invoking /usr/ccs/bin/gdbpa.
HP gdb 6.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11i
and target hppa1.1-hp-hpux11.00.
Copyright 1986 - 2009 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 6.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..(no debugging symbols found)...
(gdb) set args -OAport 5060
(gdb) run
Starting program: /antsd2/ANTSRcvLogWorkServer/ANTSRcvLogWorkServer -OAport 5060
[HP ARIES32]: PA-RISC application launching non-PA-RISC application
[HP ARIES32]:   while being debugged. Or, Unable to open file
[HP ARIES32]:   /usr/bin/ksh to find its file type.
[HP ARIES32]:   Further debugging may not be possible.
Cannot exec /usr/bin/ksh: Invalid argument.

Program exited with code 0177.
You can't do that without a process to debug.


Wat needs to be done in here, please suggest.

 

Thanks,

Tarakant

Dennis Handly
Acclaimed Contributor

Re: Got masked synchronous signal 10. Not able to debug with gdb

>ksh is there in /usr/bin, I did set the SHELL variable

 

Did you follow step 2 precisely?

   2. Set the environment variable SHELL to point to a PA-RISC shell, copied from a PA-RISC HP-UX system
       from /usr/bin path

 

I.e. SHELL can't be /usr/bin/ksh or an ELF32 executable.

Rajesh K Chaurasia
Valued Contributor

Re: Got masked synchronous signal 10. Not able to debug with gdb

Greetings,

 

Starting with the first issue you encountered - ARIES abort due to masked synchronous signal... I suggest you install ARIES 11.23 patch PHSS_41422 and confirm if the issue still persists.

 

Core file for PA-RISC application is generated only when a dropcore type signal is received by ARIES for delivery to emulated process. For the issue under discussion ARIES encounters SIGBUS and detects that application signal mask is blocking this signal and terminates the emulation.

 

Regards

-Rajesh

tarakant
Occasional Visitor

Re: Got masked synchronous signal 10. Not able to debug with gdb

Hi,

 

I managed to meke the gdb work by copying the shell from Pa_RISC hp unix. Here is the putput from gdb

 

(gdb) run
Starting program: /antsd2/ANTSRcvLogWorkServer/ANTSRcvLogWorkServer -OAport 5054
/usr/lib/dld.sl: Can't find path for shared library: [Vftptr]key:__dt__Q2_7Db_ANTS12Stn_RangeRecFv
/usr/lib/dld.sl: No such file or directory

Program received signal SIGABRT, Aborted
  si_code: -1 - .
0xc29520a0 in <unknown_procedure> ()
(gdb) bt
#0  0xc29520a0 in <unknown_procedure> ()
warning: Attempting to unwind past bad PC 0xc29520a0
#1  0xc2951cbc in <unknown_procedure> ()
#2  0xc2951cbc in <unknown_procedure> ()

 

Can any one tell me why  it is aborting here.

 

Thanks,

Tarakant

Rajesh K Chaurasia
Valued Contributor

Re: Got masked synchronous signal 10. Not able to debug with gdb

You may be debugging a wrong problem. The issue could be related to ARIES emulator itself. This is why I suggested updating to ARIES patch PHSS_41422. This is to eliminate the possibility of encountering any known/fixed issue within ARIES.

 

You may want to trace the process using HP-UX system call tracer tusc to find if any failing system call is leading to signal. Use Itanium tusc from

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-8.1/

 

Are all file permissions (including setuid/setgid bits) and ownership correct for copied files from PA-RISC to Integrity server? If the issue persists after installing PHSS_41422, report the issue to HP response center.

 

Regards

-Rajesh

Dennis Handly
Acclaimed Contributor

Re: Got masked synchronous signal 10. Not able to debug with gdb

>/usr/lib/dld.sl: Can't find path for shared library: [Vftptr]key:__dt__Q2_7Db_ANTS12Stn_RangeRecFv

 

It looks like the executable is corrupted or something wrong with Aries?

But you didn't get this originally.