Dnsbl module crash (help please)

These are old archives. They are kept for historic purposes only.
Post Reply
Keen
Posts: 2
Joined: Thu Mar 08, 2012 10:47 am

Dnsbl module crash (help please)

Post by Keen »

Hello i try to use m_dnsbl module (you can find on modules page) but it crash and close. Please help me i really need this module (i know bopm and i use it but i need something that bans proxies before they join any channel)

here is the backtrace result:

Code: Select all

=================== START HERE ======================
BACKTRACE:
[New Thread 29864]
[Thread debugging using libthread_db enabled]
Core was generated by `/home/mydomain/Unreal3.2/src/ircd'.
Program terminated with signal 11, Segmentation fault.
#0  0xa1b08174 in dnsbl_result_parser (arg=0x816e0a8, status=0, he=0x0) at proxy.c:251
251                     result=htonl(*((unsigned long *) he->h_addr_list[0])) - RESULTOFFSET;
#0  0xa1b08174 in dnsbl_result_parser (arg=0x816e0a8, status=0, he=0x0) at proxy.c:251
#1  0x0809a6d8 in end_hquery ()
#2  0x0809ab40 in host_callback ()
#3  0x0809fa48 in end_squery ()
#4  0x0809fb35 in search_callback ()
#5  0x0809f83a in qcallback ()
#6  0x0809e4d0 in end_query ()
#7  0x0809eff3 in process_answer ()
#8  0x0809f4f3 in processfds ()
#9  0x0805773f in read_message (delay=1, listp=0x8135960) at s_bsd.c:1686
#10 0x08061c10 in main (argc=0, argv=<value optimized out>) at ircd.c:1864

#0  0xa1b08174 in dnsbl_result_parser (arg=0x816e0a8, status=0, he=0x0) at proxy.c:251
251                     result=htonl(*((unsigned long *) he->h_addr_list[0])) - RESULTOFFSET;

0x8137b20 <backupbuf>:   "PONG :4507DB5D"

#0  0xa1b08174 in dnsbl_result_parser (arg=0x816e0a8, status=0, he=0x0) at proxy.c:251
        result = <value optimized out>
#1  0x0809a6d8 in end_hquery ()
No symbol table info available.
#2  0x0809ab40 in host_callback ()
No symbol table info available.
GCC: gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)
UNAME: Linux mydomain.com 2.6.32.55-grsec #1 SMP Sat Jan 28 06:02:33 EET 2012 i686 i686 i386 GNU/Linux
UNREAL: Unreal3.2.9-rc2 build
CORE: -rw------- 1 mydomain mydomain 1585152 Mar  8 12:10 core
===================  STOP HERE ======================
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Dnsbl module crash (help please)

Post by Stealth »

m_dnsbl is a module that is known to not work. It is still on the modules page because the modules page is not currently maintained, but will be updated when the new site is complete.
Keen
Posts: 2
Joined: Thu Mar 08, 2012 10:47 am

Re: Dnsbl module crash (help please)

Post by Keen »

I see Stealth thank you for your reply. My second solution is your delay join module but there is a problem. The delay join module do the autojoin chans action before the cfg.time but i need a module that will keep waiting the user till the cfg.time so Bopm can check user host and ban hem if he is a proxy. But your module make join action before delay time. I used your 2.0.2 version and if you can change the code for me i will be very happy. The module must wait until delay time and after that time must join the user to the autojoin chans. Can you help me with this issue please.
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Dnsbl module crash (help please)

Post by Stealth »

Modifying the module to do that would require constant checking of each user not on the auto-join channel, which would require timed events and the module would need to loop and check everyone connected to your server every few seconds. This would put unnecessary load on the server.

You'd be better to use a service or bot that monitors connects and uses SAJOIN to move the users to a channel X seconds after they connect. As an added bonus you can have that same bot or service join them to the channel if they are not in any channels for a certain amount of time.
Post Reply