Bug 176956 - Shared libraries no longer known to class loader
Summary: Shared libraries no longer known to class loader
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 5
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
Blocks: FC5Blocker 173278
TreeView+ depends on / blocked
Reported: 2006-01-04 18:10 UTC by Andrew Cagney
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 4.1.0-0.13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-01-07 17:08:58 UTC
Type: ---

Attachments (Terms of Use)
Tom's test case (255 bytes, text/plain)
2006-01-04 18:14 UTC, Andrew Cagney
no flags Details
Regression test case (worked on 4.0.x broken in 4.1.x) (274 bytes, text/plain)
2006-01-04 20:00 UTC, Andrew Cagney
no flags Details

System ID Private Priority Status Summary Last Updated
Sourceware 2105 0 None None None Never

Description Andrew Cagney 2006-01-04 18:10:00 UTC
The machine is running FC5test1 updated to 2006-01-04.

Running standalone:

cagney@tomago$ /notnfs/cagney/native/frysk-gui/frysk/gui/FryskGui
could not create widget: java.lang.NullPointerException
Exception in thread "main" java.lang.NullPointerException
   at frysk.gui.monitor.MainWindow.<init> (MainWindow.java:57)
   at frysk.gui.monitor.WindowManager.initWindows (WindowManager.java:75)
   at frysk.gui.FryskGui.<init> (FryskGui.java:118)
   at frysk.gui.FryskGui.mainGui (FryskGui.java:148)
   at frysk.gui.FryskGui.main (FryskGui.java:233)

under gdb

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208723792 (LWP 18942)]
0x0782114f in org.gnu.gtk.Widget.removePackageName(java.lang.Class) (
    klass=@79af9c0) at src/java/org/gnu/gtk/Widget.java:1249
1249            int length = klass.getPackage().getName().length();

java.lang.Class.getPackage is returning <<NULL>> which, as far as I know, can't


The package "org.gnu.gtk" is no longer being registered when loaded (?) and
consequently a search for it fails.

Under RHEL-4 and FC-4, the org.gnu.gtk package was being registering itself so
the above search worked.

Tom's come up with a testcase, that I'll attach.  It, however, also fails on
both FC-4/RHEL-4 and FC-5.  This suggests that there are two potential problems:
the issue identified by the testcase; and the apparent regression.

Comment 1 Andrew Cagney 2006-01-04 18:14:32 UTC
Created attachment 122770 [details]
Tom's test case

Comment 2 Tom Tromey 2006-01-04 18:20:12 UTC
The fix is on svn head.  I'll be checking it into the 4.1 branch shortly.
I haven't looked at 4.0.x yet.

Comment 3 Andrew Cagney 2006-01-04 18:32:24 UTC
warren / jkeating asked for it to be added to FC5 blocker.

Comment 4 Andrew Cagney 2006-01-04 20:00:00 UTC
Created attachment 122775 [details]
Regression test case (worked on 4.0.x broken in 4.1.x)

This version shows the regression between 4.0.x and 4.1.x (which is now fixed)

Comment 5 Jakub Jelinek 2006-01-07 17:08:58 UTC
Should be fixed in gcc-4.1.0-0.13 and later.

Note You need to log in before you can comment on or make changes to this bug.