RE: segmentation fault
"Ramon Tarruella" <[email protected]> Mon, 29 Mar 2004 21:03:30 -0400
| Newsgroups | gmane.network.net-policy.user |
|---|---|
| Message-ID | <[email protected]> |
Yes Michael I ran make clean, as I told you I reinstall everything again in a pc with a fresh and new RH9 instalation, and again I get the same segmentation fault. I really don't know what's happening the only thing I can think is about the way I build the opensnmp code I used: ./configure --with-db=/usr/local/BerkeleyDB.4.1/lib make make install I also tried adding the following specifications: --sysconfdir=/etc --prefix=/usr Everytime I tried this different specifications I ran make clean fisrt I also tried the opensnmp rpms, with the respective devel rpms I tried everything and still with the problem, so I will need your help regarding the output messages I sent you, considering you made that codes you are the one that can suggest from where comes the problem. The last thing that comes in my mind is that I'am using the net-snmp rpms, so don't know if that can affect, I had to use the rpms, because I was having problems adding the snmpd deamon to the deamons start list, when I build it from source. Please tell me if SNMP have something to do with this problem, or as you can saw in the segmentation fault messages, it's a particular of OPENSNMP. I don't care if I have to reinstall everything again, if it's necesary, but first need to make sure what the problem is. Considering you didn't get these messages, maybe it's something I'am doing wrong. Here is the detailed list of everything I did, just like it's in the INSTALL file: cd /root/.gnome-desktop/instalacion/PERL/RPMS rpm -i perl-DBI-1.32-5.i386.rpm cd /root/.gnome-desktop/instalacion/MYSQL/RPMS rpm -i MySQL-server-4.0.13-0.i386.rpm rpm -i MySQL-client-4.0.13-0.i386.rpm rpm -i MySQL-devel-4.0.13-0.i386.rpm rpm -i MySQL-bench-4.0.13-0.i386.rpm rpm -i MySQL-embedded-4.0.13-0.i386.rpm rpm -i MySQL-Max-4.0.13-0.i386.rpm rpm -i MySQL-shared-4.0.13-0.i386.rpm rpm -i MySQL-shared-compat-4.0.13-0.i386.rpm rpm -i mysql++-1.7.9-4.rh9.i386.rpm mysql --user=root GRANT ALL PRIVILEGES ON *.* TO [email protected] IDENTIFIED BY 'administrador' WITH GRANT OPTION; unzip /root/.gnome-desktop/instalacion/PERL/TAR-GZ/Apache-DBI-0.91.tar.gz in /usr/local cd /usr/local/Apache-DBI-0.91 perl Makefile.PL make make install cd /root/.gnome-desktop/instalacion/PERL/RPMS rpm -i perl-CGI-2.81-88.i386.rpm rpm -i perl-DBD-MySQL-2.1021-3.i386.rpm unzip /root/.gnome-desktop/instalacion/OTROS/TAR-GZ/libsmi-0.3.0.tar.gz in /usr/local cd /usr/local/libsmi-0.3.0 ./configure make make install echo "/usr/local/lib" >> /etc/ld.so.conf echo "/usr/lib" >> /etc/ld.so.conf ldconfig unzip /root/.gnome-desktop/instalacion/OTROS/TAR-GZ/db-4.1.25.tar.gz in /usr/local cd /usr/local/db-4.1.25/build_unix ../dist/configure --enable-cxx make make install echo "/usr/local/BerkeleyDB.4.1/lib" >> /etc/ld.so.conf ldconfig updatedb unzip /root/.gnome-desktop/instalacion/OTROS/TAR-GZ/opensnmp.tar.gz in /usr/local cd /usr/local/opensnmp ./configure --with-db=/usr/local/BerkeleyDB.4.1/lib make make install updatedb cd /root/.gnome-desktop/instalacion/OTROS/RPMS rpm -i compat-db-3.3.11-4.i386.rpm cd /root/.gnome-desktop/instalacion/PERL/RPMS rpm -i perl-Term-ReadKey-2.20-1mz.i386.rpm rpm -i perl-Tk-800.022-11.i386.rpm cd /root/.gnome-desktop/instalacion/NETSNMP/RPMS rpm -i net-snmp-5.0.9-3.i386.rh9.rpm rpm -i net-snmp-devel-5.0.9-3.i386.rh9.rpm rpm -i net-snmp-perlmods-5.0.9-3.i386.rh9.rpm edit /etc/rc.d/init.d/snmpd replace /etc/init.d/functions with /etc/rc.d/init.d/functions replace todos los /usr/local with /usr/ cd /usr/share/snmp/ snmpconf -g basic_setup agregar a /usr/share/snmp/snmpd.conf -> master agentx net-snmp-config --create-snmpv3-user -a 'administrador' -x 'administrador' 'root' net-snmp-config --create-snmpv3-user -a 'administrador' -x 'administrador' 'ramon2' net-snmp-config --create-snmpv3-user -a 'administrador' -x 'administrador' 'ramon' chkconfig --add snmpd service snmpd start updatedb unzip /root/.gnome-desktop/instalacion/NETPOLICY/TAR-GZ/net-policy-20030912.tar.gz in /usr/local cd /usr/local/net-policy-20030912 ./configure --with-db=/usr/local/BerkeleyDB.4.1 --with-cxxflags="-I/usr/incl ude/sqlplus" --with-sqluser=root --with-sqlpassword=administrador --sysconfd ir=/etc make su make install cd perl make clean perl Makefile.PL make make install edit /etc/httpd/conf/httpd.conf add: # # keep database connections alive # PerlModule Apache::DBI # # the NET-POLICY configuration manager # <Location /net-policy> SetHandler perl-script PerlHandler NetPolicy::htmlmanager PerlSetVar sql_user root PerlSetVar sql_pass administrador </Location> service httpd restart np-setup -u root -p administrador chkconfig --add net-policy service net-policy start cerberus: ln -s /usr/src/linux-2.4.20-8/configs/kernel-2.4.20-i686.config /usr/src/linux-2.4.20-8/.config DESCOMPRIMIR /root/.gnome-desktop/instalacion/OTROS/TAR-GZ/iptables-1.2.7a.tar.bz2 a /usr/local cd /usr/local/iptables-1.2.7a make install-devel cd /root/.gnome-desktop/instalacion/NETPOLICY/RPMS rpm -i np-cerberus-1.0.1-1.i386.rpm chkconfig --add np-cerberus service np-cerberus start plutoplus: cd /root/.gnome-desktop/instalacion/NETPOLICY/RPMS rpm -i np-plutoplus-1.0.1-1.i386.rpm chkconfig --add np-plutoplus service np-plutoplus start Anything I miss? Something not ok? Wait for your answer Thanks a lot Ramon Tarruella -----Mensaje original----- De: Michael Baer [mailto:[email protected]] Enviado el: lunes, 29 de marzo de 2004 19:20 Para: Ramon Tarruella CC: net-policy-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Asunto: Re: segmentation fault I re-read the error message you sent earlier and another thought occurred to me. Have you run 'make clean; make' in the opensnmp/ directory? The change I sent previously will not likely work without a make clean. Ramon> Michael, the problem is that I need to work with old Ramon> net-policy version : before-mayor-dbchanges, the reason: Ramon> as I understand the new version of net-policy is not Ramon> ready yet, so in resume I need something that works. So, Ramon> if I swith to new net-policy version will I have the Ramon> ability of making the policy configuration and send them Ramon> to the clients? Also what about cerberus and plutoplus, Ramon> will they work with new net-policy version? Ramon> Please understand my actual situation, in some weeks I'am Ramon> going to make a presentation in my university. I will Ramon> show the audience most of the project that are beeing Ramon> developed right now, where IPSEC and security is involved Ramon> and I will mention net-policy too, so I need a version of Ramon> net-policy that works, doesn't matter if it has special Ramon> features. So what can I do at this point: the old version Ramon> is not working because the problem with opensnmp and the Ramon> new version is not ready, I need to show something that Ramon> has this: Ramon> A GUI that configure and distributed the policy to the Ramon> clients Probe using ethereal, that both clients are Ramon> sending the encrypted data(cerberus and plutoplus) Ramon> So in you opinion what can I do? The new net-policy Ramon> version will solve my problem? Ramon> Wait for your answer Ramon> Thanks Ramon> Ramon Tarruella Ramon> -----Mensaje original----- De: Ramon> net-policy-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Ramon> [mailto:net-policy-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]En Ramon> nombre de Michael Baer Enviado el: lunes, 29 de marzo de Ramon> 2004 14:04 Para: Ramon Tarruella CC: Ramon> [email protected]; Ramon> Net-policy-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Asunto: Re: Ramon> segmentation fault >>>>> "Ramon" == Ramon Tarruella <[email protected]> writes: Ramon> Michael this problem was never solved, I'am working again Ramon> with net-policy, after 5 months, with the Ramon> before-mayor-dbchanges version + with the corrected file Ramon> opensnmp/app/snmpEngine.C:27 from the CVS you told me and Ramon> still receiving segmentation fault for: Ramon> hmmm, there has been a number of changes in OpenSNMP and Ramon> there is a new release, 0.3.7. I'm not seeing this error Ramon> with the current source code that I'm using (and it would Ramon> be difficult for me to try to work with the old source Ramon> code). The problem with using the 0.3.7 version with Ramon> your code is that the CG API's have changed (in fact, the Ramon> CG changes are the main changes between .3.7 and .3.6) Ramon> and a before-major-dbchanges version of np-distd is not Ramon> going to work with the current version of OpenSNMP. Ramon> The current version of np-distd should work with the old Ramon> version of the other net-policy applications (e.g. use a Ramon> current np-distd, current OpenSNMP, and old net-policy Ramon> for everything else). But it may be more work for you to Ramon> try to make this Frankenstein set of code work (and Ramon> difficult for us to help you) than it would be for you to Ramon> switch to using all of the newer source code. Ramon> Mike Ramon> -- [email protected] OpenSNMP/NetSNMP Ramon> ------------------------------------------------------- Ramon> This SF.Net email is sponsored by: IBM Linux Tutorials Ramon> Free Linux tutorial presented by Daniel Robbins, Ramon> President and CEO of GenToo technologies. Learn Ramon> everything from fundamentals to system Ramon> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click Ramon> _______________________________________________ Ramon> Net-policy-users mailing list Ramon> Net-policy-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Ramon> https://lists.sourceforge.net/lists/listinfo/net-policy-users -- [email protected] OpenSNMP/NetSNMP ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click