View Issue Details

IDProjectCategoryView StatusLast Update
0003086unrealmodule apipublic2006-11-25 15:59
Reporterwu Assigned To 
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionno change required 
Product Version3.2.5 
Summary0003086: Can't load modules
DescriptionIrcd can't load any module:

getuid() = 1000 (0x3e8)
geteuid() = 1000 (0x3e8)
getgid() = 1000 (0x3e8)
getegid() = 1000 (0x3e8)
umask(0x3f) = 18 (0x12)
sigaction(SIGWINCH,0xbfbffb5c,0x0) = 0 (0x0)
sigaction(SIGPIPE,0xbfbffb5c,0x0) = 0 (0x0)
sigaction(SIGALRM,0xbfbffb5c,0x0) = 0 (0x0)
sigaction(SIGHUP,0xbfbffb5c,0x0) = 0 (0x0)
sigaction(SIGINT,0xbfbffb5c,0x0) = 0 (0x0)
sigaction(SIGTERM,0xbfbffb5c,0x0) = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbffad4,63) ERR#2 'No such file or directory'
mmap(0x0,4096,0x3,0x1002,-1,0x0) = 672399360 (0x28140000)
break(0x8233000) = 0 (0x0)
break(0x8234000) = 0 (0x0)
break(0x8235000) = 0 (0x0)
gettimeofday(0xbfbffb4c,0x0) = 0 (0x0)
open("/dev/urandom",0x0,01) = 3 (0x3)
read(0x3,0xbfbffb54,0x20) = 32 (0x20)
close(3) = 0 (0x0)
setrlimit(0x4,0xbfbffbb4) = 0 (0x0)
chdir(0x8113c44) = 0 (0x0)
mkdir(0x811432b,0x1c0) ERR#17 'File exists'
 _ _ _ ___________ _____ _
| | | | | |_ _| ___ \/ __ \ | |
| | | |_ __ _ __ ___ __ _| | | | | |_/ /| / \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | | / | | / _` |
| |_| | | | | | | __/ (_| | |_| |_| |\ \ | \__/\ (_| |
 \___/|_| |_|_| \___|\__,_|_|\___/\_| \_| \____/\__,_|
write(2,0xbfbff47c,336) = 336 (0x150)
                           v3.2.5
write(2,0xbfbff46c,34) = 34 (0x22)
                     using TRE 0.7.2 (GPL)
write(2,0xbfbff47c,43) = 43 (0x2b)
                     using OpenSSL 0.9.7b 10 Apr 2003
write(2,0xbfbff46c,54) = 54 (0x36)
                     using zlib 1.1.3
write(2,0xbfbff47c,38) = 38 (0x26)

write(2,0xbfbff46c,1) = 1 (0x1)
break(0x8236000) = 0 (0x0)
break(0x8237000) = 0 (0x0)
stat("tmp",0xbfbff6a4) = 0 (0x0)
open("tmp",0x4,04037020174) = 3 (0x3)
fstat(3,0xbfbff6a4) = 0 (0x0)
fcntl(0x3,0x2,0x1) = 0 (0x0)
__sysctl(0xbfbff55c,0x2,0x8202440,0xbfbff558,0x0,0x0) = 0 (0x0)
fstatfs(0x3,0xbfbff5a4) = 0 (0x0)
break(0x8238000) = 0 (0x0)
getdirentries(0x3,0x8237000,0x1000,0x82320b4) = 512 (0x200)
getdirentries(0x3,0x8237000,0x1000,0x82320b4) = 0 (0x0)
lseek(3,0x0,0) = 0 (0x0)
close(3) = 0 (0x0)
chmod(0x8113c33,0x180) = 0 (0x0)
* Loading IRCd configuration ..
write(2,0xbfbff01c,32) = 32 (0x20)
open("unrealircd.conf",0x0,027757775304) = 3 (0x3)
fstat(3,0xbfbffaa4) = 0 (0x0)
read(0x3,0x8237000,0xb86) = 2950 (0xb86)
close(3) = 0 (0x0)
break(0x8239000) = 0 (0x0)
break(0x823a000) = 0 (0x0)
lstat("modules/commands.so",0xbfbfe1b4) = 0 (0x0)
open("tmp/39AE486A.commands.so",0x0,0666) ERR#2 'No such file or directory'
link(0x8232440,0x81cb7c0) = 0 (0x0)
* unrealircd.conf:1: loadmodule modules/commands.so: failed to load: Service unavailable
write(2,0xbfbfef7c,89) = 89 (0x59)
[error] IRCd configuration failed to load
write(2,0xbfbff01c,42) = 42 (0x2a)
exit(0xffffffff) process exit, rval = 65280

But tmp/39AE486A.commands.so does exist ...
Attached Files
kdump.txt.txt (7,068 bytes)
3rd party modules

Activities

syzop

2006-10-10 07:19

administrator   ~0012480

I don't know what kind of trace this is but many things (many calls) are missing and many calls are not expanded. So not too helpful. Maybe try 'strace' instead.

Make sure your 'modules/commands.so' exists and that your DPATH is set correctly:
(In your source dir do:)
$ grep DPATH include/setup.h
#define DPATH "/home/syzop/Unreal3.2"

so then verify with:
ls -al /home/syzop/Unreal3.2/modules/commands.so

Well I cannot help much here, too much missing I'm afraid, but hope I gave you some hints.

wu

2006-10-10 08:00

reporter   ~0012481

This trace output is from 'truss'.

bash-2.04$ cat Unreal3.2/include/setup.h | grep DPATH
#define DPATH "/usr/local/home/irc/uircd"
bash-2.04$ ls -la /usr/local/home/irc/uircd/modules/commands.so
-rwx------ 1 irc irc 980072 Oct 10 15:29 /usr/local/home/irc/uircd/modules/commands.so
bash-2.04$ whoami
irc

wu

2006-10-10 08:05

reporter   ~0012482

I don't have strace on the system, but i'm attaching a ktrace/kdump output.

syzop

2006-10-10 10:59

administrator   ~0012483

I can't say that's useful either... this is really nothing compared to a strace :p. I would suggest strace.

Additionally, it can be a good idea to try with latest CVS, which has slightly better error checking if something goes wrong with module loading.
http://www.vulnscan.org/UnrealIRCd/cvs/Unr3.2-20061009.tar.gz
And paste me what output you get then.

You might also want to try installing the "default way" instead of specifying a directory, see if you get different results than.

And last but not least, I'm presuming your home directory is not mounted noexec or something? ;p

monas

2006-10-10 12:54

reporter   ~0012484

wu, what is your OS? Solaris? (I remember solaris had truss for tracing processes).

Could you "ldd tmp/39AE486A.commands.so" and maybe you'll see that something is not found?

syzop

2006-11-24 15:34

administrator   ~0012722

Any results on what I or monas said?
If it's solved and not an unreal bug, or if you don't respond, then I'll close this.
If you think unreal is at fault or not saying enough info (even with latest CVS), then let us know.
Thanks.

wu

2006-11-25 15:57

reporter   ~0012730

I didn't have time to test it around because i had to have unrealircd up and running fast. So i've updated the system to the latest release and everything is working fine. I remember that i did find something on the net about the 'service unavailable' error, and it was the OS problem.
I think that you can close the issue.

syzop

2006-11-25 15:59

administrator   ~0012731

ok, thanks :)

Issue History

Date Modified Username Field Change
2006-10-10 07:03 wu New Issue
2006-10-10 07:19 syzop Note Added: 0012480
2006-10-10 08:00 wu Note Added: 0012481
2006-10-10 08:04 wu File Added: kdump.txt.txt
2006-10-10 08:05 wu Note Added: 0012482
2006-10-10 10:59 syzop Note Added: 0012483
2006-10-10 12:54 monas Note Added: 0012484
2006-11-24 15:34 syzop Note Added: 0012722
2006-11-25 15:57 wu Note Added: 0012730
2006-11-25 15:59 syzop Status new => closed
2006-11-25 15:59 syzop Note Added: 0012731
2006-11-25 15:59 syzop Resolution open => no change required
2017-01-06 15:48 syzop Category module => module api