Mailinglist Archive: opensuse-bugs (7951 mails)

< Previous Next >
[Bug 194711] IBM Java 1.4.2 & 1.5.0 does not work with newest glibc
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 26 Feb 2007 11:40:36 -0700 (MST)
  • Message-id: <20070226184036.0566BD99@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=194711





------- Comment #78 from bugproxy@xxxxxxxxxx 2007-02-26 11:40 MST -------
----- Additional Comments From suzukikp@xxxxxxxxxx (prefers email at
suzuki@xxxxxxxxxx) 2007-02-26 13:38 EDT -------

Patch which is being tried

Novell,

Attached here is the patch which I am trying. But somehow, I am getting
Segmentation Faults. Not sure if there is something else getting corrupted.


The patch:

Right now, the dl_addr() does the following :

1) Find a map which bounds the "address" being looked, within
[map->l_map_start, map->l_map_end]. Find the last segment of type PT_LOAD and
check if the address lies within the "end" of that segment.

Now in our case this is what happens :

l_map_start -segment1- | unmapped or a different lib| segment2 - l_map_end
^----------------------|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|-----------------^

The libjvm.so is mapped in the gap (shown with %) between two segments of
ld-linux.so! And we check the address with the segment2 of ld-linux and gets a
hit !

There are two ways to fix the issue :

1) Ensure that no other maps gets mapped within the range of an already mapped
lib.

OR

2) Check each segments of the loaded map to confirm that the address lies in
one of the shared objects of the lib.

The patch above takes the second approach. But, somehow I am getting
segmentation faults while running with this patch. Debugging the segmentation
fault problem.

Meanwhile could you please share your thoughts on this patch ?

Thanks,

Suzuki


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >