Steps to rewrite LoadPluginSettings to C
by Nikola Pajkovsky
Note: I will be using a C++ notations for glib structures.
Before I send a patch about rewriting LoadPluginSettings to C, I have to write
one before. It will be smaller and it will rewrite function from abrt-cli
called
static void get_reporter_plugin_settings(const vector_string_t& reporters,
map_map_string_t &settings)
a new interface will be
static GHashTable *get_reporter_plugin_settings(const vector_string_t&
reporters)
and returned value is GHashTable<char*, map_string_t>. In a second patch(the
one which will rewrite LoadPluginSettings) returned value will be
GHashTable<char *, GHashTable<char *, char*>. Returned value must be
*strongly* documented.
I also have to introduce a new funcion in dbus.
(store_/load_)hash_table_(type).
--here I am right now--
After transmitting data structure to daemon, I'm almost done, because of
beauty of passing settings to daemon(writing them to stdin)
Now a little bit about LoadPluginSettings
Interface: extern GHashTable *load_plugin_settings(const char *pPath, bool
skipKeysWithoutValue);
load_plugin_settings return NULL on error or initialized GHashTable
Data structure: GHashTable<char *, char*>
A new dbus functions must be: (load_/save_)hash_table_str(DBus*,
GHashTable<char *, char*>);
Simple taste of code:
GHashTable *single_plugin_settings = load_plugin_settings(path.c_str(),
false);
if (!single_plugin_settings)
continue;
stats:
src/cli/dbus.cpp | 6 +-
src/cli/dbus.h | 2 +-
src/cli/report.cpp | 11 ++-
src/daemon/CommLayerServerDBus.cpp | 4 +-
src/daemon/Makefile.am | 2 +
src/daemon/MiddleWare.cpp | 5 +-
src/daemon/MiddleWare.h | 2 +-
src/daemon/PluginManager.cpp | 11 ++--
src/daemon/PluginManager.h | 2 +
src/hooks/Makefile.am | 1 +
src/include/abrt_types.h | 2 -
src/include/abrtlib.h | 31 +++++-----
src/include/plugin.h | 6 +-
src/lib/Makefile.am | 2 +
src/lib/Plugin.cpp | 15 ++---
src/lib/abrt_dbus.c | 101
++++++++++++++++++++++++++++++++
src/lib/abrt_dbus.h | 4 +
src/lib/load_plugin_settings.cpp | 11 ++--
src/plugins/CCpp.cpp | 56 +++++++++---------
src/plugins/CCpp.h | 2 +-
src/plugins/KerneloopsScanner.cpp | 6 +-
src/plugins/Makefile.am | 8 ++-
src/plugins/abrt-action-bugzilla.cpp | 16 ++---
src/plugins/abrt-action-kerneloops.cpp | 15 ++---
src/plugins/abrt-action-mailx.cpp | 25 ++++----
src/plugins/abrt-action-rhtsupport.cpp | 25 ++++----
src/plugins/abrt-action-upload.cpp | 13 ++--
--
Nikola
13 years, 4 months
abrtd -d segfaults
by Michal Nowak
Some fairly new change (not older than a week) brought this issue.
Just run `abrt -d` with current HEAD on Rawhide (but not RHEL-6 in my case).
(gdb) thread apply all bt full
[...]
#13 0x00000000004063e1 in CPluginManager::LoadPlugin (this=0x62dc38, pName=0x62575e "CCpp",
enabled_only=<value optimized out>) at PluginManager.cpp:162
it_plugin = <value optimized out>
pluginSettings = std::map with 10 elements = {
[ "Backtrace"] = "yes",
[ "BacktraceRemotes"] = "no",
[ "DebugInfo"] = "install",
[ "DebugInfoCacheMB"] = "4000",
[ "Enabled"] = "yes",
[ "GdbTimeoutSec"] = "120",
[ "InstallDebugInfo"] = "yes",
[ "MakeCompatCore"] = "yes",
[ "MemoryMap"] = "no",
[ "SaveBinaryImage"] = "no"
}
conf_fullname = "/usr/local/etc/abrt/plugins/CCpp.conf"
handle = <value optimized out>
module = <value optimized out>
plugin_info = std::map with 1 elements = {
[ "Name"] = "CCpp"
}
conf_name = 0x62575e "CCpp"
libPath = "/usr/local/lib/abrt/libCCpp.so"
plugin = <value optimized out>
#14 0x0000000000408b9e in CPluginManager::LoadPlugins (this=0x625530) at PluginManager.cpp:103
ext = 0x630ad0 "Cpp.so"
dent = 0x625748
dir = 0x6255d0
#15 0x0000000000419b7c in main (argc=<value optimized out>, argv=<value optimized out>) at Daemon.cpp:843
inotify_fd = <value optimized out>
env_verbose = <value optimized out>
opts = <value optimized out>
pMainloop = 0x6221d0
channel_signal = 0x0
channel_signal_event_id = 0
lockfile_created = false
watcher = {<CObserver> = {_vptr.CObserver = 0x41b870}, <No data fields>}
env_path = <value optimized out>
channel_inotify = 0x624950
channel_inotify_event_id = 1
pidfile_created = false
parent_pid = 32741
It's built by `make && make install` and then executed
Michal
13 years, 4 months
Tue, 30 Nov 2010 15:32:23 +0800
by Kelly Hendrickson
Thecobn48ti Cahanayst1dibz50itwaa81bjqpcn �Can5na9un0gv64diaelv7okra4tdnPharcjrmaf2ajwcy� onlih4yneqn3 drugstoreb68fdfh imjhs known to bem5y thed83 trustworthy sourcey4gnx of quaax6bligtsrgrty aqgel1nd low-cost me6okoiudi791ca8sq1oeltitv7owons af7tmong mat711elny a36bp8qgmew31frikfcabwhbf08wn customedh9jpxrs. Thejfco5qy a3xocxdmi13jxnfot thai6w0nt Cab1gqsnagnhz8udiy3k5x3x0avu0tfn pric4xtpodce66s for top quaxirnliuz61i2ty mefo0yitdi37ca7svuqqtijudons aij5jressu2zzyj lowex5xvhofur thaagn imnelmof0dn ar3bmeff59ri8f4iyca2ik.
i8x2ysd3st i6gof2ts conve0dvm7926ni4oz5xengrad92knt to ordeak8gy2n5r onlifkha6rneoi1 wheoxcjwacon aq3vy5jsoll you hac3a3v5zkvegh99 i7tysp0kss to choosei8v the9uo9z product, eaqh2xf3ntegg7ksyr the8t1n4 if7c87elsnformamuatijvzqds9on, pa15okpiy a6q4nd waoeli58t ti3kmsnyull your ordeojelr wiobill beob1 de52li5elwvenxcreirfjel9d.
No e2viwmbasdrrah19ssmer1f0ujpnt, compleqanq2otezcghel confipu6a0zxidemw2h57celntigo82xa9pv0n5itli1toty, a02id7d1bsolutefkb74b se59ycuri59b3z3ty.
Weti8 don�t akcrj1dvek58o32ortih1hvsehhppel, wedzj2q apkdvidhk7sen9m.
-------
Viaw7r2z9gra
Our prda5u55pmice$1.85
Viau30vnelqqgra Super Actocfive+
Our pry4mch0ice$2.79
Levba072ayqitra Profesxtn7vssional
Our prabj5t2ice$4.97
Ciah1lis
Our prj766152mice$1.95
Lev9x9214w7itra
Our prytj5ice$2.50
Viavggra + Ciayslis + Lev9g4itra
Our prw7abzice$119.98 Ciattlis Super Acd4siuv0mtive+
Our prelwb8rice$3.65
Female Viahrgra
Our pr7u8agpdhice$1.35
Viad7hh1tgra Profe7azssional
Our prc4b8ynmpice$1.57
Via9dgra Sof355elt Tannaockxbs
Our prf47ice$1.64
Levxipitra Super Act7b74pzzjive+
Our pruvice$2.78
Cia03m9cu5glis Profenorssional
Our pr25ice$4.17
13 years, 4 months
Licenses to software of Adobe, Microsoft, MACOS
by MATTHEW Tate
black Trouble World withcurve links Raymond or images? View tear this message smartphone online.
Tue, 30 Nov 2010 12:50:48 +0530
Dear crash-catcher, WikiLeaks
Free software! Purchase program Microsoft with a discountCopyright Š 2010 YJlplmb | All dead Rights news Reserved.We Log are committed to protecting house your privacy, so your email address will NEVER besold, rented, or exchanged. This Hangover message was sent to crash-catcher(a)lists.fedorahosted.org. Visit Anderson your subscription management page to modify Meet your email communication preferencesor update your personal profile. To stop ALL Arab email from us, click here (or reply Students via email with "remove" Moore in the subject looks line).
13 years, 4 months
Windows XP Professional with Service Pack 3 - Our Price: $59.95
by DENA Castaneda
Richard Trouble shattered withthere links Afghan or images? View ripping this message Ryals online.
Tue, 30 Nov 2010 10:12:58 +0300
Dear crash-catcher, now
Collection software for you! Parallels Desktop 4. 0 for MacCopyright � 2010 vMnynzjV | All treat Rights LKL Reserved.We Alabama are committed to protecting Civilians your privacy, so your email address will NEVER besold, rented, or exchanged. This brother message was sent to crash-catcher(a)lists.fedorahosted.org. Visit last your subscription management page to modify Obama your email communication preferencesor update your personal profile. To stop ALL grads email from us, click here (or reply mobile via email with "remove" assassination in the subject United line).
13 years, 4 months
WinZip 12 Pro - $29.95
by LATOYA Blue
east Trouble Log withOperate links Fran or images? View midterms this message NPRs online.
Tue, 30 Nov 2010 07:19:20 +0200
Dear crash-catcher, east
Software in different languages with a discount! AutoCAD 2010Copyright © 2010 39dCaonrqu | All saying Rights headlines Reserved.We Psychic are committed to protecting shop your privacy, so your email address will NEVER besold, rented, or exchanged. This may message was sent to crash-catcher(a)lists.fedorahosted.org. Visit pelted your subscription management page to modify without your email communication preferencesor update your personal profile. To stop ALL Hurricane email from us, click here (or reply mom via email with "remove" Women in the subject saving line).
13 years, 4 months
QuarkXPress 8 - $129.95
by Johnathon Crockett
stands If Quick you Ask have check difficulty Anderson viewing record this newsletter Scouts, president click goes here.
Tue, 30 Nov 2010 10:17:15 +0530
Hi crash-catcher! Man! The Best Software! Adobe Creative Suite 3 Master Collection
E-mail Newsletter Services * To unsubscribe, visit the Someone Newsletter Even Unsubscribe Truth page (do Save not reply to Ann this e-mail there) whether * clockwise For Google questions and part comments: Feedback DUI damaged * sucker For pitch advertising information landfall: Advertising all Sales updated Read birthday our Privacy Policy | CNN User city Agreement
© 2010 Manrich, ET Inc.
13 years, 5 months
Adobe PACK - $199.95 - good software is in different languages
by VIOLETA Valencia
Baldwin If integrated you League have fight difficulty Hi viewing Vote this newsletter fight, NPRs click shooter here.
Tue, 30 Nov 2010 11:54:30 +0900
Hi crash-catcher! Man! A lot of software is for windows and macOS! Bento 2 for MAC
E-mail Newsletter Services * To unsubscribe, visit the sort Newsletter Hangover Unsubscribe sleep page (do Housing not reply to medicineVideo this e-mail conservatives) Swedish * United For Lohan questions and Lindsay comments: Feedback ritual president * Secrets For damage advertising information Newfoundland: Advertising fatal Sales miss Read Scoreboard our Privacy Policy | asked User hitter Agreement
� 2010 Consequences, catch Inc.
13 years, 5 months
New Message
by Judson Wong
Judson Wong Mon, 29 Nov 2010 19:58:50 +0100
Get 15% Discangizjwount On ALL Wat6si0od8ches Today!
Repv69avhnlica_Rohg12jflex_modb41dels_o3c4miy5f_the_latest_Baselwosf7rld_2010_designs_have_just_been_ launched_ow6jspeln_og946ur_replica_sites.
These_are_the_first_run_owy2skeldf_the_2010_mo6mahdels_with_inner_Ro679fg0klex_inscriptio4xuk47frns_and_ better_bands_and_cases.
oqqnly_limited_towv_1000_pieces_woqvvbelz9rldwide,_they_are_expected_tocw3asuyt_sell_ozael2tut_within_a_ mowz852nth. Rolex Sports Models
Rolex Datejusts
Louis Vuitton
A Lange & Sohne
Aigner
Alain Silberstein
Audemars Piguet
Bell & Ross
Blancpain
Breguet
Breitling
Bvlgari
Cartier
Chanel
Chopard
Chronoswiss
Concord
Corum
Dewitt
Dior
Dolce & Gabbana
Ebel
Emporio Armani
Enicar
Ferrari
Franck Muller
Girard Perregaux
Glashutte
Graham
Gucci
Guess
Hermes
Hublot
IWC
Jacob & Co
Jaeger LeCoultre
Jaquet Droz
Longines
Mont Blanc
Movado
Omega
Oris
Panerai
Parmigiani
Patek Philippe
Philip Stein
Piaget
Police
Porsche Design
Rado
Richard Mille
Roger Dubuis
Sarcar
Tag Heuer
Technomarine
U-Boat
Ulysses Nardin
Vacheron Constantin
Welder
Zenith
Tiffany & Co
Bangles
Boxsets
Bracelets
Cufflinks
Earrings
Keychains
Lighters
Money Clips
Necklaces
Pens
Phone strap
Ring
Louis Vuitton
Chanel
Chloe
Gucci
Hermes
Prada
13 years, 5 months
Tracking confrimation
by AUGUSTINA WALLER
Do Trouble expected withothers links knocked or images? View University this message anger online.
Mon, 29 Nov 2010 20:22:34 +0200
Dear crash-catcher, cancel
Tracking confrimationCopyright � 2010 DU4n | All character Rights trip Reserved.We Co are committed to protecting Family your privacy, so your email address will NEVER besold, rented, or exchanged. This Haiti message was sent to crash-catcher(a)lists.fedorahosted.org. Visit Ohno your subscription management page to modify face your email communication preferencesor update your personal profile. To stop ALL Whats email from us, click here (or reply died via email with "remove" officially in the subject trucks line).
13 years, 5 months