- 论坛徽章:
- 0
|
我的程序运行在SunOS 5.8上。
程序运行过程中会出中断,而且总是出在与malloc相关的地方,如:malloc,fputs,printf 而且出问题的地址好象都是一样的“in realfree at 0xfee41b78”
例如:
t@36 (l@3) signal SEGV (no mapping at the fault address) in realfree at 0xfee41b78
0xfee41b78: realfree+0x0108: st %i3, [%i3 + %o0]
Current function is LwtRecvTask
304 printf("aaaaaaaaaaaaa\r\n",);
(dbx)where
current thread: t@36
[1] realfree(0x3987b60, 0xfeebe8b0, 0xfeeb8018, 0x3987b28, 0x39, 0x3987b30), at 0xfee41b78
[2] cleanfree(0x0, 0xfeeb8018, 0xfeebe824, 0xfeebe8a4, 0xfeebe824, 0x0), at 0xfee423e4
[3] _malloc_unlocked(0x4, 0x0, 0xfeeb8018, 0x8, 0xfecf9d98, 0x0), at 0xfee41518
[4] malloc(0x4, 0xfae0aeb4, 0xfecee000, 0x2, 0x1c054, 0xfee6e33 , at 0xfee4140c
例如:
dbx: warning: stepping up to a function with srcline info
t@48 (l@46) signal SEGV (no mapping at the fault address) in realfree at 0xfee41b78
0xfee41b78: realfree+0x0108: st %i3, [%i3 + %o0]
Current function is Func1
377 p_packet = (T_MyStruct*)malloc(wSLen);
(dbx)where
current thread: t@48
[1] realfree(0x39864c8, 0xfeebe8b0, 0xfeeb8018, 0x3986490, 0x39, 0x398649 , at 0xfee41b78
[2] cleanfree(0x0, 0xfeeb8018, 0xfeebe824, 0xfeebe8a4, 0xfeebe824, 0x0), at 0xfee423e4
[3] _malloc_unlocked(0x9, 0x0, 0xfeeb8018, 0x10, 0xfeebf1b8, 0x0), at 0xfee41518
[4] malloc(0x9, 0x0, 0x0, 0xfeebb7b1, 0xf9e03602, 0x119d6d), at 0xfee4140c |
|