#tyndur · 2010-02-12
536 Nachrichten · Seite 2 von 3 · Original-CSV herunterladen
- eddybhow can a->b = c; (c being a #define'ed constant) to write to the c address?
- kwolfHm, Pedigree uses a completely different set of magic numbers. I couldn't interpret those. ;-)
- pcmattmankwolf: Elite Cafe ;)
- pcmattmaneddyb: If b overlaps c
- eddybs/to write/write/
- kwolfpcmattman: Sure, but isn't it tied to a certain error condition anyway? ;-)
- pcmattmanYou can try and blame everything else if you want, but those problems haven't come up anywhere else but the code you're writing now
- pcmattmankwolf: We sometimes use more than one magic number ;)
- pcmattmankwolf: I mean, one magic number more than once
- kwolfNot sure if it's clever to do this...
- eddybpcmattman: try and run ./Configure
- eddybwith that don't ask flag
- pcmattmankwolf: Usually the context of the error is the key, the logs are pretty verbose
- eddybat some point you'll get a deterministic 0x1337cafe
- pcmattmaneddyb: what on earth are you doing running ./Configure again?
- pcmattmanYeah, a deterministic 0x1337cafe right before it runs out of RAM
- eddybis the only deterministic way of getting that bug...
- eddybi get it sometimes from ext2
- pcmattmanUnless you can mathematically prove to me that your code is not at fault, your code is at fault to me
- kwolfpcmattman: It really helps to know "0xd00fc0de => use after free" and such things. So you can't defer that from your numbers?
- eddybi mean, while allocating from ext2
- pcmattmankwolf: Well, the allocator magic numbers are very well-defined
- pcmattmanThe important ones, anyway
- eddyb(NN) KERNELELF: Module network-stack finished executing
- eddyb(EE) Page Fault Exception at 0x1337cb02, error code 0x00000002, EIP 0xff42697b
- pcmattmanu comes after n
- pcmattmanuhci is being executed, most likely
- eddybnope
- eddybis usb-hcd
- eddybso comes after usb
- eddybwhich wasn't loaded yet
- pcmattmanThen your dependencies are completely wrong
- pcmattmanSeriously, *you're doing something wrong*
- eddyband it's in finaliseModule
- pcmattmanIt's not Pedigree!
- eddyband you want me to belive that?
- pcmattmanI'm not really giving you a choice
- eddybare you afraid of a 0xb00b1e55 clone?
- XanClicHm, thx
- pcmattmanI'm afraid of you wasting more time tracking down a bug when your code is at fault
- XanClicNice constant for niwohlOS
- eddyb-Policy_Binding(not demangled)->String::free->delete[]->SlamAllocator::free
- kwolfXanClic: Can't you create your own instead of stealing them all? ;-)
- eddybSlamAllocator::free is where *all* 1337cafe bugs end up
- XanClickwolf: No ;-)
- XanClicCreating constants would mean we still have some Niwoh
- eddyb0xb00bbeef :P
- pcmattmaneddyb: all the 1337cafe bugs end up in SlamAllocator::free because that's where it asserts that the magic value in the header is correct
- eddyband somehow it writes to the magic value... or an offset in it..
- pcmattmanAnd "it" in this case is your code
- pcmattmanNow fix it
- eddybif you don't want, i'll close the window and boot again, it won't appear
- eddyb=))
- pcmattmanYour code is corrupting the heap, which is the exact cause of this error
- eddybi never touched SlamAllocator::free and there it writes....
- pcmattmanI know it's your code, because my working copy boots fine on every piece of real hardware I own as well as in VPC, VMWare, VirtualBox and QEMU
- eddybit's not deterministic....
- pcmattmanHeap corruption bugs aren't deterministic
- pcmattmanBut I haven't run into anything like this in my working copy since before Foster came out
- eddybat bootup from ext2 it happened only 2 times
- eddybbut it's deterministic in ./Configure...
- eddyband btw, is right after the "Perl devs(i think) greet you. Do you greet back?"
- eddybso i don't think it runs out of memory *that* soon
- pcmattmanAgain, I haven't received that, just an "out of memory" error in 4 GB of RAM
- kwolfpcmattman: Now I know why you were thinking about user space drivers ;-)
- pcmattmankwolf: :)
- pcmattmaneddyb: also, I honestly do not recommend using ext2 at all
- pcmattmanAnyway, I'm off. Night all
- kwolfWhich reminds me that we might need to revise cdi/fs
- kwolfGood night
- eddybargh
- eddybthere he went
- eddybbecause i found out that no code touched by me(that isn't in the master) is runned until that error
- eddybalso, have you considered double free?
- kwolfWho is "you"?
- eddybmatt
- eddybbad timing XD
- kwolfWell, I'm not sure if you're interested in my opinion, but...
- kwolfYou are the one who gets the error. You should be the one to find the cause and fix it
- eddybhe wouldn't let me to...
- eddybhe doesn't belive the bug exists
- kwolfIf you can point to a bad line of code I'm sure he'll believe you. But you can't until now.
- eddybwell
- eddybi added a bunch of lines to test a condition...
- eddybnext time, if i'm right, i can come with a theory...
- eddybwhich mostly means double free
- eddyband if that object was freed then something else allocated, it's possible that the magic value overwrites the cache pointer, and then i get a call in the object referenced by the pointer...
- eddybbbs, food
- eddybi'd like more Bughunter :P
- XanClicSorry, but there's no /ns bug command ;-)
- eddyb/ns?
- XanClicabbreviation for /msg nickserv
- eddybaah
- eddybnice
- eddybirc or just konversation?
- XanClicI think it's konversation
- kwolfIf there was this command, I would have NickServ bug eddyb all the time ;-)
- XanClicBut www.euirc.net uses this abbreviation, too
- eddybhmm
- eddyband that Ghosthunter is your secondary nickname?
- XanClicYes
- eddybi have a /ghost
- eddybbut the problem is...
- eddybit sends an empty message
- eddybbefore it does it's job
- eddybactually, containing one space
- eddyb
- eddyblike^^^
- eddybXanClic: if i give you a pastebined part of my code(the one that setups the TD and the frame pointer), can you tell me what i'm missing?
- XanClicHm, dunno
- eddybif i set the frame pointer to 0, i get 0x30(HC process error+HC halted)...
- eddybbut if i change the PID field, i don't get any error
- XanClicGive me a week, maybe I'll be writing a new driver by then ;-)
- eddyba week?
- eddybfor what?
- XanClicpaloxena3 isn't far enough yet
- XanClicFirst of all, I need some driver infrastructure
- XanClicAnd I mean good infrastructure
- XanClicCDI doesn't have buses until yet (afaik?)
- eddybhttp://codepad.org/GJ7mD7sE
- eddyband http://codepad.org/llS8OhaY
- eddybit's small
- eddyband i don't see why it doesn't get to it
- eddybkeep it mind that it works in qemu
- XanClicHm, you set status to 0x80
- XanClicIn my TD structure that bit is reserved
- eddyblol?
- eddybit doesn't work in qemu
- eddyb(NN) USB: Device: QEMU USB Keyboard, class=0x3, subclass=0x1, proto=0x1
- eddybaah
- eddybtakes a little while
- eddyband i always get USBSTS 1
- XanClicI set status to 0x01
- eddybTD status?
- XanClicYes
- eddybfunny
- XanClicHm, wait a moment...
- XanClicLittle Endian is confusing...
- XanClicmom
- eddybXD
- eddybit's not like in datasheet
- XanClicOK, I set it to 0x80, too ;-)
- eddybeach dword had to be written from low to up(i mean the bit thingies in struct)
- eddyblike reading from right to left :P
- eddybeven so, it *does* work in qemu
- XanClicI have just the same thing as you
- XanClicThough I don't reset the frame counter
- eddybi do async by resetting frame counter, starting HC, waiting for irq, stopping it :P
- eddyblol, why's always one port "connected"?
- eddybi got one device and two ports with connected bit set...
- eddybif i have no device, i still have one with connected...
- eddybanyway...
- eddybwhat am i missing?
- kwolfXanClic: We can get cdi_provide_device and IDC in this weekend if you're finally interested in it ;-)
- XanClicHm, let's see ;-)
- quokmoin
- XanClicMoin, quok
- kwolfMoin quok
- kwolfOr if anyone is interested in it... I think I'll still be busy with the mem.h stuff
- eddybwtf is wrong with my code?
- kwolfThe semantics, I guess
- eddyb??
- kwolfWell, if it was syntax, the compiler would tell you. And I think you wouldn't care about style. So it must be semantics that is wrong.
- eddybi meant "what i forgot to do?!"
- eddybcan someone point me to the differences between newlib and glibc and how could glibc be "emulated" by newlib?
- eddybXanClic: any idea about my code or should i give up
- XanClicGive up *g*
- XanClicnewlib is crap
- XanClicThat's it ;-)
- eddybnewlib?
- XanClicYes
- eddybwe *use* newlib in the posix subsystem
- XanClicDoesn't change my opinion about it ;-)
- eddybwhat's teh difference?
- eddyb*s
- XanClicNewlib contains many stubs before you replace them
- XanClice.g., the directory functions
- XanClicIt doesn't tell you they don't work if you don't replace them explicitly
- eddybi know(think) avr-libc is based on newlib...
- XanClicI think that's not very good ;-)
- eddybwtf?
- XanClicFurthermore, the printf was broken
- XanClicAt least in my version of it
- XanClicafk
- eddybre:my code...
- eddybbefore i'm giving up, i'll try on that old machine
- eddybmaybe the changes will do something
- eddybif you want to contribute to the progress of humanity, i can give you a 1.8MB ISO
- eddyb:P
- quok humanity be damned
- quok;)
- eddybhttp://en.wikipedia.org/wiki/Embedded_Linux
- eddyblol, does your plasma got latest kernel?
- XanClicIf I got the latest kernel?
- eddybno, i was talking of that wiki page
- eddybLCD and plasma TVs from LG, Panasonic, Samsung, Sony [2]
- quokGerman phrase of the day: " Ich möchte Sie zum Abendessen einladen.
- quok"
- quokcouldn't forget my closing " :) Wouldn't want anyone to return EPARSE ;)
- XanClicHm, what's the actual sense of those phrases?