Re: Problem with dosemu

Frantisek Hanzlik
2014-05-04T11:20:07Z

jankomEarthlink wrote:
> Hi Franta,
>
> Not there yet... sorry.
>
> On 04/23/2014 03:06 AM, Frantisek Hanzlik wrote:
>> You can download missing
> Thanks for the links, I satisfied missing dependencies, did rpm install,
> see below:
>
> [root@Andraslinux apu]# rpm -ivh
> xfer_andraswd/Installedrpm-s/dosemu-1.4.0.8-git633.g3492afd.3.dbgemu.fc3.i686.rpm
>
> Preparing... ########################################### [100%]
> 1:dosemu ########################################### [100%]
> "/usr/share/dosemu/Xfonts": error scanning
> [root@Andraslinux apu]# dosemu
>
> This was all from root. After issuing dosemu command system hung as in
> many previous, earlier attempts. Ctr-c did not stop it. I ran again dosemu
> from another xterm window with strace and it is stuck at the segmentation
> fault.
>
> So back to segmentation fault, where it probably started this entire thread.
>
> (in parenthesis: "error scanning" is a strange message that I also get at
> boot when starting x session, but everything seems OK there)
>
> See my new posting to jegunn's message in the subject of segmentation fault.

Hi Janos,
sorry for the late reply. I'm not sure, when Your SIGSEGV DOSEMU crash
is caused by accessing to shm - Your strace seems normal. FYI, on my
FC3/i686/1GB RAM my strace in Your place is this:

open("/usr/lib/gconv/ISO8859-2.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\4\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=9432, ...}) = 0
old_mmap(NULL, 12316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb79a8000
old_mmap(0xb79aa000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1000) = 0xb79aa000
close(4) = 0
brk(0x9d22000) = 0x9d22000
write(3, "PKT: Cannot open tap%d: P\305\231\303\255stu"..., 44) = 44
statfs("/dev/shm/", {f_type=0x1021994, f_bsize=4096, f_blocks=129443, f_bfree=129443, f_bavail=129443, f_files=129443, f_ffree=129442, f_fsid={0, 0}, f_namel
en=255, f_frsize=4096}) = 0
futex(0xdea258, FUTEX_WAKE, 2147483647) = 0
open("/dev/shm/dosemu_5029", O_RDWR|O_CREAT|O_TRUNC|O_NOFOLLOW, 0600) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
unlink("/dev/shm/dosemu_5029") = 0
ftruncate64(4, 0) = 0
ftruncate64(4, 17891328) = 0
mmap2(NULL, 17891328, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = 0xb6898000
mprotect(0xb6898000, 17891328, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0xb6898000, 17891328, PROT_READ|PROT_WRITE) = 0
mprotect(0xb6898000, 1114112, PROT_READ|PROT_WRITE) = 0
mmap2(NULL, 1114112, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_FIXED, 4, 0) = 0
mprotect(0, 655360, PROT_NONE) = 0
setreuid32(500, 500) = 0
setregid32(500, 500) = 0
munmap(0x100000, 65536) = 0
mmap2(0x100000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_FIXED, 4, 0) = 0x100000
mmap2(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6098000
write(3, "CONF: reserving 8256Kb at 0x1000"..., 71) = 71
gettimeofday({1399198750, 192793}, NULL) = 0
open("/etc/localtime", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=806, ...}) = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=806, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6097000
read(5, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0"..., 4096) = 806
close(5) = 0
munmap(0xb6097000, 4096) = 0
mprotect(0xb69a8000, 4198400, PROT_READ|PROT_WRITE) = 0
mmap2(0xffffffff, 4194304, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED, 4, 0x110) = 0xb5c98000
write(3, "Registering HWRAM, type=e base=0"..., 56) = 56
write(3, "CONF: reserving 4096Kb at 0xB5C9"..., 58) = 58
write(3, "CONF: reserving 12Kb at 0xC0000 "..., 60) = 60
write(3, "SERIAL $Id$\n", 12) = 12
stat64("/dev/fd0", {st_mode=S_IFBLK|0660, st_rdev=makedev(2, 0), ...}) = 0
open("/dev/null", O_RDWR|O_LARGEFILE) = 5
open("/dev/null", O_RDWR|O_LARGEFILE) = 6
open("/usr/bin/libplugin_sdl.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/bin/libplugin_alsa.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/dosemu/libplugin_alsa.so", O_RDONLY) = 7
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\324\5\0"..., 512) = 512
fstat64(7, {st_mode=S_IFREG|0644, st_size=8027, ...}) = 0
old_mmap(NULL, 6760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) = 0xb5c96000
old_mmap(0xb5c97000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0) = 0xb5c97000
close(7) = 0
open("/usr/bin/libplugin_sndfile.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/dosemu/libplugin_sndfile.so", O_RDONLY) = 7
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\204\5\0"..., 512) = 512

and my shm kernel settings are:

# cat /proc/sys/kernel/{shmall,shmmax,shmmni}
2097152
33554432
4096

2) Your error message: '"/usr/share/dosemu/Xfonts": error scanning'
is perhaps caused by fc-cache problem. What You obtain on command:
fc-cache -v -f /usr/share/dosemu/Xfonts
It should be successfull and in '/usr/share/dosemu/Xfonts' directory
should be created (empty) file 'fonts.cache-1'.
You should also verify dosemu RPM package right installation by cmd:
rpm -V dosemu
On my PC it produce only one line (which is OK):
.......T. /usr/share/dosemu/Xfonts/fonts.dir

Also, are You using xfs - X font server?

Maybe You have somehow broken Your system - e.g. missing some files
or directories, bad ownership or permissions on them etc.
You can verify it by 'rpm -Va' command. This should not produce any
serious problems (it is necessary assessed output individually).

3) Did You tried run dosemu in console and/or in Xterm in terminal
mode ('dosemu -t')? What is result?

Franta Hanzlik