* 2.4.5-ac15 and Tru64 Netscape
@ 2001-06-18 0:38 Alan Young
2001-06-18 0:55 ` Michal Jaegermann
0 siblings, 1 reply; 3+ messages in thread
From: Alan Young @ 2001-06-18 0:38 UTC (permalink / raw)
To: axp-list
I've working on a upgrade from 2.2.19 to 2.4.5-ac15 and I've run into a
odd problem with Tru64 Netscape. It runs ok under 2.2.19. When I try
run it on 2.4.5-ac15, it aborts with the message:
/opt/netscape/netscape: : Fatal Error: cannot map libXmu.so
I do have the kernel compiled with a.out/ECOFF support. Acrobat Reader
for Tru64 runs ok. I've dug around and it appears that this message is
coming out of the Tru64 /sbin/loader. I've run Netscape with some loader
debug switches turned on and this is what is displayed:
alan@fish:~ > _RLD_ARGS="-debug map symbol conflict trace general malloc hash
interface execrld -V" netscape
26438:/opt/netscape/netscape: : loader version 5.0, supports RLD_VERSIONs 1 -
3
26438:/opt/netscape/netscape: : rld-main args: pathname =
/opt/netscape/netscape, envp = 0x11ffff788, auxv = 0x11ffff968
26438:/opt/netscape/netscape: : AT_EXECFD set to 3
26438:/opt/netscape/netscape: : pathname = /opt/netscape/netscape
26438:/opt/netscape/netscape: : build_main_obj_by_fd: fd 3
26438:/opt/netscape/netscape: : map_obj: o 0x3ffc0002200, name (null)
26438:/opt/netscape/netscape: : MMAP NULL first try with quickaddr =
0x12000000
26438:/opt/netscape/netscape: : MMAP TEXT @ 0x12000000 returns 0x12000000
26438:/opt/netscape/netscape: : MMAP DATA @ 0x14000000 returns 0x14000000
26438:/opt/netscape/netscape: : MMAP BSS @ 0x14400000 returns 0x14400000
26438:/opt/netscape/netscape: : map_obj: mapped Main with fd = 3 at
0x12000000
26438:/opt/netscape/netscape: : get_dynamic_info: local got[0] 0x143c5ea0
26438:/opt/netscape/netscape: : get_dynamic_info: external got[0] 0x143c9d00
26438:/opt/netscape/netscape: : get_dynamic_info: local got[1] 0x143d5828
26438:/opt/netscape/netscape: : get_dynamic_info: external got[1] 0x143d8ff8
26438:/opt/netscape/netscape: : get_dynamic_info: local got[2] 0x143e57a8
26438:/opt/netscape/netscape: : get_dynamic_info: external got[2] 0x143e7f68
26438:/opt/netscape/netscape: : get_dynamic_info: local got[3] 0x143f5508
26438:/opt/netscape/netscape: : get_dynamic_info: external got[3] 0x143f5cb8
26438:/opt/netscape/netscape: : get_dynamic_info: local got[4] 0x143f8398
26438:/opt/netscape/netscape: : get_dynamic_info: external got[4] 0x143f83a0
26438:/opt/netscape/netscape: : mapped Main at 0x12000000
26438:/opt/netscape/netscape: : Creating msym in full
26438:/opt/netscape/netscape: : build_main_obj
26438:/opt/netscape/netscape: : build_main_obj: /opt/netscape/netscape has
liblist size of 11
26438:/opt/netscape/netscape: : build_obj_list: head 0x3ffc0002200
26438:/opt/netscape/netscape: : build_obj_list_by_name: name libXm.so, head
0x3ffc0005d00
26438:/opt/netscape/netscape: : map_obj: o 0x3ffc0002400, name (null)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
LD_LIBRARY_PATH /usr/shlib/libXm.so
26438:/opt/netscape/netscape: : MMAP /usr/shlib/libXm.so first try with
quickaddr = 0x3ff80610000
26438:/opt/netscape/netscape: : MMAP unmapping 0xffffffffffffffff
0xffffffffffffffff 0xffffffffffffffff
26438:/opt/netscape/netscape: : MMAP /usr/shlib/libXm.so second try with
findaddr = 0x3ff80610000
26438:/opt/netscape/netscape: : MMAP TEXT @ 0x24474000 returns 0x24474000
26438:/opt/netscape/netscape: : MMAP DATA @ 0x64044000 returns 0x64044000
26438:/opt/netscape/netscape: : MMAP BSS @ 0x64066000 returns 0x64066000
26438:/opt/netscape/netscape: : get_dynamic_info: local got[0] 0x64061430
26438:/opt/netscape/netscape: : get_dynamic_info: external got[0] 0x64062530
26438:/opt/netscape/netscape: : get_dynamic_info: local got[1] 0x64065330
26438:/opt/netscape/netscape: : get_dynamic_info: external got[1] 0x64065338
26438:/opt/netscape/netscape: : mapped /usr/shlib/libXm.so at 0x24474000
26438:/opt/netscape/netscape: : Using object's msym
26438:/opt/netscape/netscape: : build_obj_list_by_name: name libXmu.so, head
0x3ffc0005d00
26438:/opt/netscape/netscape: : map_obj: o 0x3ffc0002600, name (null)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
LD_LIBRARY_PATH /usr/shlib/libXmu.so
26438:/opt/netscape/netscape: : MMAP /usr/shlib/libXmu.so first try with
quickaddr = 0x3ff80370000
26438:/opt/netscape/netscape: : MMAP unmapping 0xffffffffffffffff
0xffffffffffffffff 0xffffffffffffffff
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map
/usr/shlib/libXmu.so (errno = 8)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
LD_LIBRARY_PATH /shlib/libXmu.so
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map
/shlib/libXmu.so (errno = 8)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
LD_LIBRARY_PATH /opt/Acrobat/Reader/alphaosf/lib/libXmu.so
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map
/opt/Acrobat/Reader/alphaosf/lib/libXmu.so (errno = 8)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
LD_LIBRARY_PATH /libXmu.so
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map /libXmu.so
(errno = 8)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
default path /usr/ccs/lib/libXmu.so
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map
/usr/ccs/lib/libXmu.so (errno = 8)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
default path /usr/lib/cmplrs/cc/libXmu.so
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map
/usr/lib/cmplrs/cc/libXmu.so (errno = 8)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
default path /usr/lib/libXmu.so
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map
/usr/lib/libXmu.so (errno = 8)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
default path /usr/local/lib/libXmu.so
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map
/usr/local/lib/libXmu.so (errno = 8)
26438:/opt/netscape/netscape: : path_map: trying constructed path with
default path /var/shlib/libXmu.so
26438:/opt/netscape/netscape: : perror:MIPS_EXECMAP -- can't map
/var/shlib/libXmu.so (errno = 8)
26438:/opt/netscape/netscape: : map_obj_again: o 0x3ffc0002600, name
libXmu.so
26438:/opt/netscape/netscape: : Fatal Error: cannot map libXmu.so
alan@fish:~ >
Anyone have any ideas???
Thanks,
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.4.5-ac15 and Tru64 Netscape
2001-06-18 0:38 2.4.5-ac15 and Tru64 Netscape Alan Young
@ 2001-06-18 0:55 ` Michal Jaegermann
2001-06-18 4:14 ` Alan Young
0 siblings, 1 reply; 3+ messages in thread
From: Michal Jaegermann @ 2001-06-18 0:55 UTC (permalink / raw)
To: axp-list
On Sun, Jun 17, 2001 at 05:38:36PM -0700, Alan Young wrote:
> I've working on a upgrade from 2.2.19 to 2.4.5-ac15 and I've run into a
> odd problem with Tru64 Netscape. It runs ok under 2.2.19. When I try
> run it on 2.4.5-ac15, it aborts with the message:
>
> /opt/netscape/netscape: : Fatal Error: cannot map libXmu.so
Ivan Kokshaysky provided a patch for this a week ago, or so. It was
posted on linux-kernel list. I have no idea why it was not applied yet.
You will have to ask Ivan and/or Maciej. Here it is:
Date: Sat, 9 Jun 2001 14:14:45 +0400
From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Subject: Re: [patch] Re: Linux 2.4.5-ac6
On Fri, Jun 08, 2001 at 06:08:46PM +0200, Maciej W. Rozycki wrote:
> Still it has two loops...
Ok, here is a single loop version.
Ivan.
--- 2.4.5-ac11/mm/mmap.c Fri Jun 8 15:59:35 2001
+++ linux/mm/mmap.c Sat Jun 9 12:50:05 2001
@@ -398,27 +398,37 @@ free_vma:
static inline unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
{
struct vm_area_struct *vma;
+ unsigned long addr_limit = TASK_SIZE - len;
+ unsigned long addr1 = 0;
if (len > TASK_SIZE)
return -ENOMEM;
if (addr) {
addr = PAGE_ALIGN(addr);
- vma = find_vma(current->mm, addr);
- if (TASK_SIZE - len >= addr &&
- (!vma || addr + len <= vma->vm_start))
- return addr;
+ if (addr > TASK_UNMAPPED_BASE)
+ addr1 = addr;
+ goto find_free_area;
}
+
+default_area:
addr = PAGE_ALIGN(TASK_UNMAPPED_BASE);
+find_free_area:
for (vma = find_vma(current->mm, addr); ; vma = vma->vm_next) {
/* At this point: (!vma || addr < vma->vm_end). */
- if (TASK_SIZE - len < addr)
- return -ENOMEM;
+ if (addr_limit < addr)
+ break;
if (!vma || addr + len <= vma->vm_start)
return addr;
addr = vma->vm_end;
}
+ if (addr1) {
+ /* No unmapped areas above addr; try below it */
+ addr_limit = addr1;
+ goto default_area;
+ }
+ return -ENOMEM;
}
#else
extern unsigned long arch_get_unmapped_area(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
The problem is that without this patch a 32-bit COFF excutable is mapped
incorrectly with recent changes to mmap.
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: 2.4.5-ac15 and Tru64 Netscape
2001-06-18 0:55 ` Michal Jaegermann
@ 2001-06-18 4:14 ` Alan Young
0 siblings, 0 replies; 3+ messages in thread
From: Alan Young @ 2001-06-18 4:14 UTC (permalink / raw)
To: axp-list
On Sun, 17 Jun 2001 18:55:00 -0600, Michal Jaegermann
<michal@ellpspace.math.ualberta.ca> wrote:
> On Sun, Jun 17, 2001 at 05:38:36PM -0700, Alan Young wrote:
> > I've working on a upgrade from 2.2.19 to 2.4.5-ac15 and I've run into a
> > odd problem with Tru64 Netscape. It runs ok under 2.2.19. When I try
> > run it on 2.4.5-ac15, it aborts with the message:
> >
> > /opt/netscape/netscape: : Fatal Error: cannot map libXmu.so
>
> Ivan Kokshaysky provided a patch for this a week ago, or so. It was
> posted on linux-kernel list. I have no idea why it was not applied yet.
> You will have to ask Ivan and/or Maciej. Here it is:
>
<patch snipped>
>
> The problem is that without this patch a 32-bit COFF excutable is mapped
> incorrectly with recent changes to mmap.
>
> Michal
Thanks, Michal! That fixed it! With that post reference, I was able
to find the thread in a linux-kernel mail archive. I'm not sure why
it has not been applied either as that patch seemed to be the final
say on the issue. I'll try to follow up with Ivan.
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-06-18 4:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-18 0:38 2.4.5-ac15 and Tru64 Netscape Alan Young
2001-06-18 0:55 ` Michal Jaegermann
2001-06-18 4:14 ` Alan Young
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox