Hi All,

I'm testing a daemon.At first, it run very well:
# pmap 23490|grep stack
08043000      20K rwx--    [ stack ]
D0FE4000       8K rwx-R    [ stack tid=2 ]
#
After some operations, I found that:
# pmap 23490|grep stack
00000000  131360K rwx--    [ stack ]
D0FE4000       8K rwx-R    [ stack tid=2 ]
#

It seemed the stack were smashed.
I looked into the codes, and found that this happened after a line of code
"unlink(path)" was executed with the path setting to be NULL.

Comparing the two outputs from pmap, it's interesting that
0x08043000+20K = 0x00000000+131360K. 

I guess that some base stack pointer was smashed.

Could anybody help me on analysis this issue?

Thanks a lot!
 
 
--
This messages posted from opensolaris.org

Reply via email to