#nuvie@irc.freenode.net logs for 1 Aug 2003 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage

[02:56:58] --> Kirben has joined #nuvie
[08:56:02] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[08:56:42] --> Kirben has joined #nuvie
[08:57:02] --- sbx|afk is now known as sbx
[10:43:54] <-- Kirben has left IRC (Read error: 54 (Connection reset by peer))
[10:47:41] --> Kirben has joined #nuvie
[12:35:02] --> Yuv422 has joined #nuvie
[12:35:13] <Yuv422> hi
[12:54:35] <sbx> hey Yuv
[12:54:59] <sbx> i dont know what is causing segfaults in nuvie now, related to books
[12:55:28] <sbx> it might be memory corruption from something i did in U6UseCode
[12:55:35] <sbx> or a bug in U6Lib
[12:55:56] <sbx> somehow items in book.dat that aren't compressed are getting a compressed flag
[12:56:10] <sbx> and passing junk data as the "uncomp_size" to lzw
[12:56:14] <sbx> but passing buf as null
[12:56:39] <sbx> but it only happened after i added some new usecode
[12:57:10] <sbx> and when i was using a constant to set the number of usecode objects, setting it from 1-6 was no problem, setting it to 7 caused a problem when i tried to look at a book
[12:57:21] <sbx> even though i wasnt calling the usecode function at all yet
[12:57:32] <sbx> it just happened when the array was allocated with 7 objects
[12:57:52] <sbx> and now i changed it to a dynamic array but looking at pictures still causes the crash
[13:17:48] <Yuv422> hmm
[13:18:08] <Yuv422> maybe you should run it through a malloc debugger.
[13:18:19] <Yuv422> see if your trashing memory any ware
[13:19:37] <sbx> do you have one?
[13:19:44] <Yuv422> yeah
[13:19:45] <sbx> i can commit it and you can check for me
[13:19:56] <Yuv422> don't commit unstable stuff ;)
[13:20:10] <Yuv422> can you send me a patch on the latest cvs?
[13:20:18] <sbx> ok
[13:20:21] <Yuv422> or a copy of the source
[13:24:54] <sbx> Yuv?
[13:24:59] <Yuv422> yup
[13:25:02] <sbx> i made a zip
[13:25:08] <Yuv422> righto
[13:25:15] <sbx> i only included the files i think are changed
[13:25:28] <Yuv422> ah k
[13:26:24] <Yuv422> and where did you say it was faulting?
[13:26:53] <sbx> gdb says lzw
[13:27:01] <sbx> because its getting incorrect data
[13:27:04] <sbx> look at a picture
[13:27:41] <sbx> if i sent you the correct files and it compiles :)
[13:28:35] <Yuv422> compiling now
[13:29:19] <Yuv422> Project Builder crashed :(
[13:29:30] <Yuv422> compiling again ;)
[13:30:11] <Yuv422> what methods should I be looking at?
[13:31:14] <sbx> wherever there is thrashed memory?
[13:31:21] <sbx> i dont know what the problem is :\
[13:31:34] <Yuv422> what causes it to crash for you?
[13:31:40] <sbx> look at a picture
[13:31:46] <sbx> U6Lib_n is saying the item is compressed
[13:31:50] <sbx> but its not
[13:32:10] <Yuv422> a painting on the wall?
[13:32:17] <Yuv422> or a portrait picture?
[13:32:22] <sbx> oops, painting
[13:32:37] <Yuv422> it's not crashing
[13:32:41] <sbx> !
[13:32:44] <sbx> damn?
[13:32:51] <Yuv422> let me check the memory
[13:32:57] <sbx> hehe
[13:33:03] <sbx> i might have to check it here after all
[13:33:59] <sbx> console must say "Usecode #4 (143:0), event 0x02 (LOOK)" when you look at the painting
[13:35:14] <Yuv422> which painting are you looking at?
[13:35:25] <sbx> the one in the throne room
[13:35:29] <sbx> they should all do the same thing
[13:35:56] <Yuv422> I get. Usecode #4 (143:0), event 0x02 (LOOK)
[13:35:58] <Yuv422> no crash
[13:36:10] <sbx> ah
[13:36:15] <sbx> rgh
[13:36:16] <Yuv422> what are you trying to do with use code?
[13:36:19] <sbx> so thanks anyway for checking :)
[13:36:24] <sbx> i just added look event
[13:36:40] <sbx> but even before i started calling it the crash occured
[13:36:47] <sbx> so its not the new methods causing it
[13:37:08] <sbx> it seemed to be affected by the number of usecode functions declared though
[13:37:28] <sbx> when i had them in an array i couldnt look at anything without crashing
[13:37:46] <Yuv422> hmm
[13:37:49] <sbx> i mean in a static array
[13:38:01] <Yuv422> maybe you should get a memory checker
[13:38:04] <Yuv422> :)
[13:38:09] <sbx> yeah
[13:38:11] <sbx> whats a good one?
[13:38:31] <Yuv422> Mine is garbled at the moment as I'm using an incompatible version of gcc (so I can compile pentagram & exult) ;)
[13:39:13] <Yuv422> dmalloc
[13:39:24] <sbx> ok thanks
[13:39:36] <sbx> Usecode #4 (143:0), event 0x02 (LOOK)
[13:39:36] <sbx> Program received signal SIGSEGV, Segmentation fault.
[13:39:37] <sbx> #0 0x8058928 in U6LzwDict::get_root (this=0x40600440, codeword=136502000)
[13:39:37] <sbx> at files/U6Lzw.cpp:469
[13:39:37] <sbx> #1 0x805877c in U6Lzw::get_string (this=0xbffff6a0, codeword=136502000)
[13:39:37] <sbx> at files/U6Lzw.cpp:373
[13:39:39] <sbx> #2 0x8058251 in U6Lzw::decompress_buffer (this=0xbffff6a0,
[13:39:41] <sbx> source=0x40620024 " is a a very fancy portrait of you. At the bottom of the frame, a small plaque reads simply \"The Avatar\". The portrait is signed \"Woodroffe\" in the lower right hand corner.", source_length=177, destination=0x0,
[13:39:44] <sbx> destination_length=1936287828) at files/U6Lzw.cpp:229
[13:39:55] <sbx> #3 0x80579e6 in U6Lib_n::get_item (this=0x82374a4, item_number=98,
[13:39:55] <sbx> ret_buf=0x0) at files/U6Lib_n.cpp:134
[13:40:28] <Yuv422> yeah it's probably in your new usecode code ;)
[13:40:48] <sbx> but you have it too
[13:40:50] <Yuv422> http://dmalloc.com/
[13:40:58] <sbx> so i wonder what strange corruption i'd be causing
[13:41:18] <Yuv422> different systems have different tollerences to these sorts of errors
[13:41:54] <Yuv422> I'm also using a different compiler so I might see the effects of the bug is a different way.
[13:41:59] <sbx> oh
[13:42:01] <Yuv422> memory bugs are evil! ;)
[13:42:13] <sbx> definately
[13:42:18] <sbx> i hope its not a compiler bug
[13:42:24] <sbx> i did something that crashed GCC a few hours ago
[13:42:27] <Yuv422> best get them tracked down ASAP. ;)
[13:43:37] <sbx> you notice the destination_length= in that backtrace?
[13:43:46] <sbx> U6Lzw::decompress_buffer
[13:43:46] <Yuv422> hehe
[13:43:56] <Yuv422> that's a normal value right!? ;)
[13:44:43] * sbx gets dmalloc rpm.
[13:45:07] <sbx> oh yes of course
[13:45:29] <sbx> the avatar was downloading an entire encyclopedia from lord british's computer
[13:46:43] <Yuv422> 1.9 gig ;)
[13:51:18] <sbx> he must have also wanted LB's mp3 collection
[13:53:34] <Yuv422> time for bed
[13:53:49] <Yuv422> good luck tracking down yourmem bug. :)
[13:54:15] <sbx> thanks
[13:54:18] <sbx> if thats what it is
[13:54:23] * sbx installs dmalloc.
[13:54:32] <Yuv422> cya
[13:54:35] <-- Yuv422 has left IRC ("[BX] Reserve your copy of BitchX-1.0c19 for the Apple Newton today!")
[15:49:07] --> wjp has joined #nuvie
[16:58:20] --> Kirben2 has joined #nuvie
[16:58:20] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[17:51:18] <-- wjp has left IRC ("bbl")
[18:02:58] <-- Kirben2 has left IRC ("System Meltdown")
[18:36:04] <-- laxdragon has left IRC (Read error: 110 (Connection timed out))
[19:18:53] --- sbx is now known as sbx|afk
[19:54:02] --> wjp has joined #nuvie
[22:30:30] * sbx|afk adds food eating to Nuvie.
[22:30:33] * sbx|afk makes doors edible.
[22:32:37] <wjp> :-)
[22:32:46] * wjp takes a quick bite out of the nearest door
[22:34:13] <sbx|afk> but only oaken doors, the others seem to be too tough to bite into
[22:50:10] <-- sbx|afk has left IRC ("cya")