Here is the part that makes it bug :
(B
(B#define SHALLOC_FRAGMENT 32
(B/*
(B* If there are at least SHALLOC_FRAGMENT additional bytes of
(B* memory, divide the chunk into two chunks.
(B*/
(Bif ((u_int8_t *)rp >=
(B(u_int8_t *)&elp->links + SHALLOC_FRAGMENT) {
(Bsp = rp;
(B//--------------- This instruction crashes -------------------------
(B*--sp = elp->len -
(B((u_int8_t *)rp - (u_int8_t *)&elp->links);
(B//------------------------------------------------------------------
(Belp->len -= *sp + sizeof(size_t);
(Breturn (0);
(B}
(B
(BSo what do we have :
(B
(Brp = 0xff281794 --> (u_int8_t *)rp = "Cannot access memory at 0xff281794"
(B
(Bsp = 0xff281790 ('--sp' is applied) --> (u_int8_t *)sp = "Cannot access
(Bmemory at 0xff281790"
(B
(B(u_int8_t *)&elp->links = -1 : i think it's ok.
(B
(Belp->len = 51008
(B
(BSo i guess the problem is first evaluating (u_int8_t *)rp, this pointer
(Bis not correct.
(B
(B
(BI have already heard that etox is being deprecated and replaced by
(Bevas_text_block, and i totally agree with the fact that it's a really
(Bminor issue ; you have many other priorities before that, and i can live
(Bwithout it begin corrected (yes i can ! ;-)).
(B
(BIf i have some free time, i'll try to correct it by myself. Don't waste
(Byour precious time ! There are ever-growing TODO lists to deal with, i
(Bguess you're not bored. :-p
(B
(BThanx for your answer. And for the hard work.
(B
(BCarsten Haitzler (The Rasterman) wrote:
(B
(B>On Tue, 19 Apr 2005 17:03:10 +0200 ORRY Lionel <[EMAIL PROTECTED]> babbled:
(B>
(B>  
(B>
(B>>Hi everybody  ;
(B>>
(B>>just for fun, i tried to compile the EFL in userspace on a SunBlade150 
(B>>with Solaris 2.8.
(B>>I got everything compiled and installed ; but i get a segfault on 
(B>>__edb_shalloc when i try to use an etox-based application, such as 
(B>>etox_test or ewl_test.
(B>>    
(B>>
(B>
(B>to be honest - we are working on deprecating etox - and thus edb will become 
(B>used less and less. it's already almost unused. :) that means it's likely not 
(B>worth hunting this bug down as 1. we don't run solaris and don't see the bug - 
(B>and if we don't see it, we can't easily hunt it down, and even if we do.. our 
(B>"Fixes" wont be useful for long :( if you can get us more gdb info that'd be 
(B>useful (listings, printings of the variable values etc.) as we need those to 
(B>have a better idea of whats going wrong (eg is sp NULL? or what?) :)
(B>
(B>  
(B>
(B>>Here is a backtrace with etox_test :
(B>>
(B>>#0  0xfec759f4 in __edb_shalloc (p=0xfe9602e0, len=536, align=4, 
(B>>retp=0x53de8) at edb_salloc.c:120
(B>>#1  0xfec32308 in __memp_ropen (edbmp=0x53d98, path=0x0, 
(B>>cachesize=40960, mode=384, is_private=1, flags=1) at mp_region.c:301
(B>>#2  0xfec2a834 in memp_open (path=0x0, flags=257, mode=384, 
(B>>edbenv=0x53d10, retp=0x53c5c) at mp_open.c:71
(B>>#3  0xfec66f48 in edb_open (fname=0xffbec0a0 
(B>>"/home/perso/orry/share/etox/colors.db", type=DB_HASH, flags=16384, 
(B>>mode=436, edbenv=0x0, edbinfo=0xffbec4a8, edbpp=0xffbec4f4) at edb.c:544
(B>>#4  0xfec486dc in __edb_nedbm_open (file=0x52bb8 
(B>>"/home/perso/orry/share/etox/colors", oflags=0, mode=436) at edbm.c:210
(B>>#5  0xfec09fc4 in e_db_open_read (file=0xff3820c8 
(B>>"/home/perso/orry/share/etox/colors.db") at e_db.c:302
(B>>#6  0xff380544 in _etox_style_color_init () at etox_style_color.c:116
(B>>#7  0xff37be8c in etox_style_new (evas=0x28ba8, text=0x53ac8 "The Etox 
(B>>Test utility consists in a series of test suites designed to exercise 
(B>>all of the etox functions.", style=0x52348 "shadow") at etox_style.c:45
(B>>#8  0xff376bb0 in _etox_break_text (et=0x53838, text=0x53ac8 "The Etox 
(B>>Test utility consists in a series of test suites designed to exercise 
(B>>all of the etox functions.") at etox.c:1142
(B>>#9  0xff375308 in etox_set_text (obj=0x53880, text=0x53ac8 "The Etox 
(B>>Test utility consists in a series of test suites designed to exercise 
(B>>all of the etox functions.") at etox.c:376
(B>>#10 0x12064 in setup () at etox_test.c:303
(B>>#11 0x127b0 in main (argc=1, argv=0xffbece4c) at etox_test.c:425
(B>>
(B>>I know i'm not in the optimal conditions for testing, but maybe it will 
(B>>help to find a new bug.
(B>>
(B>>Thanx in advance.
(B>>
(B>>Lionel
(B>>
(B>>
(B>>
(B>>-------------------------------------------------------
(B>>This SF.Net email is sponsored by: New Crystal Reports XI.
(B>>Version 11 adds new functionality designed to reduce time involved in
(B>>creating, integrating, and deploying reporting solutions. Free runtime info,
(B>>new features, or free trial, at: http://www.businessobjects.com/devxi/728
(B>>_______________________________________________
(B>>enlightenment-devel mailing list
(B>>[email protected]
(B>>https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
(B>>
(B>>    
(B>>
(B
(B
(B
(B-------------------------------------------------------
(BThis SF.Net email is sponsored by: New Crystal Reports XI.
(BVersion 11 adds new functionality designed to reduce time involved in
(Bcreating, integrating, and deploying reporting solutions. Free runtime info,
(Bnew features, or free trial, at: http://www.businessobjects.com/devxi/728
(B_______________________________________________
(Benlightenment-devel mailing list
([email protected]
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to