Raised This Month: $ Target: $400
 0% 

My plugin got broken with latest Ubuntu 12.04 LTS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
taansari
Member
Join Date: Nov 2011
Old 06-19-2012 , 01:00   My plugin got broken with latest Ubuntu 12.04 LTS
Reply With Quote #1

Hi all!

I made a plug-in few months ago using Ubuntu 11.10 32 bit OS. It was (and still is) working fine for me. However, I had to deploy this over to a newer server : Ubuntu 12.04 LTS 64 bit. When that happened it simply did not load, giving me 'BADF' etc etc.

To check if it was because of my plug-in or the OS itself, I compiled the bare bone stub_mm plug-in and deployed there. It worked! So gradually I started moving in my CPP files inside that stub_mm plug-in, to a point where it refused to get loaded as well.

It was a simple singleton implementation of a 'Logger' class. To check what was going on I started commenting code inside this Logger class to a point where the stub plug-in again got loaded by latest Ubuntu server. Surprised, I investigated further and as of now, I've discovered that the 'new' and 'delete' operators are causing this plug-in from loading!

Now I'm wondering what on earth is that??

Does anyone have any idea what is going on with the latest server?

Thanks in advance for your guidance!
taansari is offline
taansari
Member
Join Date: Nov 2011
Old 06-19-2012 , 05:08   Re: My plugin got broken with latest Ubuntu 12.04 LTS
Reply With Quote #2

I solved the problem - thanks for the moral support.
taansari is offline
caterpy
New Member
Join Date: Jul 2012
Old 07-18-2012 , 11:16   Re: My plugin got broken with latest Ubuntu 12.04 LTS
Reply With Quote #3

I'm having the same problem.

How did you solve the it ? May you please share the fix with the community ?
caterpy is offline
taansari
Member
Join Date: Nov 2011
Old 09-05-2012 , 04:48   Re: My plugin got broken with latest Ubuntu 12.04 LTS
Reply With Quote #4

Quote:
Originally Posted by caterpy View Post
I'm having the same problem.

How did you solve the it ? May you please share the fix with the community ?
new and delete keywords need to be replaced with malloc and free counterparts, and code patched accordingly

p.s. Sorry logged on after a long time
taansari is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-07-2012 , 14:38   Re: My plugin got broken with latest Ubuntu 12.04 LTS
Reply With Quote #5

For that matter, make sure you have the 32-bit versions of various libraries installed.

As I recall, there's a meta-package named ia32-libs that installs the most common 32-bit libs. Although that was in 10.04, so that may have changed by 12.04.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



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 11:57.


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