On Mon, 28 Nov 2005 11:06:55 +0100 Frederick MOUSNIER-LOMPRE <[EMAIL PROTECTED]> babbled:
> Hi, > I'm working on a project that uses Ewl Library and in order to debug > my program, i launched it with a preload of the electric fence library > and i got a warning about a "Allocating 0 bytes" in the Evas library > through the Ewl Library. fixed :) > Here is the backtrace from gdb in order to help you : > #0 0xffffe410 in __kernel_vsyscall () > #1 0xb7eac476 in kill () from /lib/tls/i686/cmov/libc.so.6 > #2 0xb7fe700d in EF_Abort () from /usr/lib/libefence.so > #3 0xb7fe673d in memalign () from /usr/lib/libefence.so > #4 0xb7fe6b49 in malloc () from /usr/lib/libefence.so > #5 0xb7bc2455 in tilebuf_setup (tb=0xb2a87fe4) at evas_tiler.c:262 > #6 0xb7bc292e in evas_engine_software_x11_output_setup (w=0, h=0, > rot=0, disp=0xb6ac1ac8, draw=65011714, vis=0xb6ae1fc0, cmap=32, > depth=24, debug=0, grayscale=0, max_colors=0, mask=0, > shape_dither=0) at evas_engine.c:294 > #7 0xb7bc27c0 in evas_engine_software_x11_setup (e=0xb2bbaf40, > in=0xb398afb0) at evas_engine.c:225 > #8 0xb7b8fd90 in evas_engine_info_set (e=0xb2bbaf40, info=0xb7fe84a8) > at evas_main.c:361 > #9 0xb7e168b7 in ewl_window_realize_cb (w=0xb39ccd7c, ev_data=0x0, > user_data=0x0) at ewl_window.c:777 > #10 0xb7d84078 in ewl_callback_call_with_event_data (w=0xb39ccd7c, > t=EWL_CALLBACK_REALIZE, ev_data=0x0) at ewl_callback.c:441 > #11 0xb7d83c6b in ewl_callback_call (w=0xb39ccd7c, > t=EWL_CALLBACK_EXPOSE) at ewl_callback.c:372 > #12 0xb7e08756 in ewl_widget_realize (w=0xb39ccd7c) at ewl_widget.c:197 > #13 0xb7dbfab5 in ewl_realize_queue () at ewl_misc.c:732 > #14 0xb7dbe34c in ewl_idle_render (data=0x0) at ewl_misc.c:364 > #15 0xb799b359 in _ecore_idle_enterer_call () at ecore_idle_enterer.c:78 > #16 0xb799da1d in _ecore_main_loop_iterate_internal (once_only=0) at > ecore_main.c:477 > #17 0xb799d14c in ecore_main_loop_begin () at ecore_main.c:82 > #18 0xb7dbdf42 in ewl_main () at ewl_misc.c:296 > #19 0x08061e50 in main (argc=2, argv=0xbffff884) at main.c:132 > > I have looked in the evas_tiler.c file and i see that when malloc is called : > ---- evas_tiler.c:262 > tb->tiles.tiles = malloc(tb->tiles.w * tb->tiles.h * sizeof(Tilebuf_Tile)); > ---- > You never check if tb->tiles.w and tb->tiles.h could have a 0 value > before allocating some space. > > I don't know how the Evas Library works so i don't know what is the > better patch for this issue so i have no patch to propose :( > Moreover, i don't even know if it is not the Ewl library that should > not call this function with values that could lead to a "0 byte > allocation". > > Regards, > Frederick ML. > -- > "Lorsque ce que tu as programmé segfault, n'en > déduit pas forcement que le compilo est mal codé :)" > Student @ EPITA - PARIS - FRANCE - EUROPE - EARTH > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&opÌk > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
