summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* remove old plugin machinery. -10k and -1 library dependence in abrtdDenys Vlasenko2011-01-1915-973/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move (de)installation of abrt-hook-ccpp into abrt-ccpp service.Denys Vlasenko2011-01-191-10/+1
| | | | | | | | | Init script is packaged and installed with abrt-addon-ccpp package. In order to not install the hook twice, "old" plugin loading in abrtd is disabled (pending deletion of entire "old" plugin machinery). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove [ Cron ] handlingDenys Vlasenko2011-01-175-315/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove dumpoops and KerneloopsScanner pluginDenys Vlasenko2011-01-1710-928/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* replace KerneloopsScanner plugin and dumpoops with abrt-dump-oops, use it in ↵Denys Vlasenko2011-01-176-24/+807
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | abrtd Patch adds new tool: $ abrt-dump-oops Usage: abrt-dump-oops [-vsrdow] FILE Extract oops from syslog/dmesg file -v, --verbose Be verbose -s Log to syslog -r Parse kernel's message buffer before parsing FILE -d Create ABRT dump for every oops found -o Print found oopses on standard output -w Do not exit, watch the file for new oopses It extends dumpoops. Extensions: * it can watch the syslog using -w option (uses inotify) * it can scan dmesg buffer too In this way, it also becomes a replacement for KerneloopsScanner plugin: oops-detecting logic is taken verbatim from KerneloopsScanner source. abrtd is changed to start it if it sees this directive in abrt.conf: [ LogScanners ] abrt-dump-oops = abrt-dump-oops -drw /var/log/messages Default abrt.conf is changed to have such line. Patch doesn't remove KerneloopsScanner plugin and dumpoops binary yet, I will do it in a separate trivial patch. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* preliminary cleanup patchesDenys Vlasenko2011-01-144-67/+61
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* trivial: more uniform -v option helpDenys Vlasenko2011-01-136-6/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fix a SEGV caused by returning NULL instead of empty hash tableDenys Vlasenko2011-01-131-0/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt_event.conf parser is updated to handleDenys Vlasenko2011-01-132-24/+175
| | | | | | | | | | | | | | | "include GLOB_PATTERN" line which expands GLOB_PATTERN and recurses into every matching file. Another small change makes it possible to have one rule to span lines: our current default abrt_event.conf has sosreport invocation which looks very ugly. Sosreport invocation is rewritten in a much more readable multi-line form now. The comment in src/daemon/abrt_event.conf is modified to explain the recognized syntax. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove C++-ism ssprintf from abrtlib.hDenys Vlasenko2011-01-114-28/+23
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* do not pollute library namespace: prefix bin2hex and hex2bin with abrt_Denys Vlasenko2011-01-111-0/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move abrt-action-FOO from /usr/libexec to /usr/binDenys Vlasenko2011-01-116-30/+20
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* adding missing extern "C" {}Denys Vlasenko2011-01-061-0/+8
| | | | | | | This fixes the following problem: abrtd: Can't load '/usr/lib64/abrt/libKerneloopsScanner.so': /usr/lib64/abrt/libKerneloopsScanner.so: undefined symbol: _Z14extract_oopsesPP6_GListPcm Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* pass old pattern to ccpp hook and use itDenys Vlasenko2011-01-065-40/+232
| | | | | | | | | | | | | | | | | | | | | | | abrtd: instead of "|/usr/libexec/abrt-ccpp-hook DEBUG_DUMPS_DIR %p %s %u %c", sets coredump handler to "|/usr/libexec/abrt-ccpp-hook DEBUG_DUMPS_DIR %s %c %p %u %g %t %h %e OLD_PATTERN" abrt-ccpp-hook: expands OLD_PATTERN using values of %s %c %p %u %g %t %h %e and uses it as a name of "compat coredump". Patch has a feature which prevents usage of kernel-truncated OLD_PATTERN: it is passed as hex string *with terminating NUL* (encoded as 00). If ccpp hook doesn't see 00, it refuses to use OLD_PATTERN and uses string "core" instead. Run tested. On a new kernel, passes up to 27 char long old pattern. Longer patterns are still truncated. This may be improved in future kernels. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* 666893 - Unable to make sense of XML-RPC response from serverNikola Pajkovsky2011-01-051-0/+11
| | | | | | | By default, XML data from the network may be no larger than 512K. We have a bug which is 733402 bytes long. Limit is now 2 * 512K. Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* 665405 - ABRT's usage of sos does not grab /var/log/messagesNikola Pajkovsky2011-01-051-1/+1
| | | | | | add --only=general --only=x11 Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* PyHook: ignore SystemExit exception rhbz#636913Jiri Moskovcak2011-01-051-2/+4
| | | | | | - SystemExit is not an error, so ABRT should ignore it - see http://docs.python.org/library/exceptions.html#exceptions.SystemExit for more details
* dump_dir: make chown'ing of new files optional - needed for non-root usageDenys Vlasenko2011-01-047-36/+80
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* dump_dir: stop aborting on EPERM locking errorsDenys Vlasenko2011-01-041-16/+39
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* koops: catch "kernel BUG at" with both small and capital K.Denys Vlasenko2011-01-041-12/+20
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* extend run_event() to run_event_on_dir_name() and run_event_on_crash_data()Denys Vlasenko2010-12-2222-57/+119
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* src/report-python: expose CD_FLAG_foo constants to Python wrapperDenys Vlasenko2010-12-223-1/+16
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: rename *crash_dump.* -> *crash_data.*Denys Vlasenko2010-12-2225-30/+30
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* src/report-python: add report package compatibilityDenys Vlasenko2010-12-218-1/+190
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* create_dump_dir: add base_dir_name parameter.Denys Vlasenko2010-12-1610-35/+147
| | | | | | | | This makes python wrappers more usable. src/report-python/test_full demonstrates how pyhton programs can run reporting now. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* report-python/run_event.c: python wrappers for run_event.h APIDenys Vlasenko2010-12-166-3/+255
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* report-python/dump_dir: fix SEGV when dd.op() operates on closed ddDenys Vlasenko2010-12-161-0/+26
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* python wrapper: trivial cleanupDenys Vlasenko2010-12-163-7/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Rename foo_crash_dump_dir -> foo_dump_dirDenys Vlasenko2010-12-1520-57/+40
| | | | | | | | | | | | | To be exact, these three functions are renamed: load_crash_data_from_crash_dump_dir create_crash_dump_dir delete_crash_dump_dir Rationale: data structure is called "struct dump_dir", not "struct crash_dump_dir" Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* set chmod 0755 on test progsDenys Vlasenko2010-12-152-0/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* python wrappers: make crash_data.create_crash_dump_dir() workDenys Vlasenko2010-12-156-19/+109
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* python wrappers: add dump_dir wrapperDenys Vlasenko2010-12-155-28/+205
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* simplify python wrapper codeDenys Vlasenko2010-12-155-106/+56
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* jury-rig compile for python2.6; small style fixesDenys Vlasenko2010-12-144-22/+24
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* a stub for report-pythonJiri Moskovcak2010-12-147-1/+313
|
* small fixes to map_string_t conversion suggested by KarelDenys Vlasenko2010-12-132-8/+9
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* convert Applet.cpp to C. Needed only one change: dbus' load_val -> load_charpDenys Vlasenko2010-12-092-14/+14
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move test app for libreport from c++ to CDenys Vlasenko2010-12-092-3/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* rename a few more files from .cpp to .cDenys Vlasenko2010-12-098-19/+34
| | | | | | | | | | | | Renamed files: KerneloopsSysLog.c abrt-action-rhtsupport.c abrt-action-upload.c abrt-action-kerneloops.c abrt-action-mailx.c abrt-action-print.c Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* rename libabrt.so to libreport.soDenys Vlasenko2010-12-097-26/+26
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* create report-libs-devel package; separate out report headersDenys Vlasenko2010-12-0911-68/+76
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add abrt_ prefixes to abrt-internal functions in libabrt.soDenys Vlasenko2010-12-0822-77/+184
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Rename some .cpp files to .cDenys Vlasenko2010-12-086-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Apart from src/lib/Makefile.am changes, this is a pure rename, no textual changes to the files. Before patch set: $ size libabrt.so.0.0.1; ldd libabrt.so.0.0.1 text data bss dec hex filename 58031 2312 32 60375 ebd7 libabrt.so.0.0.1 linux-vdso.so.1 => (0x00007fffd46dc000) libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f373eabc000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f373e7b6000) libm.so.6 => /lib64/libm.so.6 (0x00007f373e531000) libc.so.6 => /lib64/libc.so.6 (0x00007f373e1b2000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f373df9c000) /lib64/ld-linux-x86-64.so.2 (0x00007f373efde000) After patch set: $ size libabrt.so.0.0.1; ldd libabrt.so.0.0.1 text data bss dec hex filename 51777 2064 32 53873 d271 libabrt.so.0.0.1 linux-vdso.so.1 => (0x00007fff48703000) libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fd63aa45000) libc.so.6 => /lib64/libc.so.6 (0x00007fd63a6c6000) /lib64/ld-linux-x86-64.so.2 (0x00007fd63af66000) Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* removal of C++isms from libabrt, part 2Denys Vlasenko2010-12-088-76/+24
| | | | | | This patch rewrites a few places where we use C++ strings Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* removal of C++isms from libabrt, part 1Denys Vlasenko2010-12-0828-484/+347
| | | | | | | | | | | | | This patch converts libabrt usage of C++ map<string, string> to a glib-based container, GHashTable. It is typedef-ed to map_string_h. We can't typedef it to map_string_t, since other parts of ABRT (daemon, cli) still use that name for C++ container. Also, exceptions are removed everywhere. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove unused function parse_args; make a few functions extern "C"Denys Vlasenko2010-12-075-71/+9
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* This patch changes crash data to use C structures.Denys Vlasenko2010-12-0626-458/+749
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The smallest data element is: struct crash_item { char *content; unsigned flags; }; where content is, eh, content, and flags is a bit flag field. crash_data_t is a map of crash_item's, implemented as a pointer to heap-allocated GHashTable. vector_of_crash_data_t is a vector of crash_data_t's, implemented as a pointer to heap-allocated GPtrArray. Most operations have light wrappers around them to hide the nature of the containers. For example, to free vector_of_crash_data, you need to use free_vector_of_crash_data(ptr) instead of open-coding g_ptr_array_free. The wrapper is thin. The goal is not so much to hide the implementation, but more to make it easier to use the correct function. dbus (un)marshalling functions convert crash_item to three-element array of strings, in order to keep compatibility with abrt-gui (python). This can be changed later to use native representation. crash_data_t and vector_of_crash_data_t are represented in "natural" way, no funny stuff there. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* preparatory patch: add -v to abrt-cli; remove unused func; make func staticDenys Vlasenko2010-12-035-37/+16
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* GUI: optimized the log window (possibly fixes rhbz#596592)Jiri Moskovcak2010-12-022-37/+50
| | | | | | - we used to change the whole textbuffer and redraw the whole textview, now we just add the last line - possibly fixes *gtk_text_mark_get_buffer bugs
* GHashTable: must use g_hash_table_replace instead of _insert to not leak keyDenys Vlasenko2010-12-011-3/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>