|
From: Bryan E. <ell...@jc...> - 2002-01-10 19:16:02
|
Let me begin by apologizing for the length of this post, but I want to
ensure I've included all the relevent information to ease
troubleshooting.
I'm attempting to run an OpenServer 5.0.6 app(in ELF format) using
kernel 2.4.17 with the 2.4.17-abi patch successfully applied. When I
attempt to run said app, it abruptly exits with a bus error. I've had
success running numerous other ELF binaries from the system in question.
After examining the trace data, I am led to believe that the problem may
be with unimplemented mmap flags in the abi-sco code. I have installed
all the libraries that sco's ldd tells me the application is linked to
under /emul/sco/usr/lib and have created the osr5 symlink.
So my question is do you believe this is mmap() related, and if so how
would you proceed to work around it. Or, if it something more obvious,
please show me the error of my previous assumption. Thanks in advance.
Output of `uname -a`:
Linux localhost 2.4.17 #1 Tue Jan 8 10:58:44 EST 2002 i686 unknown
Output of `lsmod`:
Module Size Used by
abi-sco 12160 0 (autoclean)
abi-cxenix 6384 0 (autoclean) [abi-sco]
abi-svr4 72384 0 (autoclean) [abi-sco abi-cxenix]
lcall7 1584 0 (autoclean) [abi-sco abi-cxenix]
abi-util 1760 0 (autoclean) [abi-sco abi-svr4 lcall7]
ymfpci 40288 1 (autoclean)
ac97_codec 9536 0 (autoclean) [ymfpci]
Output of `dmesg` (trace data):
Linux version 2.4.17 (root@localhost) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)) #1 Tue Jan 8 10:58:44 EST 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000007fe0000 (usable)
BIOS-e820: 0000000007fe0000 - 0000000007ff0000 (ACPI data)
BIOS-e820: 0000000007ff0000 - 0000000008000000 (reserved)
BIOS-e820: 00000000100a0000 - 00000000100b6e00 (reserved)
BIOS-e820: 00000000100b6e00 - 00000000100b7000 (ACPI NVS)
BIOS-e820: 00000000100b7000 - 0000000010100000 (reserved)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
On node 0 totalpages: 32736
zone(0): 4096 pages.
zone(1): 28640 pages.
zone(2): 0 pages.
Kernel command line: ro root=/dev/hda2
Initializing CPU#0
Detected 696.597 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1389.36 BogoMIPS
Memory: 125292k/130944k available (2088k kernel code, 5264k reserved, 570k data, 232k init, 0k highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Before vendor init, caps: 0383f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After vendor init, caps: 0383f9ff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU: Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 06
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rg...@at...)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xff85c, last bus=21
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
Unknown bridge resource 2: assuming transparent
PCI: Using IRQ router PIIX [8086/7110] at 00:05.0
PCI: Found IRQ 11 for device 00:0b.0
PCI: Sharing IRQ 11 with 01:00.0
PCI: Found IRQ 11 for device 00:0b.1
PCI: Sharing IRQ 11 with 00:0c.0
Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x02 (Driver version 1.15)
Starting kswapd
Journalled Block Device driver loaded
Coda Kernel/Venus communications, v5.3.15, co...@cs...
NTFS driver v1.1.21 [Flags: R/W]
udf: registering filesystem
pty: 256 Unix98 ptys configured
Toshiba System Managment Mode driver v1.11 26/9/2001
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
PCI: Found IRQ 11 for device 00:08.1
PCI: Sharing IRQ 11 with 00:08.0
Redundant entry in serial pci_table. Please send the output of
lspci -vv, this message (115d,00d4,8086,2411)
and the manufacturer and name of serial board or modem board
to ser...@li....
register_serial(): autoconfig failed
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 29
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xfff0-0xfff7, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xfff8-0xffff, BIOS settings: hdc:DMA, hdd:pio
hda: TOSHIBA MK2016GAP, ATA DISK drive
hdc: UJDA540, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 39070080 sectors (20004 MB), CHS=2432/255/63, UDMA(33)
hdc: ATAPI 24X DVD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 hda2 hda3 < hda5 hda6 > hda4
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <sa...@sa...> and others
PCI: Found IRQ 11 for device 00:08.0
PCI: Sharing IRQ 11 with 00:08.1
eth0: OEM i82557/i82558 10/100 Ethernet, 00:10:A4:11:5E:C3, IRQ 11.
Board assembly 000695-001, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0xdbd8681d).
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
PPP BSD Compression module registered
bond0 registered without MII link monitoring, in bonding mode.
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
PCI: Found IRQ 11 for device 00:0b.0
PCI: Sharing IRQ 11 with 01:00.0
PCI: Found IRQ 11 for device 00:0b.1
PCI: Sharing IRQ 11 with 00:0c.0
airo: Probing for PCI adapters
airo: Finished probing for PCI adapters
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Yenta IRQ list 06b8, PCI irq11
Socket status: 30000007
Yenta IRQ list 06b8, PCI irq11
Socket status: 30000007
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
usbserial.c: USB Serial support registered for Belkin F5U120-PC USB Serial Adapter
usbserial.c: USB Serial support registered for Belkin F5U103 USB Serial Adapter
usbserial.c: USB Serial support registered for Belkin USB Serial Adapter
usbserial.c: USB Serial support registered for Peracom single port USB Serial Adapter
usbserial.c: USB Serial support registered for GO-COM232 USB Serial Converter
belkin_sa.c: USB Belkin Serial converter driver v1.1
IEEE 802.2 LLC for Linux 2.1 (c) 1996 Tim Alpaerts
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
IPv4 over IPv4 tunneling driver
ip_conntrack (1023 buckets, 8184 max)
ip_tables: (c)2000 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
ip6_tables: (c)2000 Netfilter core team
registreing ipv6 mark target
802.1Q VLAN Support v1.6 Ben Greear <gr...@ca...>
vlan Initialization complete.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 232k freed
Adding Swap: 265064k swap-space (priority -1)
EXT3 FS 2.4-0.9.16, 02 Dec 2001 on ide0(3,2), internal journal
usb-uhci.c: $Revision: 1.268 $ time 11:15:07 Jan 8 2002
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 11 for device 00:05.2
usb-uhci.c: USB UHCI at I/O 0xff80, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.268:USB Universal Host Controller Interface driver
usb.c: USB disconnect on device 1
usb.c: USB bus 1 deregistered
eth0: no IPv6 routers present
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x378-0x37f 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
VFS: Disk change detected on device ide1(22,0)
PCI: Found IRQ 11 for device 00:0c.0
PCI: Sharing IRQ 11 with 00:0b.1
ymfpci: YMF754 at 0xefdf0000 IRQ 11
ac97_codec: AC97 Audio codec, id: 0x414b:0x4d02 (Asahi Kasei AK4543)
[bash:2101]: set personality to 6000003
[lavsas:2101]: cxenix()
[lavsas:2101]: eaccess("/usr/lib/libXMS-30.so", 04)
[lavsas:2101]: eaccess returns 0 (edx:0)
[lavsas:2101]: open("/usr/lib/libXMS-30.so", 00, 010001321524)
[lavsas:2101]: open returns 3 (edx:1074113796)
[lavsas:2101]: mmap(0x0, 0x1000, 0x1, 0x1, 3, 0x0)
[lavsas:2101]: mmap returns 0 (edx:308)
[lavsas:2101]: munmap(0x0, 4096)
[lavsas:2101]: munmap returns 0 (edx:5)
[lavsas:2101]: mmap(0x0, 0x14f44, 0x5, 0x2, 3, 0x0)
[lavsas:2101]: mmap returns 0 (edx:85828)
[lavsas:2101]: mmap(0x14000, 0xf20, 0x7, 0x12, 3, 0x13000)
[lavsas:2101]: mmap returns 0 (edx:81920)
[lavsas:2101]: close(3)
[lavsas:2101]: close returns 0 (edx:-1)
[lavsas:2101]: cxenix()
[lavsas:2101]: eaccess("/usr/lib/libXOM-30.so", 04)
[lavsas:2101]: eaccess returns 0 (edx:0)
[lavsas:2101]: open("/usr/lib/libXOM-30.so", 00, 010001321524)
[lavsas:2101]: open returns 3 (edx:1074113948)
[lavsas:2101]: mmap(0x0, 0x1000, 0x1, 0x1, 3, 0x0)
[lavsas:2101]: mmap returns 0 (edx:308)
[lavsas:2101]: munmap(0x0, 4096)
[lavsas:2101]: munmap returns 0 (edx:5)
[lavsas:2101]: mmap(0x0, 0x88de0, 0x5, 0x2, 3, 0x0)
[lavsas:2101]: mmap returns 0 (edx:560608)
[lavsas:2101]: mmap(0x51000, 0x37464, 0x7, 0x12, 3, 0x50000)
[lavsas:2101]: mmap returns 0 (edx:331776)
[lavsas:2101]: close(3)
[lavsas:2101]: close returns 0 (edx:-1)
[lavsas:2101]: cxenix()
[lavsas:2101]: eaccess("/usr/lib/libncs-30.so", 04)
[lavsas:2101]: eaccess returns 0 (edx:0)
[lavsas:2101]: open("/usr/lib/libncs-30.so", 00, 010001321524)
[lavsas:2101]: open returns 3 (edx:1074114100)
[lavsas:2101]: mmap(0x0, 0x1000, 0x1, 0x1, 3, 0x0)
[lavsas:2101]: mmap returns 0 (edx:308)
[lavsas:2101]: munmap(0x0, 4096)
[lavsas:2101]: munmap returns 0 (edx:5)
[lavsas:2101]: mmap(0x0, 0xd4314, 0x5, 0x2, 3, 0x0)
[lavsas:2101]: mmap returns 0 (edx:869140)
[lavsas:2101]: mmap(0xbf000, 0x71a8, 0x7, 0x12, 3, 0xbe000)
[lavsas:2101]: mmap returns 0 (edx:782336)
[lavsas:2101]: mmap(0xc7000, 0xd314, 0x7, 0x8012, 3, 0x7fff2000)
[lavsas:2101]: unsupported mmap flags: 0x8000
[lavsas:2101]: mmap returns 0 (edx:7)
[lavsas:2101]: close(3)
[lavsas:2101]: close returns 0 (edx:-1)
[lavsas:2101]: cxenix()
[lavsas:2101]: eaccess("/usr/lib/libnsl.so", 04)
[lavsas:2101]: eaccess returns 0 (edx:0)
[lavsas:2101]: open("/usr/lib/libc.so.1", 00, 010001321524)
[lavsas:2101]: open returns 3 (edx:1074113772)
[lavsas:2101]: mmap(0x0, 0x1000, 0x3, 0x8002, 3, 0x7ffff000)
[lavsas:2101]: unsupported mmap flags: 0x8000
[lavsas:2101]: mmap returns 0 (edx:3)
[lavsas:2101]: close(3)
[lavsas:2101]: close returns 0 (edx:3)
Output of `ldd lavsas` (run from the OSR5 box):
dynamic linker: lavsas: file loaded: /usr/lib/libXMS-30.so
dynamic linker: lavsas: file loaded: /usr/lib/libXOM-30.so
dynamic linker: lavsas: file loaded: /usr/lib/libncs-30.so
dynamic linker: lavsas: file loaded: /usr/lib/libnsl.so
dynamic linker: lavsas: file loaded: /usr/lib/libXm.so
dynamic linker: lavsas: file loaded: /usr/lib/libXt.so
dynamic linker: lavsas: file loaded: /usr/lib/libX11.so
dynamic linker: lavsas: file loaded: /usr/lib/libc.so.1
dynamic linker: lavsas: file loaded: /usr/lib/libsocket.so.1
dynamic linker: lavsas: file loaded: /usr/lib/libcrypt.so
Contents of `/emul/sco/usr/lib`:
total 4988
drwxr-xr-x 2 root root 4096 Jan 8 14:34 .
drwxr-xr-x 3 root root 4096 Jan 8 11:53 ..
lrwxrwxrwx 1 root root 11 Jan 8 13:51 libcrypt_i.so -> libcrypt.so
-rwxr-xr-x 1 root root 12360 Jan 8 13:51 libcrypt.so
lrwxrwxrwx 1 root root 9 Jan 8 13:50 libc.so -> libc.so.1
-rwxr-xr-x 1 root root 372160 Jan 8 12:03 libc.so.1
-rwxr-xr-x 1 root root 814404 Jan 8 13:43 libncs-30.so
-rwxr-xr-x 1 root root 24884 Jan 8 13:44 libnsl.so
lrwxrwxrwx 1 root root 14 Jan 8 12:34 libsocket.so -> libsocket.so.1
-rwxr-xr-x 1 root root 240228 Jan 8 12:12 libsocket.so.1
lrwxrwxrwx 1 root root 13 Jan 8 13:48 libX11.so -> libX11.so.5.0
-rwxr-xr-x 1 root root 555924 Jan 8 13:47 libX11.so.5.0
lrwxrwxrwx 1 root root 31 Jan 8 14:33 libXaw.so -> /emul/sco/usr/lib/libXaw.so.5.0
-rwxr-xr-x 1 root root 312040 Jan 8 14:32 libXaw.so.5.0
lrwxrwxrwx 1 root root 32 Jan 8 14:34 libXext.so -> /emul/sco/usr/lib/libXext.so.5.0
-rwxr-xr-x 1 root root 32312 Jan 8 14:34 libXext.so.5.0
-rwxr-xr-x 1 root root 83020 Jan 8 13:43 libXMS-30.so
lrwxrwxrwx 1 root root 12 Jan 8 13:45 libXm.so -> libXm.so.1.2
-rwxr-xr-x 1 root root 1669784 Jan 8 13:44 libXm.so.1.2
lrwxrwxrwx 1 root root 31 Jan 8 14:33 libXmu.so -> /emul/sco/usr/lib/libXmu.so.5.0
-rwxr-xr-x 1 root root 86680 Jan 8 14:33 libXmu.so.5.0
-rwxr-xr-x 1 root root 557516 Jan 8 13:43 libXOM-30.so
lrwxrwxrwx 1 root root 12 Jan 8 13:47 libXt.so -> libXt.so.5.0
-rwxr-xr-x 1 root root 289404 Jan 8 13:46 libXt.so.5.0
|