[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] Segfault in equate using scientific mode



Adding a valgrind test : `valgrind --tool=memcheck --trace-children=yes
--track-fds=yes --log-file=equate.valgrind --error-limit=no
--leak-check=full equate -s`.

Attached the log file. Hope will help.
Again,
Marc-André Landry
lma1980...gmail.com

==28400== Memcheck, a memory error detector.
==28400== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==28400== Using LibVEX rev 1606, a library for dynamic binary translation.
==28400== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==28400== Using valgrind-3.2.0, a dynamic binary instrumentation framework.
==28400== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==28400== For more details, rerun with: -v
==28400== 
==28400== My PID = 28400, parent PID = 27343.  Prog and args are:
==28400==    equate
==28400==    -s
==28400== 
==28400== Conditional jump or move depends on uninitialised value(s)
==28400==    at 0x413A6F5: ewl_widget_show (ewl_widget.c:326)
==28400==    by 0x804AC23: draw_ewl (gui.c:400)
==28400==    by 0x804ADBF: equate_init_gui (gui.c:252)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== Conditional jump or move depends on uninitialised value(s)
==28400==    at 0x4132AC2: ewl_widget_type_is (ewl_widget.c:1587)
==28400==    by 0x413A70F: ewl_widget_show (ewl_widget.c:327)
==28400==    by 0x804AC23: draw_ewl (gui.c:400)
==28400==    by 0x804ADBF: equate_init_gui (gui.c:252)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== Use of uninitialised value of size 4
==28400==    at 0x4132AD3: ewl_widget_type_is (ewl_widget.c:1592)
==28400==    by 0x413A70F: ewl_widget_show (ewl_widget.c:327)
==28400==    by 0x804AC23: draw_ewl (gui.c:400)
==28400==    by 0x804ADBF: equate_init_gui (gui.c:252)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== Invalid read of size 4
==28400==    at 0x4132AD3: ewl_widget_type_is (ewl_widget.c:1592)
==28400==    by 0x413A70F: ewl_widget_show (ewl_widget.c:327)
==28400==    by 0x804AC23: draw_ewl (gui.c:400)
==28400==    by 0x804ADBF: equate_init_gui (gui.c:252)
==28400==    by 0x804D4F1: main (main.c:107)
==28400==  Address 0x152 is not stack'd, malloc'd or (recently) free'd
==28400== 
==28400== Process terminating with default action of signal 11 (SIGSEGV)
==28400==  Access not within mapped region at address 0x152
==28400==    at 0x4132AD3: ewl_widget_type_is (ewl_widget.c:1592)
==28400==    by 0x413A70F: ewl_widget_show (ewl_widget.c:327)
==28400==    by 0x804AC23: draw_ewl (gui.c:400)
==28400==    by 0x804ADBF: equate_init_gui (gui.c:252)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== FILE DESCRIPTORS: 8 open at exit.
==28400== Open file descriptor 7: /usr/share/ewl/themes/e17.edj
==28400==    at 0x47A37A3: __open_nocancel (in /lib/libc-2.4.so)
==28400==    by 0x4756FD0: _IO_file_fopen@@GLIBC_2.1 (fileops.c:332)
==28400==    by 0x474C5AC: __fopen_internal (iofopen.c:93)
==28400==    by 0x474C60B: fopen@@GLIBC_2.1 (iofopen.c:107)
==28400==    by 0x44B548F: eet_open (eet_lib.c:544)
==28400==    by 0x42246B5: _edje_cache_file_coll_open (edje_cache.c:73)
==28400==    by 0x4219A0C: edje_file_data_get (edje_load.c:484)
==28400==    by 0x41218CF: ewl_theme_data_str_get (ewl_theme.c:483)
==28400==    by 0x4122D48: ewl_theme_init (ewl_theme.c:196)
==28400==    by 0x40D7509: ewl_init (ewl_misc.c:219)
==28400==    by 0x804ADB4: equate_init_gui (gui.c:251)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== Open AF_UNIX socket 6: <unknown>
==28400==    at 0x47B3577: socket (in /lib/libc-2.4.so)
==28400==    by 0x46076B4: _X11TransSocketOpenCOTSClientBase (Xtranssock.c:565)
==28400==    by 0x4608BD2: _X11TransOpen (Xtrans.c:461)
==28400==    by 0x45E4058: _X11TransConnectDisplay (ConnDis.c:363)
==28400==    by 0x45F77CC: XOpenDisplay (OpenDis.c:154)
==28400==    by 0x424FD7F: ecore_x_init (ecore_x.c:180)
==28400==    by 0x4034624: ee_init (ewl_engine_x11.c:146)
==28400==    by 0x4034C81: ewl_engine_create (ewl_engine_x11.c:127)
==28400==    by 0x408A850: ewl_engine_new (ewl_engines.c:247)
==28400==    by 0x408A808: ewl_engine_new (ewl_engines.c:234)
==28400==    by 0x40D6867: ewl_init (ewl_misc.c:161)
==28400==    by 0x804ADB4: equate_init_gui (gui.c:251)
==28400== 
==28400== Open AF_UNIX socket 5: /home/xeno/.ecore/equate/7
==28400==    at 0x47B3577: socket (in /lib/libc-2.4.so)
==28400==    by 0x4273F56: ecore_ipc_server_add (ecore_ipc.c:339)
==28400==    by 0x426C3FE: _ecore_config_ipc_ecore_init (ecore_config_ipc_ecore.c:325)
==28400==    by 0x426BA31: _ecore_config_ipc_init (ecore_config_ipc_main.c:263)
==28400==    by 0x42697B9: do_init (ecore_config.c:1607)
==28400==    by 0x426A9B8: ecore_config_init (ecore_config.c:1626)
==28400==    by 0x804D32D: main (main.c:68)
==28400== 
==28400== Open AF_UNIX socket 4: /home/xeno/.ecore/_system/29
==28400==    at 0x47B3577: socket (in /lib/libc-2.4.so)
==28400==    by 0x4273F56: ecore_ipc_server_add (ecore_ipc.c:339)
==28400==    by 0x426C3FE: _ecore_config_ipc_ecore_init (ecore_config_ipc_ecore.c:325)
==28400==    by 0x426BA31: _ecore_config_ipc_init (ecore_config_ipc_main.c:263)
==28400==    by 0x42697B9: do_init (ecore_config.c:1607)
==28400==    by 0x426A857: _ecore_config_system_init_no_load (ecore_config.c:1650)
==28400==    by 0x426A93E: ecore_config_init (ecore_config.c:1678)
==28400==    by 0x804D32D: main (main.c:68)
==28400== 
==28400== Open file descriptor 3: /home/xeno/equate.valgrind.28400
==28400==    <inherited from parent>
==28400== 
==28400== Open file descriptor 2: /dev/pts/4
==28400==    <inherited from parent>
==28400== 
==28400== Open file descriptor 1: /dev/pts/4
==28400==    <inherited from parent>
==28400== 
==28400== Open file descriptor 0: /dev/pts/4
==28400==    <inherited from parent>
==28400== 
==28400== 
==28400== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 194 from 1)
==28400== malloc/free: in use at exit: 97,295 bytes in 1,598 blocks.
==28400== malloc/free: 3,890 allocs, 2,292 frees, 883,045 bytes allocated.
==28400== For counts of detected errors, rerun with: -v
==28400== searching for pointers to 1,598 not-freed blocks.
==28400== checked 689,824 bytes.
==28400== 
==28400== 
==28400== 4 bytes in 1 blocks are definitely lost in loss record 3 of 120
==28400==    at 0x40215E8: malloc (vg_replace_malloc.c:149)
==28400==    by 0x402D62B: ewl_engine_dependancies (ewl_engine_evas_software_x11.c:32)
==28400==    by 0x408A7DB: ewl_engine_new (ewl_engines.c:222)
==28400==    by 0x40D6867: ewl_init (ewl_misc.c:161)
==28400==    by 0x804ADB4: equate_init_gui (gui.c:251)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== 
==28400== 5 bytes in 1 blocks are definitely lost in loss record 5 of 120
==28400==    at 0x40215E8: malloc (vg_replace_malloc.c:149)
==28400==    by 0x494B11D: ee_init (ewl_engine_evas.c:90)
==28400==    by 0x494B2E1: ewl_engine_create (ewl_engine_evas.c:75)
==28400==    by 0x408A850: ewl_engine_new (ewl_engines.c:247)
==28400==    by 0x408A808: ewl_engine_new (ewl_engines.c:234)
==28400==    by 0x40D6867: ewl_init (ewl_misc.c:161)
==28400==    by 0x804ADB4: equate_init_gui (gui.c:251)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== 
==28400== 5 bytes in 1 blocks are definitely lost in loss record 7 of 120
==28400==    at 0x40215E8: malloc (vg_replace_malloc.c:149)
==28400==    by 0x402D60B: ewl_engine_dependancies (ewl_engine_evas_software_x11.c:33)
==28400==    by 0x408A7DB: ewl_engine_new (ewl_engines.c:222)
==28400==    by 0x40D6867: ewl_init (ewl_misc.c:161)
==28400==    by 0x804ADB4: equate_init_gui (gui.c:251)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== 
==28400== 18 bytes in 1 blocks are definitely lost in loss record 19 of 120
==28400==    at 0x40215E8: malloc (vg_replace_malloc.c:149)
==28400==    by 0x402CD6F: ee_init (ewl_engine_evas_software_x11.c:64)
==28400==    by 0x402CF51: ewl_engine_create (ewl_engine_evas_software_x11.c:49)
==28400==    by 0x408A850: ewl_engine_new (ewl_engines.c:247)
==28400==    by 0x40D6867: ewl_init (ewl_misc.c:161)
==28400==    by 0x804ADB4: equate_init_gui (gui.c:251)
==28400==    by 0x804D4F1: main (main.c:107)
==28400== 
==28400== 
==28400== 231 bytes in 9 blocks are definitely lost in loss record 74 of 120
==28400==    at 0x40215E8: malloc (vg_replace_malloc.c:149)
==28400==    by 0x476038F: strdup (strdup.c:43)
==28400==    by 0x426A294: ecore_config_typed_val (ecore_config.c:486)
==28400==    by 0x426A331: ecore_config_typed_add (ecore_config.c:537)
==28400==    by 0x426A53A: ecore_config_typed_default (ecore_config.c:884)
==28400==    by 0x426A76B: ecore_config_string_default (ecore_config.c:1025)
==28400==    by 0x426A8A0: _ecore_config_system_init_no_load (ecore_config.c:1769)
==28400==    by 0x426A93E: ecore_config_init (ecore_config.c:1678)
==28400==    by 0x804D32D: main (main.c:68)
==28400== 
==28400== LEAK SUMMARY:
==28400==    definitely lost: 263 bytes in 13 blocks.
==28400==      possibly lost: 0 bytes in 0 blocks.
==28400==    still reachable: 97,032 bytes in 1,585 blocks.
==28400==         suppressed: 0 bytes in 0 blocks.
==28400== Reachable blocks (those to which a pointer was found) are not shown.
==28400== To see them, rerun with: --show-reachable=yes