* DU Acroread on Linux
@ 1998-03-09 20:20 Oleg Gusev
0 siblings, 0 replies; only message in thread
From: Oleg Gusev @ 1998-03-09 20:20 UTC (permalink / raw)
To: axp-list
hi,
after DU Netscape is running now without any problems, i tried to run
another useful program - Acrobat Reader ( yes, i know about
'ghostview' and 'xpdf', but running DU binaries makes fun :))
I installed it with minor changes in install script and
no wonder, it crashed on 2.1.89. The reason for the crash is
libpthread.so from DU. I took the simpliest example from
linuxthreads package ( ex1.c ), compiled it on DU
( btw it seems you can't staticly compile with pthreads )
and it crashes in the same way as acroread.
Here is how it crashed on Linux:
[root@alpha oleg]# ./ex1
set_program_attributes(120000000 2000 140000000 230)
get_reply_port: failed allocating new reply port.
(os/kern) unknown error code (4e)
DECthreads bugcheck (version V3.13-435), terminating execution.
vpInit: unknown error code (78) nxm_task_init(1,0x140002000)
Aborted (core dumped)
And here is the trace of the same binary on DU4.0:
$ trace ./ex1
Tracing process /proc/22782
getpagesize () = 8192
obreak (0x14000e230) = 0
^^^^^^
Hmm, DU uses 'brk'-SYS_17 and Linux 'set_program_attributes'-SYS_43
for some unclear reason.
getpagesize () = 8192
getsysinfo (55ld, 0x11ffff2c0, 4ld, 0x0, (void)) = 1
^^^^
Not fully implemented in Linux 'getsysinfo' call requesting the number
of CPUs :) I added it on Linux, but the program didn't reach it.
obreak (0x14001c230) = 0
mprotect (0x14000e000, 8192, 0) = 0
obreak (0x14002a230) = 0
mprotect (0x14001a000, 8192, 0) = 0
sigaction (SIGFPE, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
sigaction (SIGSEGV, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
sigaction (SIGBUS, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
sigaction (SIGILL, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
sigaction (SIGEMT, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
sigaction (SIGABRT, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
sigaction (SIGSYS, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
sigaction (SIGTRAP, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
sigaction (SIGPIPE, {{0x3ff807b37f8,0x0,0}}, {{0x0,0x0,0}}) = 0
obreak (0x140038230) = 0
mprotect (0x140026000, 8192, 0) = 0
obreak (0x140046230) = 0
mprotect (0x140032000, 8192, 0) = 0
write (2, 0x14002f798, 19) = Starting process a
19
write (1, 0x140000100, 1) = a1
write (1, 0x140000100, 1) = a1
write (2, 0x14003b798, 19) = Starting process b
19
write (1, 0x140000108, 1) = b1
write (1, 0x140000108, 1) = b1
close (0) = 0
close (1) = 0
close (2) = 0
sigprocmask (1, 0xfffffffffffff137, 0x0) = 0
exit (0) = (0)
EXIT [status=0]
./ex1
So no unusual syscalls are used on DU, but why Linux is going another way
if the emulation is correct ? There are a lot of debugging info inside
the '/sbin/loader', but even setting _RTD_ARGS='-trace' don't show
all of it. Any debugging hints are welcomed. Also if somebody knows the
way how to staticly compile with pthread on DU, i'd like to hear.
Oleg.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-03-09 20:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-09 20:20 DU Acroread on Linux Oleg Gusev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox