summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fixed spec file so $ make test-rpm works againJiri Moskovcak2010-09-221-4/+4
|
* add two flags to dd_opendir()Nikola Pajkovsky2010-09-229-99/+46
| | | | | | | | | | | | | | | | | | | DD_CLOSE_ON_OPEN_ERR - free dump_dir structure when opening dump_dir does not exist DD_FAIL_QUIETLY - suppress message when dump directory does not exist VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir); is all removed because there is error_msg("'%s' does not exist", dd->dd_dir); in dd_opendir() which sometimes we don't want to print(DD_FAIL_QUIETLY) example: crash dump directory trimming code running concurrently. Second process may try to delete a directory which is already gone. it should not complain that it is missing. Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com> Acked-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* eliminate LoadOpenGPGPublicKey wrapperDenys Vlasenko2010-09-224-11/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* l10n: Updates to Serbian (Latin) (sr@latin) translationnenadr2010-09-211-554/+604
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Serbian (sr) translationnenadr2010-09-211-545/+595
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* fix a small memory leakDenys Vlasenko2010-09-211-1/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* This patch splits off CCpp's backtrace generation into a separate tool:Denys Vlasenko2010-09-204-222/+485
| | | | | | | | | | | | | | | | | | | | | | | | | | | $ abrt-action-generate-backtrace -z abrt-action-generate-backtrace: invalid option -- 'z' Usage: abrt-action-generate-backtrace -d DIR [-i DIR1:DIR2] [-t SECONDS] [-vs] Generate backtrace, its quality rating, hash, and crashed function Options: -d DIR Crash dump directory -i DIR1:DIR2 Additional debuginfo directories -t SECONDS Kill gdb if it runs for more than SECONDS -v Verbose -s Log to syslog This also allows for debugging and regression testing of abrt-action-generate-backtrace separately - it can be simply run from command-line. Also it provides a better fault isolation - crash in abrt-action-generate-backtrace does not take down abrtd. The code is based on CCpp.cpp. CCpp analyzer is made to spawn a child to do the backtrace generation. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* unhide dump_dir structure from typedefNikola Pajkovsky2010-09-2011-50/+50
| | | | | | no other code changes Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* CCpp: better handling of uid and exit condition on bt generationDenys Vlasenko2010-09-161-5/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* CCpp: plug a memory leakDenys Vlasenko2010-09-161-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* perror has to be used immediately after failed syscallDenys Vlasenko2010-09-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* dump_dir: added TODO comment. no code changesDenys Vlasenko2010-09-151-0/+20
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fixing two instances of dd->gid which I forgot to convertDenys Vlasenko2010-09-141-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Pure file rename without changesDenys Vlasenko2010-09-141-0/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* This patch makes abrtd spawn a new process, abrt-server,Denys Vlasenko2010-09-145-488/+372
| | | | | | | | | | | | | | | | | | | | | | | | | for every socket client. This allows for simpler timeout handling using SIGALRM, and makes timers for tracking client timeouts unnecessary. This also allows for debugging and regression testing of abrt-server separately - it can be simply run from command-line and fed commands on stdin. Also it provides a better fault isolation - crash in abrt-server does not take down abrtd. The code is based on dumpsocket.{cpp,h}. Most of dumpsocket.cpp goes to abrt-server.c, a small part goes to Daemon.cpp (i.e. to abrtd). This change will not compile - it does not have dumpsocket.cpp renamed to abrt-server.c, which makes the change easier to read. The next change, which I'll commit after this one, contains only the renaming. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* dump_dir: use dd_ prefix on uid/gid fieldsDenys Vlasenko2010-09-142-10/+10
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* I noticed that ->locked and ->opened members are always the sameDenys Vlasenko2010-09-142-82/+19
| | | | | | | | | | | | | (either 0 or 1), and I decided to drop ->opened. And do a few other trivial optimizations/cleanups. While working on it, I noticed that dd_save_binary has "opened" check inverted, and that dd_create and dd_open are leaking dd->dd_dir on error path. So the patch turned from optimization to bugfix. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* CCpp: skip bt generation earlierDenys Vlasenko2010-09-141-18/+18
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move sha1 to lib/utils; remove small bit of related C++isms in CCpp.cppDenys Vlasenko2010-09-146-49/+28
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt.spec: make /abrtd more "greppable"Denys Vlasenko2010-09-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* msg_prefix now doesn't need ": " suffixDenys Vlasenko2010-09-144-8/+11
| | | | | | Contains some other trivial changes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Merge branch 'master' of ssh://git.fedorahosted.org/git/abrtNikola Pajkovsky2010-09-141-178/+135
|\
| * l10n: Updates to Japanese (ja) translationhtaira2010-09-141-178/+135
| | | | | | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* | s/NoSSLVerify/SSLVerify/gNikola Pajkovsky2010-09-141-1/+1
|/ | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* CCpp: make gdb timeout configurable; raise it to 120 sec in default config fileDenys Vlasenko2010-09-133-10/+19
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* dump_dir: dd_close was freeing unallocated pointer! fix thatDenys Vlasenko2010-09-131-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* l10n: Updates to Japanese (ja) translationhtaira2010-09-121-212/+210
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Swedish (sv) translationgoeran2010-09-101-25/+3
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Russian (ru) translationshnurapet2010-09-101-124/+138
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* SQLite3.cpp: get rid of CABRTExceptionNikola Pajkovsky2010-09-101-22/+31
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* fix sigsegvNikola Pajkovsky2010-09-103-3/+34
| | | | | | | copy struct with char* lead to sigsegv. each char* needs to be duplicate. Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* plug a memory leak in trim_debug_dumps()Denys Vlasenko2010-09-101-0/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* l10n: Updates to Czech (cs) translationmilankerslager2010-09-101-191/+192
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Swedish (sv) translationgoeran2010-09-091-79/+37
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Swedish (sv) translationgoeran2010-09-081-74/+30
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* MiddleWare.cpp: remove unused variablesNikola Pajkovsky2010-09-081-5/+0
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* add forgotten database disconnect on error pathDenys Vlasenko2010-09-081-7/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* SQLite3.cpp: replace std::vector by GListNikola Pajkovsky2010-09-0810-118/+242
| | | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com> Acked-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* l10n: Updates to Portuguese (Brazilian) (pt_BR) translationtaylon2010-09-081-206/+203
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* DebugDump.* -> dump_dir.*Nikola Pajkovsky2010-09-0725-23/+4
| | | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com> Acked-off-by: Jiri Moskovcak <jmoskovc@redhat.com>
* make crash_types.h usable from CDenys Vlasenko2010-09-071-0/+14
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* l10n: Updates to Swedish (sv) translationgoeran2010-09-071-55/+98
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* run_main_loop: allocate GPollFD array dynamicallyDenys Vlasenko2010-09-071-6/+12
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* dumpsocket: removed unused sockaddr param in accept() call; s/perror/error/Denys Vlasenko2010-09-073-10/+8
| | | | | | Also removed unneeded casts and added and fixed comments Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* DebugDump.cpp: change error_msg to perror_msgMichal Toman2010-09-071-1/+1
|
* l10n: Updates to French (fr) translationmrtom2010-09-061-226/+229
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Swedish (sv) translationgoeran2010-09-051-19/+19
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Persian (fa) translationlashar2010-09-051-311/+267
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Swedish (sv) translationgoeran2010-09-041-13/+13
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)
* l10n: Updates to Swedish (sv) translationgoeran2010-09-031-174/+173
| | | | Transmitted-via: Transifex (translate.fedoraproject.org)