Hey, I have a program that fails on realloc. dbx reports:
t...@1 (l...@1) signal SEGV (no mapping at the fault address) in t_splay at 0xd078b710 0xd078b710: t_splay+0x007e: movl %ebx,0x00000008(%eax) Current function is _eina_strbuf_resize 521 buffer = realloc(buf->buf, new_size); The complete backtrace is: current thread: t...@1 [1] t_splay(0x81645f8, 0xd08835a0, 0x6872, 0xd078b56a), at 0xd078b710 [2] t_delete(0x81645f8, 0x8046c84, 0xd07e7959, 0xd078b24e), at 0xd078b58d [3] realfree(0x8164588, 0x8046ca4, 0xd07e440f, 0xd078b8ce), at 0xd078b2a5 [4] cleanfree(0x81814e8, 0xd087f000, 0x8046cf8, 0xd078ae66), at 0xd078b914 [5] realloc(0x81814e8, 0x80), at 0xd078aeb0 =>[6] _eina_strbuf_resize(buf = 0x818bfb8, size = 118U), line 521 in "eina_strbuf.c" [7] eina_strbuf_append(buf = 0x818bfb8, str = 0x8181738 "/export/home/torri/local/e17/share/elementary/themes/default.edj"), line 129 in "eina_strbuf.c" [8] _edje_textblock_style_parse_and_fix(edf = 0x8181490), line 370 in "edje_textblock_styles.c" [9] _edje_file_open(file = 0x8046f1c "/export/home/torri/local/e17/share/elementary/themes/default.edj", coll = (nil), error_ret = 0x8046ed4, edc_ret = (nil)), line 209 in "edje_cache.c" [10] _edje_cache_file_coll_open(file = 0x8046f1c "/export/home/torri/local/e17/share/elementary/themes/default.edj", coll = (nil), error_ret = 0x8046ed4, edc_ret = (nil)), line 266 in "edje_cache.c" [11] edje_file_group_exists(file = 0x8046f1c "/export/home/torri/local/e17/share/elementary/themes/default.edj", glob = 0x804736c "elm/bg/base/default"), line 187 in "edje_load.c" [12] _elm_theme_find_try(f = 0x8046f1c "/export/home/torri/local/e17/share/elementary/themes/default.edj", group = 0x804736c "elm/bg/base/default"), line 14 in "elm_theme.c" [13] _elm_theme_theme_element_try(home = 0x8047d03 "/export/home/torri", f = 0x8149948 "default", group = 0x804736c "elm/bg/base/default"), line 44 in "elm_theme.c" [14] _elm_theme_group_file_find(group = 0x804736c "elm/bg/base/default"), line 70 in "elm_theme.c" [15] _elm_theme_set(o = 0x816afe0, clas = 0xd1766a14 "bg", group = 0xd1766a18 "base", style = 0xd1766a20 "default"), line 163 in "elm_theme.c" [16] elm_bg_add(parent = 0x816a1b8), line 88 in "elm_bg.c" [17] my_win_main(), line 112 in "test.c" [18] elm_main(argc = 1, argv = 0x8047824), line 229 in "test.c" [19] main(argc = 1, argv = 0x8047824), line 238 in "test.c" the buffer buf is allocated buf->buf is also allocated then realloc is called on buf->buf and hop! crash I have no idea of what the problem can be... eina_strbuf.c can be found here: http://trac.enlightenment.org/e/browser/trunk/eina/src/lib/eina_strbuf.c and edje_textblock_styles.c can e found here: http://trac.enlightenment.org/e/browser/trunk/edje/src/lib/edje_textblock_styles.c thank you for any remark, help, advice, etc... Vincent Torri
_______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
