|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Coredump MQCONN |
« View previous topic :: View next topic » |
Author |
Message
|
Kupava |
Posted: Thu Aug 04, 2005 9:11 am Post subject: Coredump MQCONN |
|
|
 Novice
Joined: 21 Apr 2005 Posts: 10 Location: NJ
|
Hello there,
I am running MQ 5.3 on Sun Solaris 2.8.
I have a task of backing up our production qmgr to another box. That box has an existing qmgr , which is a default qmgr. I have successfuly saved and recreated all of the configurations via saveqmgr/runmqsc as well as authority. Now I am trying to connect to this newly created qmgr and I am getting a coredump. This has started happenning when instead of assuming a default qmgr , application is passing the name of it, and doing an explisit MQCONN.
I have tried to debug it , to make sure that the name gets filled properly, and it appears to be so.
strncpy(qmName, qm_name, (size_t)MQ_Q_MGR_NAME_LENGTH);
55 MQCONN(qmName, /* queue manager */
(gdb) print qmName
$6 = "ELSDEV1", '\0' <repeats 41 times>
(gdb) step
Program received signal SIGSEGV, Segmentation fault.
0xfef3a3bc in getenv () from /usr/lib/libc.so.1
Any input on this would be much appreciated.
Thanks a lot. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Aug 04, 2005 1:32 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I thought you would have the full length for the string and it would be space filled.
It looks like your string is properly terminated (hex 0 ) rightaway with no space fillers. ??
Double check programming manual  |
|
Back to top |
|
 |
Kupava |
Posted: Fri Aug 05, 2005 6:54 am Post subject: |
|
|
 Novice
Joined: 21 Apr 2005 Posts: 10 Location: NJ
|
Turned out to be a compiler issue......
Thanks  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|