Author |
Message
|
mad_man12 |
Posted: Thu Nov 22, 2012 7:13 am Post subject: MQ program giving core dump |
|
|
Newbie
Joined: 22 Nov 2012 Posts: 7
|
Hi All,
I am running a program using mqseries as below
MQ_Executable -oQueue_Name -finputfile -mQueueMgr
its is giving me an error as below
MQSeries Q Program by Paul Clarke [ V4.1 Build:Oct 4 2002 ]
Connecting ...connected to 'UKQ1(queuemgr) '.
>Segmentation Fault - core dumped
now this program is running fine for small line inputs.
In case of core dump there is only one record in the input file but it is very long.
Please can anybody advise as to why we are receving dump is it due to some message box getting full due to this long line or else an advice actions to overcome it.
can you also suggest how can i debug the program to see where the dump is coming. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Nov 22, 2012 8:09 am Post subject: Re: MQ program giving core dump |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
mad_man12 wrote: |
Hi All,
In case of core dump there is only one record in the input file but it is very long.
|
How long is very long? 50 bytes, 500 bytes 5K? What does the documentation say regarding msg length? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mad_man12 |
Posted: Fri Nov 23, 2012 3:57 am Post subject: |
|
|
Newbie
Joined: 22 Nov 2012 Posts: 7
|
The big file is 36KB in size which is not getting processed and giving core dump
the small file is 8kb in size and getting processed successfully.
Any idea how to enable trace or see where the error occurs
Not sure if i can attach the files for refrence |
|
Back to top |
|
 |
dgolding |
Posted: Fri Nov 23, 2012 4:06 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
MQSeries Q Program by Paul Clarke [ V4.1 Build:Oct 4 2002 ]
So you're running "Q" - how - through a system() call?
What operating system (I assume a Unix flavour)
Trace won't help you much but a look at /var/mqm/errors with ffstsummary or using a coredump diagnostic tool might |
|
Back to top |
|
 |
mad_man12 |
Posted: Fri Nov 23, 2012 5:09 am Post subject: |
|
|
Newbie
Joined: 22 Nov 2012 Posts: 7
|
Thanks dgolding!!
i am running it as below
MQ_Executable -oQueue_Name -finputfile -mQueueMgr
yes its in Unix solaris, i don't see any errrors logged in /var/mqm/errrors
what is ffstsummary?
i tried pstack used but it doesn't give any clear idea and the output is as below
----------------- lwp# 1 / thread# 1 --------------------
ff033218 strlen (0, ffbed654, 0, 52291, 0, 2c0d2) + 80
ff087fc0 fprintf (52530, 2c0c0, ff0c3a54, ff0bfca8, 2c0d4, 2c058) + e8
000191b0 main (6, ffbefb8c, ffbefba8, 3e400, 0, 0) + 2fc8
000161c0 _start (0, 0, 0, 0, 0, 0) + b8
----------------- lwp# 2 / thread# 2 --------------------
ff09edc4 _signotifywait (fefec000, 0, 0, 0, 0, 0) + 8
ff09a268 thr_errnop (0, 0, 0, 0, 0, 0) + 20
----------------- lwp# 3 --------------------------------
ff09c968 _door_return (3, fefed658, fefed670, 3, fefec000, 1) + 10
fefca358 _lwp_start (fef55d98, 0, 6000, ffbef4bc, 0, 0) + 18
ff09a268 thr_errnop (0, 0, 0, 0, 0, 0) + 20
-------------------------- thread# 3 --------------------
fefcd9b8 _reap_wait (feff0980, 1e924, 0, fefec000, 0, 0) + 38
fefcd710 _reaper (fefece00, feff2708, feff0980, fefecdd8, 1, fe400000) + 38
fefdb01c _thread_start (0, 0, 0, 0, 0, 0) + 40 |
|
Back to top |
|
 |
mqsiuser |
Posted: Fri Nov 23, 2012 5:29 am Post subject: |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
Quote: |
using a coredump diagnostic tool might |
You can also just open the core dump in a texteditor and look for and read the readable parts.
Also look into the Operating System's error-log. On AIX this is "errpt -a". _________________ Just use REFERENCEs |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Nov 23, 2012 6:30 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
'ffstsummary' is an mq command.
it produces a summary of all ffst files currently in the mq environment.
ffst files are produced when mq dumps core.
Again, presumably you have taken the time to review the documentation that comes with Q for any comments it has about processing messages of different sizes.
Again, presumably you have reviewed the parameters you are passing to Q and reviewed the procedure you are following to invoke Q with those parameters.
Again, presumably, you have reviewed the nature of the business process and business requirements and determined that it is not more appropriate to build an actual application rather than using a Cat2 supportPac (particularly, alas, anything by Paul Clarke which has still very much an uncertain future.) |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 23, 2012 9:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you looked at the max msg length for the target queue?
Is segmentation allowed for the target queue?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mad_man12 |
Posted: Tue Nov 27, 2012 4:44 am Post subject: |
|
|
Newbie
Joined: 22 Nov 2012 Posts: 7
|
The MAXMSGL is 4MB so don't think length is creating a problem as the file size is just 36 kb.
Any other suggestions please |
|
Back to top |
|
 |
mad_man12 |
Posted: Tue Nov 27, 2012 5:49 am Post subject: |
|
|
Newbie
Joined: 22 Nov 2012 Posts: 7
|
how to use ffstsummary is there any command i need to fire or i need to supply something as parameter to q |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Nov 27, 2012 5:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
mad_man12 wrote: |
how to use ffstsummary is there any command i need to fire or i need to supply something as parameter to q |
'ffstsummary' is the name of the command.
it's not an officially documented command, however. It's also only of limited use because as the name says, it only provides a *summary* of the ffst files that are available.
You should review http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/fa15410_.htm |
|
Back to top |
|
 |
mad_man12 |
Posted: Tue Nov 27, 2012 5:58 am Post subject: |
|
|
Newbie
Joined: 22 Nov 2012 Posts: 7
|
Thanks Mqjeff, i was able to run it however there isn;t any entry for it this month, i ran the process today and it produced the core, nor do i see any FDC for it, is there something not enabled in system that there are not getting created |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Nov 27, 2012 6:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It seems that you have a repeatable situation that causes a problem.
Start your troubleshooting from the ground up.
Examine the entire state of the system to establish a base line.
Make sure you know what other processes are going on so you can eliminate any errors that may be generated by those processes.
Run the program with the known configuration and options that generates a core.
Examine all log files produced by every piece of the system that is affected.
If the *only* thing that produces *any* error message at all is the Q program, then either the options you are sending to the Q program are wrong in some way or you have found a bug in the Q program.
If you have found a bug in the Q program, then you are very likely up a creek without a paddle. But you might review that you have a current and up to date copy and review the procedures you followed to install or make it available on the system in question. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Nov 27, 2012 6:16 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
dgolding wrote: |
MQSeries Q Program by Paul Clarke [ V4.1 Build:Oct 4 2002 ] |
According to http://www-01.ibm.com/support/docview.wss?uid=swg24000647, the Q Program was Last Updated: 17May12.
You are running a ten year old version of the application. Install the new version. Let us know if the error persists. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mad_man12 |
Posted: Tue Nov 27, 2012 7:38 am Post subject: |
|
|
Newbie
Joined: 22 Nov 2012 Posts: 7
|
Thanks mqjeff,
i will be carrying out the steps you listed though i am not sure if there would been any issue with configurations it wouldn't have worked for small files also but they are getting processed fine |
|
Back to top |
|
 |
|