开发者社区> 像教授> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

purify的API和提示信息代号

简介:
+关注继续查看





本文转自 xkdcc 51CTO博客,原文链接:http://blog.51cto.com/brantc/116670,如需转载请自行联系原作者 To use Purify API functions, include       <purifyhome>/purify.h in your code and link with             <purifyhome>/purify_stubs.a.
 
      In Makefile, you should write as follow for C++:
      LINK_FLAGS = -      L/usr/local/rational/releases/purify.i386_linux2.2003a.06.15/purify_staubs.a
LINK_PURIFY = purify –cache-dir=$(HOME)/.cache gcc       $(LINK_FLAGS)
      main.purify:$(OBJS)
       $(LINK_PURIFY) –lstdc++ -o main.purify $(OBJS)
 
Commonly used API functions
De.ion
int  purify_describe (char *addr)
Prints specific details about memory
int  purify_is_running (void)
Returns "TRUE" if the program is instrumented
int  purify_new_inuse (void)
Prints a message . all memory newly in use
int  purify_new_leaks (void)
Prints a message . all new leaks
int  purify_new_fds_inuse (void)
Lists the new open file de.ors
int  purify_printf (char *format, ...)
Prints formatted text to the Viewer or log-file
int  purify_watch (char *addr)
Watches for memory write, malloc, free
int  purify_watch_n (char *addr, int size, char *type)
Watches memory: type = "r", "w", "rw"
int  purify_watch_info (void)
Lists active watchpoints
int  purify_watch_remove (int watchno)
Removes a specified watchpoint
int  purify_what_colors (char *addr, int size)
Prints the color coding of memory
 
 

Purify messages

      Purify reports the following messages. For detailed, platform-specific information, see the Purify .line help system.
Message
De.ion
Severity*
Message
De.ion
Severity*
ABR
Array Bounds Read
W
NPR
Null Pointer Read
F
ABW
Array Bounds Write
C
NPW
Null Pointer Write
F
BRK
Misuse of Brk or Sbrk
C
PAR
Bad Parameter
W
BSR
Beyond Stack Read
W
PLK
Potential Leak(is memory that does not have a pointer to its beginning,but does have .e to its interior)
W
BSW
Beyond Stack Write
W
PMR
Partial UMR
W
COR
Core Dump Imminent
F
SBR
Stack Array Bounds Read
W
FIU
File De.ors In Use
I
SBW
Stack Array Bounds Write
C
FMM
Freeing Mismatched Memory
C
SIG
Signal
I
FMR
Free Memory Read
W
SOF
Stack Overflow
W
FMW
Free Memory Write
C
UMC
Uninitialized Memory Copy
W
FNH
Freeing Non Heap Memory
C
UMR
Uninitialized Memory Read
W
FUM
Freeing Unallocated Memory
C
WPF
Watchpoint Free
I
IPR
Invalid Pointer Read
F
WPM
Watchpoint Malloc
I
IPW
Invalid Pointer Write
F
WPN
Watchpoint Entry
I
MAF
Malloc Failure
I
WPR
Watchpoint Read
I
MIU
Memory In-Use
I
WPW
Watchpoint Write
I
MLK
Memory Leak
W
WPX
Watchpoint Exit
I
MRE
Malloc Reentrancy Error
C
ZPR
Zero Page Read
F
MSE
Memory Segment Error
W
ZPW
Zero Page Write
F
 
      * Message severity: F=Fatal, C=Corrupting, W=Warning, I=Informational

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
全球名校AI课程库(12)| CMU卡内基梅隆 · 数据库系统进阶课程『Advanced Database Systems』
数据库进阶课程,讨论了很多数据库方向的新技术,适合有数据库基础又想在该方向有深入研究的同学。
2105 0
RestTemplate的使用和原理你都烂熟于胸了吗?【享学Spring MVC】(下)
RestTemplate的使用和原理你都烂熟于胸了吗?【享学Spring MVC】(下)
57 0
Spring AOP:原理、 通知、连接点、切点、切面、表达式
Spring AOP:原理、 通知、连接点、切点、切面、表达式
216 0
Spring的包扫描开发与@Autowired与@Resource注解的区别(五)
Spring的包扫描开发与@Autowired与@Resource注解的区别(五)
135 0
Connection reset by peer
部署项目时A服务启动失败,报错: 14-Aug-2019 12:52:49.860 SEVERE [main] org.springframework.web.context.ContextLoader.
9953 0
Please pay more attention to the character set of your database
Recently, the vendors tried to install their systems in our office. Only had the vendors experience on Chinese platform.
504 0
+关注
文章
问答
文章排行榜
最热
最新
相关电子书
更多
重保场景及API安全指南
立即下载
APICloud服务CAF开发者
立即下载
API PLAYBOOK
立即下载