![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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*/ |
| Sponsored Links | ||
|
|