The Samba-Bugzilla – Attachment 12299 Details for
Bug 11801
Crash in mdssvc with older glib2 versions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.3 and 4.4 cherry-picked from master
v43,v44-bug11801.patch (text/plain), 1.29 KB, created by
Ralph Böhme
on 2016-08-02 08:56:00 UTC
(
hide
)
Description:
Patch for 4.3 and 4.4 cherry-picked from master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2016-08-02 08:56:00 UTC
Size:
1.29 KB
patch
obsolete
>From 29d9e53ab4800e6c239f106d7a1fd2c55d1b02ca Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Thu, 17 Mar 2016 14:05:58 +0100 >Subject: [PATCH] s3:mdssvc: older glib2 versions require g_type_init() > >Older glib2 versions will crash if g_type_init is not called: > >(process:6712): GLib-GObject-CRITICAL **: ... ./gobject/gtype.c:2722: >You forgot to call g_type_init() > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=11801 > >Signed-off-by: Ralph Boehme <slow@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> > >Autobuild-User(master): Jeremy Allison <jra@samba.org> >Autobuild-Date(master): Fri Mar 18 03:52:55 CET 2016 on sn-devel-144 > >(cherry picked from commit 3563d79a8cb625ae78523cb32330c9f61c6c3a2f) >--- > source3/rpc_server/mdssvc/mdssvc.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/source3/rpc_server/mdssvc/mdssvc.c b/source3/rpc_server/mdssvc/mdssvc.c >index abfea43..44d7703 100644 >--- a/source3/rpc_server/mdssvc/mdssvc.c >+++ b/source3/rpc_server/mdssvc/mdssvc.c >@@ -1783,10 +1783,13 @@ done: > } > > /** >- * Init callbacks at startup, nothing to do here really >+ * Init callbacks at startup > **/ > bool mds_init(struct messaging_context *msg_ctx) > { >+#if (GLIB_MAJOR_VERSION < 3) && (GLIB_MINOR_VERSION < 36) >+ g_type_init(); >+#endif > return true; > } > >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
slow
:
review?
(
jra
)
Actions:
View
Attachments on
bug 11801
: 12299