"A segmentation fault has occurred" error in Brute Force Monitor Page

gokcer

Verified User
Joined
Sep 12, 2009
Messages
16
When I click to Brute Force Monitor button at the main page I get:

Program Error

Details

A segmentation fault has occurred
http://help.directadmin.com/item.php?id=185

Directadmin error log:

*** Segmentation fault *** Log::~Log : done : User: admin : XXX.XXX.XXX.XXX : /CMD_BRUTE_FORCE_MONITOR : sort1=-1 : (null)

and lots of:

Table::tblcomp((null), (null))

And the output of gdb:

#0 0x000000380fc79a14 in strncpy () from /lib64/libc.so.6
No symbol table info available.
#1 0x000000000050ba03 in ServerInfo::fill_brute_force_tokens ()
No symbol table info available.
#2 0x000000000053162b in Command::brute_force_monitor ()
No symbol table info available.
#3 0x000000000044b623 in Command::doCommand ()
No symbol table info available.
#4 0x000000000044bbee in Command::run ()
No symbol table info available.
#5 0x00000000005532c0 in server ()
No symbol table info available.
#6 0x0000000000553b7e in main ()
No symbol table info available.

Can anyone help about this?
 
Thank you zEitEr. here is the output (domain name and ip changed to xxx by me):

Sockets::handshake - begin
Sockets::handshake - end
/CMD_BRUTE_FORCE_MONITOR
GET string: sort1=-1
0: Accept-Encoding: gzip, deflate
1: Accept-Language: tr
2: Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
3: Connection: Keep-Alive
4: Cookie: session=1KXOdLlvKlqOc5LtO2hwio6bE8TCdBhcVE16Zk1rVpE5vXyHadEGRKpfQGp1SWev
5: Host: xxx.com:2222
6: Referer: http://xxx.com:2222/
7: User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS6329; FDM; .NET CLR 2.0.50727; .NET CLR 3.5.30729)
Checking referer http://xxx.com:2222/ to xxx.com:2222
Referer check passed: xxx.com=xxx.com 2222=2222
Command::doCommand(/CMD_BRUTE_FORCE_MONITOR)
*** Segmentation fault *** Log::~Log : done : User: admin : xxx.xxx.xxx.xxx : /CMD_BRUTE_FORCE_MONITOR : sort1=-1 : (null)
 
OK, I see, not that informative output it is. What if you temporary empty the file brute_log_entries.list and try again. Will this help you?
 
OK, I see, not that informative output it is. What if you temporary empty the file brute_log_entries.list and try again. Will this help you?

Yes, i tried that but it didn't solve the problem.
 
OK, I guess Directadmin Support would need to take a look at this thread. Will you provide us with information about your OS release name and its version?
 
Problem gone away without doing anything :) Maybe the BFM log clearing rotation fixed it, I don't know.

Even so, thank you for your help zEitEr

Best Regards...
 
Here I post the same "Segmentation fault" from one of servers:


Code:
[root@host directadmin]# killall -9 directadmin
[root@host directadmin]# gdb directadmin
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-37.el5_7.1)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/directadmin/directadmin...(no debugging symbols found)...done.
(gdb) run s
Starting program: /usr/local/directadmin/directadmin s
DirectAdmin 1.39.3
Accepting Connections on port 2222

Program received signal SIGSEGV, Segmentation fault.
0x0000003147879ea4 in strncpy () from /lib64/libc.so.6
(gdb) bt full
#0  0x0000003147879ea4 in strncpy () from /lib64/libc.so.6
No symbol table info available.
#1  0x000000000050ba03 in ServerInfo::fill_brute_force_tokens(Send*, ConfigFile&, char const*, char const*, int, ConfigFile*) ()
No symbol table info available.
#2  0x000000000053162b in Command::brute_force_monitor(char const*, char const*, int, ConfigFile*) ()
No symbol table info available.
#3  0x000000000044b623 in Command::doCommand(char const*) ()
No symbol table info available.
#4  0x000000000044bbee in Command::run(char const*) ()
No symbol table info available.
#5  0x00000000005532c0 in server() ()
No symbol table info available.
#6  0x0000000000553b7e in main ()
No symbol table info available.
(gdb) quit
A debugging session is active.


File /usr/local/directadmin/data/admin/brute_log_entries.list has 24176 lines
File /usr/local/directadmin/data/admin/brute_user.data has 620 lines

Linux **** 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux


Is it a Directadmin bug?
 
Had the same issue, purging / recreating

Code:
/usr/local/directadmin/data/admin/brute_log_entries.list

helped instantly.
 
Back
Top