The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
segmentation fault joey High Level Programming 3 12-22-2008 05:28 PM
segmentation fault rockgal High Level Programming 8 12-05-2006 12:16 PM
Segmentation Fault compbug UNIX for Dummies Questions & Answers 3 04-21-2006 10:43 AM
segmentation fault wojtyla High Level Programming 3 02-19-2005 02:53 PM
segmentation fault omran High Level Programming 2 08-01-2003 08:19 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-27-2009
sumesh0710 sumesh0710 is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
Segmentation fault in nsgetcinfo in aix 64-bit c code

Hello,

I am running on a AIX5.2 server with Oracle 10g and 9i. My code compiles and works fine in 32-bit mode. The

same code compiles in 64-bit and runs good. The program catches CNTRL-C signal to terminate. Only on 64-bit code

when i hit CNTRL-C, the program exits with segmentation fault on dbx debugger. The whole program runs in a while

loop infinitely untill a CNTRL-C is hitted. The program takes sql from oracle and sends to queue. It shows error if

bulk of SQLs are processed and after i hit CNTRL-C. The error is

Segmentation fault in nsgetcinfo at 0x900000002ccfd18 ($t1)
0x900000002ccfd18 (nsgetcinfo+0x38) e8dd02b0 ld r6,0x2b0(r29)


The error is same when i hit CNTRL-C when am at any point in the while loop. So i am not able to trace the issue.

Please help. Lots of malloc and realloc is used. Anything to change while porting from 32-bit to 64-bit?
Malloc format used is

Code:
char *str1 = NULL;
int intStartIndex = 10; /*returns from other function*/
str1 = (char*)malloc((intStartIndex+1) * sizeof(char));
strcpy(str1,"");
strcpy(str1,str2); /*str2 is a character pointer with length 10*/
Please help. I am fed up with this problem for last one week!!
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0