Program Error

capadokya

Verified User
Joined
May 13, 2007
Messages
9
Hi Guys,

I want to delete 1 user and i recive this error message,

Program Error

Details

A segmentation fault has occurred

How can i delete an user whitout getting this message?
I use Centos 4.4

Thanks
 
Last edited:
Hello,

Debugging a segfault can be tricky..causes can vary.
What you'll need to do is go to the page to delete a user such that you're only 1 click away from deleting the user in DA (generating the segfault).
Then in ssh, type:

cd /usr/local/directadmin
killall -9 directadmin
gdb directadmin
run s

To start up DA in single process standalone mode.
Go to your browser and click the submit button to generate the segfault.
gdb should then show you that a segfault has occured.
To see where in the code, type:

bt full

And paste me the full output of that command so I can look into it farther.

Note if you don't have gdb, type:

yum install gdb

John
 
That's not a fix.. it's a way to figure out what the problem was to try and fix it ;)

If it's working now, ok.. just keep you eyes out for it again.

John
 
damn, not working again.. it work some sec and then he give me login page, when i put data and click on login i got always that error :/
 
In debug mode, you won't get any extra output to the page in your browser.
You'd get extra debug output to the ssh screen, because the daemon is running in the foreground.

To debug a segfault, use this:
http://help.directadmin.com/item.php?id=185

To run in debug mode (general looking at what's going on, but not segfaults), run it like this:

./directadmin b800

John
 
(gdb) run s
Starting program: /usr/local/directadmin/directadmin s
DirectAdmin 1.31.0
Accepting Connections on port 2222

Program exited normally.
Current language: auto; currently asm
(gdb) run s
Starting program: /usr/local/directadmin/directadmin s
DirectAdmin 1.31.0
Accepting Connections on port 2222

(gdb) bt full
#0 0x082338ab in accept ()
No symbol table info available.
#1 0x08080d82 in Sockets::wait ()
No symbol table info available.
#2 0x0815f35a in main ()
No symbol table info available.

with ./directadmin b800 i get

>./directadmin b800
Debug set to level 800
DirectAdmin 1.31.0
Accepting Connections on port 2222


and nothing more...

i got the problem when i make login.. cannot do nothing else.. i retry login and get always same error..
 
Hello,

The call to "accept" is a system call. The accept function is a system function, meaning it's in one of the libraries that DA links to at runtime. If there were any recent updates to the system, it's likely that one of these libraries was changed to a version that isn't compatible with the directadmin binaries. "libc" would be my best guess. You can check to see what DA links to by typing:
Code:
ldd /usr/local/directadmin/directadmin
.. but the only real solutoin would be to revert back to the original version of the given library.

John
 
but i didnt update nothing from a week or more..

ldd /usr/local/directadmin/directadmin
not a dynamic executable


any idea of what i can check?

ive checked on error.log of directadmin and last lines are:

2008:01:04-20:34:04: can't open the log file to write
2008:01:04-20:34:11: can't open the log file to write
2008:01:04-20:34:11: can't open the log file to write
2008:01:04-20:34:12: can't open the log file to write
2008:01:04-20:34:13: can't open the log file to write
2008:01:11-14:38:34: Auth::passValid: unable to get user_info for sitoettu
2008:02:08-22:00:29: feature removed July 26, 2006
2008:02:08-22:00:29: feature removed July 26, 2006
2008:02:08-22:00:29: feature removed July 26, 2006
2008:02:08-22:00:29: feature removed July 26, 2006
2008:02:08-22:04:11: ConfigFile::writeFile(./data/admin/login.hist) : Timestamp from when it was read is different, overwriting$
2008:02:08-22:04:11: ConfigFile::writeFile(./data/admin/tickets.list) : Timestamp from when it was read is different, overwriti$
2008:02:08-22:04:12: ConfigFile::writeFile(./data/users/admin/crontab.conf) : Timestamp from when it was read is different, ove$
 
ok i will try, but ive a question... where i can get license id and client id if i cannot open directadmin page? i have not those data casue is a vps that i rent...

thanks for support
 
problem persist

(gdb) run s
Starting program: /usr/local/directadmin/directadmin s
DirectAdmin 1.31.2
Accepting Connections on port 2222

Program exited normally.
Current language: auto; currently asm
(gdb)


>./directadmin b800
Debug set to level 800
DirectAdmin 1.31.2
Accepting Connections on port 2222
0: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
1: Accept-Encoding: gzip,deflate
2: Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
3: Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
4: Connection: keep-alive
5: Cookie: session=
6: Host: vitesse.crazynetwork.it:2222
7: Keep-Alive: 300
8: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

and no error line added in error.log

i dont know what else i can do...
 
If you're using the 4.4 binaries, then email us your LID and we'll changed it to the 4.x "static" binaries. The 4.4 binaries are dynamic, so link to libs on your system which may be incompatible with it. Moving to the 4.1 static binaries should still work, but since all things DA needs are built into the binary and not externally linked, they should work fine (in theory)... assuming that's the problem.

John
 
Login to DA:

Admin Level -> Licenses/Updates

It will say "compiled for".

Then to check your actual OS, type:
cat /etc/redhat-release

John
 
login on da is impossible... i got that error everytime i try it, by the way.. i use debian 4.0 and directadmin is setup for debian 3.1

The problem is that, till two days ag never had problem.. but.. i had to restart vps cause he wasnt responding and now, directadmin doesnt reply, domains are showed sometimes yes and sometimes no... on ssh seems to be all on and working... but directadmin give me that problem andif i check one of two domain on that bo i can see one time the home page one time no for example.. and if i go inside other pages sometimes they working and sometimes no..

i really dont know what else i can do...

>cat /etc/redhat-release
cat: /etc/redhat-release: No such file or directory
 
Back
Top