Fwd: Break of software under linux-2.1.x

gt1355b@prism.gatech.edu
Sat, 26 Apr 1997 13:14:33 +0000 (GMT)


Hello all,

I thought I'd forward this to you and see if you had any comments....

thanks,
chris

------ Forwarded message ------>>
From: Roger Zimmermann <roz@kaa.fvk-berlin.de>
Subject: Break of software under linux-2.1.x
Date: Sat, 26 Apr 1997 16:39:52 +0200
To: gt1355b@prism.gatech.edu

Hi Chris,

I have to tell about the breakdown of a software package under Linux 2.1.x

The software is 'curry', a commercial package written by Phillips
Medical-Systems.
It is designed to display and analyzes biomagnetic and bioelectric data and
integrate MRI pictures. (Because it is quite expensive, it's not very
distributed). It is written with Sun's xview interface. A database for the
management of the different measurements is managed by a server program, which
is started separately.

>From version 2.1.15 to 2.1.16 the server client connection breaks. While under
2.1.15 the database could be opened, the same under 2.1.16 gives an extra popup
window:
any_command_hw:
COMMAND_OPEN_OLDDB(0)
CDB_GDBM_ERROR(2)
Invalid argument
Can't be reader

until now (2.1.36) this hasn't changed.

I have included parts of the respective 'strace' logs:
(I can send the full logs on request.)

================ 'strace curry' under Linux 2.1.15 (db-acces works)
...
uname({sys="Linux", node="kaa.fvk-berlin.de", ...}) = 0
open("/etc/hosts", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0
read(7, "127.0.0.1\tlocalhost\tlocalhost."..., 4096) = 77
read(7, "", 4096) = 0
close(7) = 0
open("/etc/protocols", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=715, ...}) = 0
read(7, "#\n# protocols\tThis file descri"..., 4096) = 715
close(7) = 0
gettimeofday({862061152, 167932}, NULL) = 0
getpid() = 466
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 7
getpid() = 466
bind(7, {sin_family=AF_INET, sin_port=htons(642),
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EACCES (Permission denied)
ioctl(7, FIONBIO, [1]) = 0
sendto(7, "4`\214N\0\0\0\0\0\0\0\2\0\1\206\240"..., 56, 0, {sin_family=AF_INET,
sin_port=htons(111), sin_addr=inet_addr("127.0.0.1")}, 16) = 56
oldselect(256, [7], NULL, NULL, {5, 0}) = 1 (in [7], left {5, 0})
recvfrom(7, "4`\214N\0\0\0\1\0\0\0\0\0\0\0\0\0"..., 400, 0,
{sin_family=AF_INET,
sin_port=htons(111), sin_addr=inet_addr("127.0.0.1")}, [16]) = 28
close(7) = 0
close(7) = -1 EBADF (Bad file number)
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 7
bind(7, {sin_family=AF_INET, sin_port=htons(643),
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EACCES (Permission denied)
connect(7, {sin_family=AF_INET, sin_port=htons(804),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({862061152, 196715}, NULL) = 0
getpid() = 466
geteuid() = 204
getegid() = 52
write(7, "\200\0\0\2002a\3\331\0\0\0\0\0\0"..., 132) = 132
oldselect(256, [7], NULL, NULL, {900, 0}) = 1 (in [7], left {899, 900000})
read(7, "\200\0\0|2a\3\331\0\0\0\1\0\0\0\0"..., 4000) = 128
write(3, ">\0\7\0\207\0\300\3\210\0\300\3\214"..., 200) = 200
read(3, "\1\2\343\30\0\0\0\0\207\0\300\3\0"..., 32) = 32
write(7, "\200\0\0@1a\3\331\0\0\0\0\0\0\0\2"..., 68) = 68
oldselect(256, [7], NULL, NULL, {900, 0}) = 1 (in [7], left {899, 980000})
read(7, "\200\0\1\2401a\3\331\0\0\0\1\0\0"..., 4000) = 420
write(3, ">\0\7\0\207\0\300\3\210\0\300\3\214"..., 2036) = 2036
time([862061152]) = 862061152
...

================ 'strace curry' under Linux 2.1.16 (db-access broken)
...
uname({sys="Linux", node="kaa.fvk-berlin.de", ...}) = 0
open("/etc/hosts", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0
read(7, "127.0.0.1\tlocalhost\tlocalhost."..., 4096) = 77
read(7, "", 4096) = 0
close(7) = 0
open("/etc/protocols", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=715, ...}) = 0
read(7, "#\n# protocols\tThis file descri"..., 4096) = 715
close(7) = 0
gettimeofday({862061820, 357868}, NULL) = 0
getpid() = 472
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 7
getpid() = 472
bind(7, {sin_family=AF_INET, sin_port=htons(648),
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EACCES (Permission denied)
ioctl(7, FIONBIO, [1]) = 0
sendto(7, "4gp\310\0\0\0\0\0\0\0\2\0\1\206\240"..., 56, 0, {sin_family=AF_INET,
sin_port=htons(111), sin_addr=inet_addr("127.0.0.1")}, 16) = 56
oldselect(256, [7], NULL, NULL, {5, 0}) = 1 (in [7], left {5, 0})
recvfrom(7, "4gp\310\0\0\0\1\0\0\0\0\0\0\0\0\0"..., 400, 0,
{sin_family=AF_INET,
sin_port=htons(111), sin_addr=inet_addr("127.0.0.1")}, [16]) = 28
close(7) = 0
close(7) = -1 EBADF (Bad file number)
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 7
bind(7, {sin_family=AF_INET, sin_port=htons(649),
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EACCES (Permission denied)
connect(7, {sin_family=AF_INET, sin_port=htons(811),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({862061820, 383168}, NULL) = 0
getpid() = 472
geteuid() = 204
getegid() = 52
write(7, "\200\0\0\2002g\335\344\0\0\0\0\0"..., 132) = 132
oldselect(256, [7], NULL, NULL, {900, 0}) = 1 (in [7], left {899, 920000})
read(7, "\200\0\0\2702g\335\344\0\0\0\1\0"..., 4000) = 188
close(7) = 0
write(2, "any_command_hw:\nCOMMAND_OPEN_OL"..., 89any_command_hw:
COMMAND_OPEN_OLDDB(0)
CDB_GDBM_ERROR(2)
Invalid argument
Can't be reader
) = 89
...

It seems to be connected with filedescriptor 7, which itself is a socket.

Our configuration is the same, which is neccessary for the newest kernels
execpt the binutils package, which must be downgraded (2.7.0.9 -> .3) to
compile kernels with version < 2.1.28.

Because we need newer kernels due to our hardware, we are a bit in trouble with
this. If You can tell me further sources of information, where I can ask about
this, it would be of great help for me.

Please return mail to: zimmermann@fvk-berlin.de

Thanks, Roger

-- 
Roger Zimmermann  ***  Elektro- und Magnetophysiologie, Berlin Buch
  Wiltbergstra/3e 50   D - 13125 Berlin    Tel.: <Ger>/30 9417 2427
-----------------------------------------  Fax.: <Ger>/30 9417 2466
  via E-mail:  zimmermann@fvk-berlin.de,  roz@berlin.snafu.de
 -=-=-=-=-  The quick brown fox jumps over the lazy dog.  -=-=-=-=-
PGP-ID:  Roger Zimmermann <zimmermann@fvk-berlin.de>
Key fingerprint =  83 16 D1 82 06 71 16 60  6F 61 95 65 BB CA 02 E0