0x11 is a constant region in memory. A few things 1. if you are trying to write there, depending on how the compiler set things up, you could crash because it does not allow changing of basic constants. (chance: rare) 2. You have a hardware memory error. I was getting 0x5 a lot on certain locations... it was a bad memory stick (chance: rare). 3. You have a buffer overrun somewhere else in your code. This causes interesting affects in other parts of memory (chance: medium) 4. Bad build, recompile and delete all objects first. (chance: rare) 5. Bad assignment of variable pointers (chance: high)
Chris ----- Original Message ----- From: "Davion Kalhen" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, December 12, 2003 9:28 PM Subject: Confusing > Ok, I'm getting a really weird crash bug that I can't fix. The bt is > > 341 lang_free = lang_free->next; > (gdb) bt > #0 0x080ea9ae in lang_new () at language.c:341 > #1 0x080ea833 in lngedit_create (ch=0x4047612c, argument=0x404731c2 "leet") > at language.c:293 > #2 0x08141aa3 in do_lngedit (ch=0x4047612c, argument=0x404731c2 "leet") > at olc.c:2453 > #3 0x080e8d63 in interpret (ch=0x4047612c, argument=0x404731bb "create > leet") > at interp.c:259 > (gdb) p lang_free > $1 = (LANGUAGE *) 0x11 > > > Now this is the weird thing, it claims that lang_free is NULL, right? Well, > this is the code in question. > > LANGUAGE * lang_new(void) > { static LANGUAGE lang_zero; > LANGUAGE *pLng; > > if(lang_free == NULL ) > pLng = alloc_perm(sizeof(*pLng) ); > else > { pLng = lang_free; > lang_free = lang_free->next; //This is where it goes down > } > *pLng = lang_zero; > STRING_NEW(pLng->name); > return pLng; > } > > > And I'm fairly sure my syntax is all correct, as well as logic... any help > apreciated. > > Davion > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom > >

