summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkuri igen <kuri@e4.enlightenment.org>2011-02-09 09:22:51 +0100
committerkuri igen <kuri@e4.enlightenment.org>2011-02-09 09:22:51 +0100
commited357a6f9717ee5b89217b53d7c830a050b314ae (patch)
treec89ee273015d709725b5049fdb3b2efac994491b
parent37392ab4943e89326f88210329f31bd3653fd0dd (diff)
Deleted unnecessary logfile
Forgot to init to NULL an Eina_List
-rw-r--r--src/bin/log.txt181
-rw-r--r--src/bin/rules.c1
2 files changed, 1 insertions, 181 deletions
diff --git a/src/bin/log.txt b/src/bin/log.txt
deleted file mode 100644
index 45d27e1..0000000
--- a/src/bin/log.txt
+++ /dev/null
@@ -1,181 +0,0 @@
1==22091== Memcheck, a memory error detector
2==22091== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
3==22091== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
4==22091== Command: ./smman
5==22091==
6DBG<22091>:eina_module eina_module.c:709 eina_module_list_load() array 0x46b29b0, count 0
7DBG<22091>:eina_mempool eina_mempool.c:155 eina_mempool_register() be=0x42f2640, name=0x42ee351
8DBG<22091>:eina_mempool eina_mempool.c:155 eina_mempool_register() be=0x42f2660, name=0x42f15a3
9DBG<22091>:eina_mempool eina_mempool.c:337 eina_mempool_add() name=chained_mempool, context=list, options=
10DBG<22091>:eina_mempool eina_mempool.c:344 eina_mempool_add() name=chained_mempool, context=list, options=, mp=0x46b3020
11DBG<22091>:eina_mempool eina_mempool.c:337 eina_mempool_add() name=chained_mempool, context=list_accounting, options=
12DBG<22091>:eina_mempool eina_mempool.c:344 eina_mempool_add() name=chained_mempool, context=list_accounting, options=, mp=0x46b30e8
13DBG<22091>:eina_mempool eina_mempool.c:337 eina_mempool_add() name=chained_mempool, context=matrixsparse_cell, options=
14DBG<22091>:eina_mempool eina_mempool.c:344 eina_mempool_add() name=chained_mempool, context=matrixsparse_cell, options=, mp=0x46b4018
15DBG<22091>:eina_mempool eina_mempool.c:337 eina_mempool_add() name=chained_mempool, context=matrixsparse_row, options=
16DBG<22091>:eina_mempool eina_mempool.c:344 eina_mempool_add() name=chained_mempool, context=matrixsparse_row, options=, mp=0x46b40e8
17DBG<22091>:eina_mempool eina_mempool.c:337 eina_mempool_add() name=chained_mempool, context=rectangle-alloc, options=
18DBG<22091>:eina_mempool eina_mempool.c:344 eina_mempool_add() name=chained_mempool, context=rectangle-alloc, options=, mp=0x46b4338
19DBG<22091>:eina_mempool eina_mempool.c:337 eina_mempool_add() name=chained_mempool, context=rectangle, options=
20DBG<22091>:eina_mempool eina_mempool.c:344 eina_mempool_add() name=chained_mempool, context=rectangle, options=, mp=0x46b4408
21DBG<22091>:eina_mempool eina_mempool.c:337 eina_mempool_add() name=chained_mempool, context=QuadTree Item, options=
22DBG<22091>:eina_mempool eina_mempool.c:344 eina_mempool_add() name=chained_mempool, context=QuadTree Item, options=, mp=0x46b4550
23DBG<22091>:eina_mempool eina_mempool.c:337 eina_mempool_add() name=chained_mempool, context=QuadTree Root, options=
24DBG<22091>:eina_mempool eina_mempool.c:344 eina_mempool_add() name=chained_mempool, context=QuadTree Root, options=, mp=0x46b4620
25INF<22091>:ecore ecore_main.c:548 _ecore_main_loop_init() enter
26INF<22091>:ecore ecore_main.c:585 _ecore_main_loop_init() leave
27DBG<22091>:ecore ecore_time.c:152 _ecore_time_init() using CLOCK_MONOTONIC.
28DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed626b0 (/usr/local/bin), slen=14
29DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed626bf (/usr/bin), slen=8
30DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed626c8 (/bin), slen=4
31DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed626cd (/usr/local/sbin), slen=15
32DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed626dd (/usr/sbin), slen=9
33DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed626e7 (/sbin), slen=5
34DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed626ed (/opt/java/jre/bin), slen=17
35DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed626ff (/usr/lib/perl5/vendor_perl/bin), slen=30
36DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed6271e (/usr/bin/core_perl), slen=18
37DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed62731 (/opt/qt/bin), slen=11
38DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed6273d (/usr/local/bin), slen=14
39DBG<22091>:eina_share eina_stringshare.c:658 eina_stringshare_add_length() str=0xbed6274c (/opt/e17/bin), slen=12
40INF<22091>:ecore ecore_main.c:193 _ecore_epoll_add() adding poll on 4 00000001
41DBG<22091>:Libconf libconf.c:85 libconfig_init() Using configuration file /etc/smman/smman.conf
42DBG<22091>:Libconf libconf.c:105 libconfig_load() Loading configuration file
43DBG<22091>:Libconf libconf.c:171 libconfig_load() Adding server<->http://localhost:9200/logstash/events/
44DBG<22091>:smman_conf conf.c:75 conf_load_var() Setting ES server to server
45DBG<22091>:smman_rules rules.c:55 rules_load() Found rule file tags_test
46DBG<22091>:Libconf libconf.c:85 libconfig_init() Using configuration file /etc/smman/rules.d/tags_test
47DBG<22091>:Libconf libconf.c:105 libconfig_load() Loading configuration file
48DBG<22091>:Libconf libconf.c:171 libconfig_load() Adding filename<->/var/log/slim.log
49DBG<22091>:Libconf libconf.c:171 libconfig_load() Adding tags<->test2,test3
50INF<22091>:smman_rules rules.c:191 rules_print()
51[tags_test]
52 filename = /var/log/slim.log
53 message = (null)
54 type = (null)
55 source_host = (null)
56 source_path = (null)
57 tags = test2,test3
58 delete = 0
59
60
61DBG<22091>:smman_spy spy.c:71 spy_addwatcher() Found 1 results for /var/log/slim.log
62INF<22091>:smman_logfiles logfiles.c:84 logfiles_print() Name = /var/log/slim.log Cursor = 100
63DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
64DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 100 !
65ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() ==22091== Use of uninitialised value of size 4
66==22091== at 0x43987B6: ??? (in /lib/libc-2.12.2.so)
67==22091== by 0x439BC48: vfprintf (in /lib/libc-2.12.2.so)
68==22091== by 0x439E3C1: ??? (in /lib/libc-2.12.2.so)
69==22091== by 0x4399312: vfprintf (in /lib/libc-2.12.2.so)
70==22091== by 0x42D561E: eina_log_print_cb_stderr (in /usr/lib/libeina.so.1.0.0)
71==22091== by 0x42D6CD3: eina_log_print (in /usr/lib/libeina.so.1.0.0)
72==22091== by 0x8049DA9: spy_extract_new_lines (spy.c:269)
73==22091== by 0x804A145: spy_event (spy.c:156)
74==22091== by 0x404F2CC: _ecore_file_monitor_inotify_handler (ecore_file_monitor_inotify.c:215)
75==22091== by 0x406E900: _ecore_main_loop_iterate_internal (ecore_main.c:1312)
76==22091== by 0x406EACE: ecore_main_loop_begin (ecore_main.c:663)
77==22091== by 0x80493A9: main (main.c:137)
78==22091==
79==22091== Conditional jump or move depends on uninitialised value(s)
80==22091== at 0x43987BE: ??? (in /lib/libc-2.12.2.so)
81==22091== by 0x439BC48: vfprintf (in /lib/libc-2.12.2.so)
82==22091== by 0x439E3C1: ??? (in /lib/libc-2.12.2.so)
83==22091== by 0x4399312: vfprintf (in /lib/libc-2.12.2.so)
84==22091== by 0x42D561E: eina_log_print_cb_stderr (in /usr/lib/libeina.so.1.0.0)
85==22091== by 0x42D6CD3: eina_log_print (in /usr/lib/libeina.so.1.0.0)
86==22091== by 0x8049DA9: spy_extract_new_lines (spy.c:269)
87==22091== by 0x804A145: spy_event (spy.c:156)
88==22091== by 0x404F2CC: _ecore_file_monitor_inotify_handler (ecore_file_monitor_inotify.c:215)
89==22091== by 0x406E900: _ecore_main_loop_iterate_internal (ecore_main.c:1312)
90==22091== by 0x406EACE: ecore_main_loop_begin (ecore_main.c:663)
91==22091== by 0x80493A9: main (main.c:137)
92==22091==
93==22091== Conditional jump or move depends on uninitialised value(s)
94==22091== at 0x439C1B0: vfprintf (in /lib/libc-2.12.2.so)
95==22091== by 0x439E3C1: ??? (in /lib/libc-2.12.2.so)
96==22091== by 0x4399312: vfprintf (in /lib/libc-2.12.2.so)
97==22091== by 0x42D561E: eina_log_print_cb_stderr (in /usr/lib/libeina.so.1.0.0)
98==22091== by 0x42D6CD3: eina_log_print (in /usr/lib/libeina.so.1.0.0)
99==22091== by 0x8049DA9: spy_extract_new_lines (spy.c:269)
100==22091== by 0x804A145: spy_event (spy.c:156)
101==22091== by 0x404F2CC: _ecore_file_monitor_inotify_handler (ecore_file_monitor_inotify.c:215)
102==22091== by 0x406E900: _ecore_main_loop_iterate_internal (ecore_main.c:1312)
103==22091== by 0x406EACE: ecore_main_loop_begin (ecore_main.c:663)
104==22091== by 0x80493A9: main (main.c:137)
105==22091==
106==22091== Conditional jump or move depends on uninitialised value(s)
107==22091== at 0x4399EAE: vfprintf (in /lib/libc-2.12.2.so)
108==22091== by 0x439E3C1: ??? (in /lib/libc-2.12.2.so)
109==22091== by 0x4399312: vfprintf (in /lib/libc-2.12.2.so)
110==22091== by 0x42D561E: eina_log_print_cb_stderr (in /usr/lib/libeina.so.1.0.0)
111==22091== by 0x42D6CD3: eina_log_print (in /usr/lib/libeina.so.1.0.0)
112==22091== by 0x8049DA9: spy_extract_new_lines (spy.c:269)
113==22091== by 0x804A145: spy_event (spy.c:156)
114==22091== by 0x404F2CC: _ecore_file_monitor_inotify_handler (ecore_file_monitor_inotify.c:215)
115==22091== by 0x406E900: _ecore_main_loop_iterate_internal (ecore_main.c:1312)
116==22091== by 0x406EACE: ecore_main_loop_begin (ecore_main.c:663)
117==22091== by 0x80493A9: main (main.c:137)
118==22091==
119FPOS 0 <-> 0
120DBG<22091>:smman_spy spy.c:293 spy_extract_new_lines() Empty line hack
121DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "** (gedit:6691): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed", "@timestamp" : "2011-01-24T17:38:19.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
122DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
123DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 200 !
124ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 0
125DBG<22091>:smman_spy spy.c:293 spy_extract_new_lines() Empty line hack
126DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "** (gedit:6691): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed", "@timestamp" : "2011-01-24T17:38:20.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
127DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
128DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 300 !
129ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 0
130DBG<22091>:smman_spy spy.c:293 spy_extract_new_lines() Empty line hack
131DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "** (gedit:6691): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed", "@timestamp" : "2011-01-24T17:38:20.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
132DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
133DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 400 !
134ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 0
135DBG<22091>:smman_spy spy.c:293 spy_extract_new_lines() Empty line hack
136DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "** (gedit:6691): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed", "@timestamp" : "2011-01-24T17:38:21.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
137DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
138DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 500 !
139ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 0
140DBG<22091>:smman_spy spy.c:293 spy_extract_new_lines() Empty line hack
141DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "** (gedit:6691): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed", "@timestamp" : "2011-01-24T17:38:21.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
142DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
143DBG<22091>:smman_spy spy.c:148 spy_event() WTF TRUNC
144DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 0 !
145ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 74668116
146DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "", "@timestamp" : "2011-01-24T17:38:23.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
147DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
148DBG<22091>:smman_spy spy.c:148 spy_event() WTF TRUNC
149DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 0 !
150ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 74668116
151DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "", "@timestamp" : "2011-01-24T17:38:24.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
152DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
153DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 0 !
154ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 0
155DBG<22091>:smman_spy spy.c:293 spy_extract_new_lines() Empty line hack
156DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "** (gedit:6691): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed", "@timestamp" : "2011-01-24T17:38:25.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
157DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
158DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 100 !
159ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 0
160DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 13118263", "@timestamp" : "2011-01-24T17:38:33.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
161DBG<22091>:smman_spy spy.c:130 spy_event() Event on /var/log/slim.log ! 0x4735850 - 0x47358e0
162DBG<22091>:smman_spy spy.c:152 spy_event() Event on /var/log/slim.log - 678 !
163ERR<22091>:smman_spy spy.c:269 spy_extract_new_lines() FPOS 0 <-> 0
164DBG<22091>:smman_send send.c:74 send_logmessage() JSON : { "@source" : "file://Jetdail/var/log/slim.log", "@type" : "syslog", "@tags" : [ "test2","test3" ], "@fields" : { }, "@message" : "error 4: BadPixmap (invalid Pixmap parameter) request 54 minor 0 serial 13121431", "@timestamp" : "2011-01-24T17:38:33.000000Z", "@source_host" : "Jetdail", "@source_path" : "/var/log/slim.log"}
165==22091==
166==22091== HEAP SUMMARY:
167==22091== in use at exit: 80,900 bytes in 3,962 blocks
168==22091== total heap usage: 7,140 allocs, 3,178 frees, 622,324 bytes allocated
169==22091==
170==22091== LEAK SUMMARY:
171==22091== definitely lost: 0 bytes in 0 blocks
172==22091== indirectly lost: 0 bytes in 0 blocks
173==22091== possibly lost: 0 bytes in 0 blocks
174==22091== still reachable: 80,900 bytes in 3,962 blocks
175==22091== suppressed: 0 bytes in 0 blocks
176==22091== Reachable blocks (those to which a pointer was found) are not shown.
177==22091== To see them, rerun with: --leak-check=full --show-reachable=yes
178==22091==
179==22091== For counts of detected and suppressed errors, rerun with: -v
180==22091== Use --track-origins=yes to see where uninitialised values come from
181==22091== ERROR SUMMARY: 68 errors from 4 contexts (suppressed: 51 from 10)
diff --git a/src/bin/rules.c b/src/bin/rules.c
index ee5f66d..60cc3fd 100644
--- a/src/bin/rules.c
+++ b/src/bin/rules.c
@@ -95,6 +95,7 @@ int rules_load_rule(char *rule_name)
95 rules_temp->source_path = NULL; 95 rules_temp->source_path = NULL;
96 rules_temp->tags = NULL; 96 rules_temp->tags = NULL;
97 rules_temp->todel = 0; 97 rules_temp->todel = 0;
98 rules_temp->list_regex = NULL;
98 99
99 libconfig_list(&myconf, rules_load_rule_loadspec); 100 libconfig_list(&myconf, rules_load_rule_loadspec);
100 101