Raised This Month: $ Target: $400
 0% 

[Core] get_func_id() crashing for plugins that failed loading


  
 
 
Thread Tools Display Modes
Author Message
-mE-
New Member
Join Date: Oct 2006
Location: Germany, Cologne
Old 10-05-2006 , 03:43   [Core] get_func_id() crashing for plugins that failed loading
#1

get_func_id()
seems to crash on plugins which previously failed loading, however does work fine on other plugins (which may or may not have this function)

I used to cycle through all plugins and after my update to AMXX 1.76a ( i386 ) started to notice frequent crashes, as I left a couple of plugins out which are now failing to load on startup and obviously the reason for the recent crashes:
Code:
for(new i=0;i<get_pluginsnum();i++){
  new func = get_func_id("funcname",i)
  if(func == -1) continue
  ...
}
IMO it should return -1 for those plugins aswell, as that's what's actually supposed to happen: it doesn't find the function, no matter what the state the plugin is in.

I'm not exactly sure if this would have happend in previous versions, because I always had all plugins at least loading fine
__________________

-mE- is offline
Send a message via ICQ to -mE-
BAILOPAN
Join Date: Jan 2004
Old 10-05-2006 , 11:40   Re: [Core] get_func_id() crashing for plugins that failed loading
#2

This bug was discovered by another user in IRC a few days ago, and a patch was already committed as revision 3112.

Nonetheless, thanks for the report this was a nasty one to catch.
__________________
egg
BAILOPAN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode