This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Context

Old posts that have not been replied to for several years.
Locked
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Context

Post by Photon »

Hmmm.

Not sure if this is a question why or just a caveat to those who would come after me (:evil:) but I have found that if I use a Context; call in my _start function (just thought I should point out that I'm talking about modules here), then the bot crashes with a segment violation.

Not a mojor problem, I just left it out, but I do admit to being curious as to why. especially when woobie does it and gets away with it.

Bah...
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Very good point.

This is somthing that we would refer you to the eggheads mailing list.

vists Here to subscribe. THen you can post.
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

There's really no need to use Context any more, but I doubt it was JUST the Context causing the crash..

Wcc
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Could be you used it before the global function table was set up, i.e. this line:

global = global_funcs;
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

It was that I used it before setting up the global pointer - I did check for that - I know myself too well.

I also (through years of experience) doubt that its just that, but an _start function with purely that line in it (and a global assignment of course) caused it to crash.

I also sometimes get the same in _close. I've just stopped using it in those two functions, and the problems magically disappear.

Oh - ppslim - I will mail to the mailing list - just been busy this week - woo - actually coding for my job for once ... lol
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Hi, I'm not sure what you meant with your first line heh.

But anyway, try using gdb to see exactly what is making it crash. Or post the code :)
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

gdb??

(first line was b0rked by my brain - meant to say it WASNT that .. :oops:)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The quickest way to discribe how to use it.

Follow the last section of the BUGREPORT form.
Locked