Channing Benson said on Tue, Mar 03, 2009 at 03:36:39PM -0500:

> WRT the error below: As far as I can tell, this happens when a program
> tries to call shm_open with no /dev/shm mounted.
> 
> Can you check your chroot environment to make sure that it's set up so
> that it has a /dev/shm?

Ok, in my current env, I now have the /dev/shm mounted. However, testing
the scheduler still gives the same issue:

bash-3.2# mount
tmpfs on /dev/shm type tmpfs (rw,size=32m)
shm on /dev/shm type tmpfs (rw)
/proc on /proc type proc (rw)
bash-3.2#
bash-3.2# strace  /usr/lib/fossology/fossology-scheduler -t 
[...]
write(3, "2009-07-02 14:10:33 scheduler[16"..., 96) = 96
statfs("/dev/shm/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, 
f_blocks=120179764, f_bfree=53405863, f_bavail=53405863, f_files=30531584, 
f_ffree=30094896, f_fsid={1327308498, -664770461}, f_namelen=255, 
f_frsize=4096}) = 0
open("/proc/mounts", O_RDONLY)          = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb803d000
read(4, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 790
statfs("/dev", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=120179764, 
f_bfree=53405863, f_bavail=53405863, f_files=30531584, f_ffree=30094896, 
f_fsid={1327308498, -664770461}, f_namelen=255, f_frsize=4096}) = 0
statfs("/dev/shm", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, 
f_blocks=120179764, f_bfree=53405863, f_bavail=53405863, f_files=30531584, 
f_ffree=30094896, f_fsid={1327308498, -664770461}, f_namelen=255, 
f_frsize=4096}) = 0
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb803d000, 4096)                = 0
futex(0xb80381f8, FUTEX_WAKE, 2147483647) = 0
stat64("/var/log/fossology/fossology.log", {st_mode=S_IFREG|0660, st_size=3776, 
...}) = 0
time(NULL)                              = 1246558233
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
write(3, "2009-07-02 14:10:33 scheduler[16"..., 108) = 108
stat64("/var/log/fossology/fossology.log", {st_mode=S_IFREG|0660, st_size=3884, 
...}) = 0
time(NULL)                              = 1246558233
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
write(3, "2009-07-02 14:10:33 scheduler[16"..., 80) = 80
exit_group(-1)                          = ?
bash-3.2# 
bash-3.2# tail /var/log/fossology/fossology.log
[...]
2009-07-02 14:10:33 scheduler[16165] : Log opened
2009-07-02 14:10:33 scheduler[16165] : Scheduler started.  Build version: 
1.1.0~rc1, exported.

2009-07-02 14:10:33 scheduler[16165] : *** fossology-scheduler failed on 
shm_open. Function not implemented
2009-07-02 14:10:33 scheduler[16165] : *** fossology-scheduler lock failed. ***
bash-3.2#                                                                       
                                            

So I guess there is still something wrong in my chroot, but I'm not sure
what now.

Bruno.
-- 
Linux Profession Lead EMEA  / Open Source Ambassador \   EMEA CME Sol. Center
http://www.mondorescue.org / HP/Intel Solution Center \  http://hpintelco.net
Des infos sur Linux?  http://www.HyPer-Linux.org      http://www.hp.com/linux
La musique ancienne?  http://www.musique-ancienne.org http://www.medieval.org
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology

Reply via email to