Re: [Prelude Hybrid IDS] #294: Prelude-lml segfault with libtool 2.2.4 compliation.
"Prelude Hybrid IDS" <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.devel |
|---|---|
| Message-ID | <[email protected]> |
#294: Prelude-lml segfault with libtool 2.2.4 compliation. -----------------------------+---------------------------------------------- Reporter: [email protected] | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: prelude-manager | Version: 0.9 Severity: normal | Resolution: Keywords: libtool | -----------------------------+---------------------------------------------- Old description: > Hi, I've been suggested to forward this bug upstream ... It would really > depend mostly when you are going to support libtool 2.2.4 but I have > created a small patch and how to get it to work properly. > > This is also related to prelude-manager as it suffers the same problem. > Below is the backtrace related to prelude-manager as I failed to get > one... :( sorry I know. > > #0 0x00007f18e7a3e690 in strcmp () from /lib/libc.so.6 > #1 0x00007f18e75af672 in lt_dlpreload_open () from /usr/lib/libltdl.so.7 > #2 0x00007f18e8c90470 in prelude_plugin_load_from_dir > (head=0x0,dirname=0x40fa60 "/usr/lib64/prelude-manager/reports", > symbol=0x40fd3b "manager_plugin_init", ptr=0x6160e0 subscribe=0x40ab25 > <subscribe>, unsubscribe=0x40aacf <unsubscribe>) > at prelude-plugin.c:525 #3 0x000000000040aa20 in report_plugins_init > (dirname=0x40fa60 "/usr/lib64/prelude-manager/reports", data=0x6160e0) > at report-plugins.c:406 #4 0x00000000004086dd in main (argc=1, > argv=0x7ffff1325478) at prelude-manager.c:165 > > The patch is fairly easy and specific, in the case of prelude-lml it's > fairly easy. > > diff --git a/src/prelude-lml.c b/src/prelude-lml.c > index 8880dc8..c98c313 100644 > --- a/src/prelude-lml.c > +++ b/src/prelude-lml.c > @@ -37,6 +37,7 @@ > #include <sys/select.h> > #include <netinet/in.h> > #include <arpa/inet.h> > +#include "ltdl.h" > > #if TIME_WITH_SYS_TIME > # include <sys/time.h> > > then you'll want to run libtoolize --force and aclocal and autoconf to > regenerate configure. > > Then you can ./configure and build properly. > > I will attach the diff's for both prelude-lml and prelude-manager, if > you'd like me to open 2 seperate bug reports I will. New description: Hi, I've been suggested to forward this bug upstream ... It would really depend mostly when you are going to support libtool 2.2.4 but I have created a small patch and how to get it to work properly. This is also related to prelude-manager as it suffers the same problem. Below is the backtrace related to prelude-manager as I failed to get one... :( sorry I know. {{{ #0 0x00007f18e7a3e690 in strcmp () from /lib/libc.so.6 #1 0x00007f18e75af672 in lt_dlpreload_open () from /usr/lib/libltdl.so.7 #2 0x00007f18e8c90470 in prelude_plugin_load_from_dir (head=0x0,dirname=0x40fa60 "/usr/lib64/prelude-manager/reports", symbol=0x40fd3b "manager_plugin_init", ptr=0x6160e0 subscribe=0x40ab25 <subscribe>, unsubscribe=0x40aacf <unsubscribe>) at prelude-plugin.c:525 #3 0x000000000040aa20 in report_plugins_init (dirname=0x40fa60 "/usr/lib64/prelude-manager/reports", data=0x6160e0) at report-plugins.c:406 #4 0x00000000004086dd in main (argc=1, argv=0x7ffff1325478) at prelude-manager.c:165 }}} The patch is fairly easy and specific, in the case of prelude-lml it's fairly easy. {{{ diff --git a/src/prelude-lml.c b/src/prelude-lml.c index 8880dc8..c98c313 100644 --- a/src/prelude-lml.c +++ b/src/prelude-lml.c @@ -37,6 +37,7 @@ #include <sys/select.h> #include <netinet/in.h> #include <arpa/inet.h> +#include "ltdl.h" #if TIME_WITH_SYS_TIME # include <sys/time.h> }}} then you'll want to run libtoolize --force and aclocal and autoconf to regenerate configure. Then you can ./configure and build properly. I will attach the diff's for both prelude-lml and prelude-manager, if you'd like me to open 2 seperate bug reports I will. -- Comment(by yoann): Thanks for reporting this issue! The fix introduce a direct dependency of Prelude-LML and Prelude-Manager to libltdl, although plugin support code is located in libprelude. Do you have an analysis of what is going wrong without the patch? Are you aware of any other possible fix? -- Ticket URL: <https://trac.prelude-ids.org/ticket/294#comment:1> Prelude Hybrid IDS <http://www.prelude-ids.org> The Prelude Hybrid Intrusion Detection System suite _______________________________________________ Prelude-devel site list [email protected] http://lists.prelude-ids.org/mailman/listinfo/prelude-devel