ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Coredump MQCONN

Post new topic  Reply to topic
 Coredump MQCONN « View previous topic :: View next topic » 
Author Message
Kupava
PostPosted: Thu Aug 04, 2005 9:11 am    Post subject: Coredump MQCONN Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Thu Aug 04, 2005 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Kupava
PostPosted: Fri Aug 05, 2005 6:54 am    Post subject: Reply with quote

Novice

Joined: 21 Apr 2005
Posts: 10
Location: NJ

Turned out to be a compiler issue......


Thanks
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Coredump MQCONN
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.