Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

coredump becasue of "/usr/lib/libc.2"

SowrdMan
Occasional Visitor

coredump becasue of "/usr/lib/libc.2"

Hi,there
I have a problem with "/usr/lib/libc.2" it aborts suddenly when the sofeware runing .And the infomation given by core file as follows:

#0 0xc016eee8 in strcmp+0x10 () from /usr/lib/libc.2
(gdb) where
#0 0xc016eee8 in strcmp+0x10 () from /usr/lib/libc.2
#1 0x862c in getImsiBelong () at roam_file.c:602
#2 0x7e2c in errCheckCDR () at roam_file.c:452
#3 0x7430 in getFileData () at roam_file.c:243
#4 0xd7fc in procOneFile () at roam_db.c:945
#5 0xd684 in procRoamFile () at roam_db.c:904
#6 0x4294 in main () at main.c:246
Cannot access memory at address 0x3128.

Some days before ,I haven meet with one same trouble, and the core told me that the line lead the coredump had a "strcpy"

Oh, All this paly on the Hp-UN 11.11
Can anyone tell me why?
Thank everyone!
1 REPLY
Dennis Handly
Acclaimed Contributor

Re: coredump becasue of "/usr/lib/libc.2"

>And the information given by core file as follows:
#0 0xc016eee8 in strcmp+0x10
#1 0x862c in getImsiBelong roam_file.c:602

You are passing a bad source or target pointer to strcmp. Or the target is read only.