Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I am getting a following error when going through Core dump file.
- Program terminated with signal 11, Segmentation fault.
- (no debugging symbols found).../shpepr2/OraD11/Oracle/920/lib/libclntsh.sl.9.0: No such file or directory.
- /shpepr2/OraD11/Oracle/920/lib/libtracepls9.sl: No such file or directory.
- (no debugging symbols found).../shpepr2/OraD11/Oracle/920/lib/libwtc9.sl: No such file or directory.
- (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
- (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...#0 0xc000000000271580 in strncpy+0x270 ()
- from /usr/lib/pa20_64/libc.2
- (gdb) backtrace
- #0 0xc000000000271580 in strncpy+0x270 () from /usr/lib/pa20_64/libc.2
- #1 0x4000000000004694 in loadVIN_Codes+0x4c4 ()
- #2 0x400000000000514c in processVIN+0x13c ()
- #3 0x40000000000061ec in processInputFile+0x22c ()
- #4 0x4000000000006850 in main+0x1d0 ()
- static void loadVIN_Codes(
- const char VIN[],
- int WERS_Codes,
- const tWERS_CodeInfo WERS_Code[],
- const char CSO[])
- {
- EXEC SQL BEGIN DECLARE SECTION;
- char SQLSTATE[6];
- const char *hVIN = VIN;
- const tWERS_CodeInfo *info;
- char hWERS_CODE[6];
- char VIN34[3];
- char hwers_plant[6];
- char hwers_drive[6];
- int steer_pos;
- char hmod_code[2];
- char steer_code[2];
- EXEC SQL END DECLARE SECTION;
- int i = 0;
- int DR_Found = FALSE;
- int APL_Found = TRUE;
- /* Checking the DR WERS Codes in the incoming file for a particular VIN */
- while(i < WERS_Codes) {
- if (strncmp(WERS_Code[i].code,"DR",2) == 0)
- {
- DR_Found = TRUE;
- break;
- }
- i++;
- }
- if (VIN[10] != 'A' && VIN[3] =='L')
- {
- strncpy(VIN34,&hVIN[3],2);
- VIN34[2]='