PDA

Bekijk Volledige Versie : Java applet crashing with native assertion



Marc Schoenefeld
28/06/04, 22:15
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

this is a Java One special:

Three months ago I informed Sun Microsystems
about an applet alerting with a native win32 assertion
(Expression: offset < fFileSize

For information on how your program can cause an
assertion failure, see the Visual C++ documentation
on asserts...) .

If the users opts for cancel, it is crashing the browser
which started the applet.

The applet can be tried at the following URL:
http://www.illegalaccess.org/cms/?q=3Dnode/view/9

[How] does it crash on other platforms ? Please mail me
your experiences with it ...

Marc




- --

Never be afraid to try something new. Remember, amateurs built the
ark; professionals built the Titanic. -- Anonymous

Marc Sch=F6nefeld Dipl. Wirtsch.-Inf. / Software Developer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (AIX)

iD8DBQFA4G18qCaQvrKNUNQRAppNAJ0domKCgHOCBakVn/QkDKKLPiJ1pQCfe1Vl
Ka/1oXn3+w8WC1XKNaGco9w=3D
=3DyNEJ
-----END PGP SIGNATURE-----

Jack Lloyd
29/06/04, 20:55
This also crashes Firefox 0.8 with j2re 1.4.2_04 on RH9/x86 with the following:

java_vm: ../../../src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp:418: const void * fileFontObject::ReadChunk(UInt32, UInt32, void * = 0): Assertion `offset < fFileSize' failed.
INTERNAL ERROR on Browser End: Pipe closed during read? State may be corrupt
System error?:: Success

Of course the whole idea is that Java apps will behave the same on all
supported platforms, right? :)

-Jack

On Mon, Jun 28, 2004 at 09:11:53PM +0200, Marc Schoenefeld wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> this is a Java One special:
>
> Three months ago I informed Sun Microsystems
> about an applet alerting with a native win32 assertion
> (Expression: offset < fFileSize
>
> For information on how your program can cause an
> assertion failure, see the Visual C++ documentation
> on asserts...) .
>
> If the users opts for cancel, it is crashing the browser
> which started the applet.
>
> The applet can be tried at the following URL:
> http://www.illegalaccess.org/cms/?q=node/view/9
>
> [How] does it crash on other platforms ? Please mail me
> your experiences with it ...
>
> Marc
>
>
>
>
> - --
>
> Never be afraid to try something new. Remember, amateurs built the
> ark; professionals built the Titanic. -- Anonymous
>
> Marc Sch?nefeld Dipl. Wirtsch.-Inf. / Software Developer
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (AIX)
>
> iD8DBQFA4G18qCaQvrKNUNQRAppNAJ0domKCgHOCBakVn/QkDKKLPiJ1pQCfe1Vl
> Ka/1oXn3+w8WC1XKNaGco9w=
> =yNEJ
> -----END PGP SIGNATURE-----

Przemyslaw Frasunek
30/06/04, 05:45
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marc Schoenefeld wrote:
> [How] does it crash on other platforms ? Please mail me
> your experiences with it ...

Confirmed on Debian with:

java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

and Firefox 0.8. Crashes with:

java_vm:
.../../../src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp:418:
const void * fileFontObject::ReadChunk(UInt32, UInt32, void * = 0):
Assertion `offset < fFileSize' failed.
INTERNAL ERROR on Browser End: Plugin instance index out of bounds 6208

- --
* Fido: 2:480/124 ** WWW: http://www.frasunek.com/ ** NICHDL: PMF9-RIPE *
* JID: venglin@jabber.atman.pl ** PGP ID: 2578FCAD ** HAM-RADIO: SQ8JIV *
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA4HudkxEnBiV4/K0RAmdXAJ9UNfhP9XZ/o0b3K3KKKcTCuET+TQCgyW7n
sHL0DtibTzj0H8myOOt1fsY=
=yVnn
-----END PGP SIGNATURE-----

Cesare D'Amico
30/06/04, 13:25
Alle 21:11, luned=EC 28 giugno 2004, Marc Schoenefeld ha scritto:
> [How] does it crash on other platforms ? Please mail me
> your experiences with it ...

OS: Linux lisa 2.4.26-ce01 #1 mar giu 22 14:52:39 CEST 2004 i686 unknown
(nothing strange in the kernel, apart from binary nvidia drivers).

Mozilla 1.5:
Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.5) Gecko/20031107=20
Debian/1.5-3 (debian SID)

Java: Java(TM) Plug-in Blackdown-1.4.1-01

The browser crashes right away when clicking on "Crash it".

Ciao
ce
=2D-=20
Cesare D'Amico - Key on pgp.mit.edu, ID 92802693
http://cesaredamico.com ~ http://phpday.it ~ http://verona.linux.it/
Ho messo via un po' di consigli, dicono e` piu` facile, | Liga,=20
li ho messi via perche' a sbagliare sono bravissimo da me | Ho messo via

Luciano Miguel Ferreira Rocha
01/07/04, 01:25
On Mon, Jun 28, 2004 at 09:11:53PM +0200, Marc Schoenefeld wrote:
> [How] does it crash on other platforms ? Please mail me
> your experiences with it ...

Doesn't crash:
Firefox/0.9.1 on Linux/x86
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

Regards,
Luciano Rocha

Cheese Whiz
01/07/04, 02:05
In-Reply-To: <Pine.A41.4.58.0406282056370.170138@zivunix.uni-muenster.de>

I can click cancel on assertion error window and my broswer does not crash.

FireFox 0.8
Windows XP Pro SP1
Java Version 1.4.2_04 (build 1.4.2_04-b05)


>this is a Java One special:
>
>Three months ago I informed Sun Microsystems
>about an applet alerting with a native win32 assertion
>(Expression: offset < fFileSize

[...]

>[How] does it crash on other platforms ? Please mail me

Defakto
01/07/04, 06:15
OS:Win2k pro (not sure which service pack) with IE doesn't crash at all for=
me.

On Tue, 29 Jun 2004 19:12:16 +0200, Cesare D'Amico <cesare@ngi.it> wrote:
>=20
> Alle 21:11, luned=EC 28 giugno 2004, Marc Schoenefeld ha scritto:
> > [How] does it crash on other platforms ? Please mail me
> > your experiences with it ...
>=20
> OS: Linux lisa 2.4.26-ce01 #1 mar giu 22 14:52:39 CEST 2004 i686 unknown
> (nothing strange in the kernel, apart from binary nvidia drivers).
>=20
> Mozilla 1.5:
> Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.5) Gecko/20031107
> Debian/1.5-3 (debian SID)
>=20
> Java: Java(TM) Plug-in Blackdown-1.4.1-01
>=20
> The browser crashes right away when clicking on "Crash it".
>=20
> Ciao
> ce
> --
> Cesare D'Amico - Key on pgp.mit.edu, ID 92802693
> http://cesaredamico.com ~ http://phpday.it ~ http://verona.linux.it/
> Ho messo via un po' di consigli, dicono e` piu` facile, | Liga,
> li ho messi via perche' a sbagliare sono bravissimo da me | Ho messo via
>=20


--=20
Beware of mog

Ronald Oussoren
06/07/04, 00:15
On MacOS X 10.3.4 with Java 1.4.2:

java.awt.FontFormatException: Unable to create font - bad font data
at java.awt.Font.createFont(Font.java:625)
at org.illegalaccess.jvmcrash.FontIPSClass.doit(FontI PSClass.java:58)
at
org.illegalaccess.jvmcrash.FontIPSClass.access$000 (FontIPSClass.java:
14)
at
org.illegalaccess.jvmcrash.FontIPSClass$MyButtonLi stener.actionPerformed
(FontIPSClass.java:19)
at java.awt.Button.processActionEvent(Button.java:382 )
at java.awt.Button.processEvent(Button.java:350)
at java.awt.Component.dispatchEventImpl(Component.jav a:3615)
at java.awt.Component.dispatchEvent(Component.java:34 77)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 456)
at
java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThrea
d.java:234)
at
java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.
java:184)
at
java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:178)
at
java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:100)

The browser doesn't crash and the applet continues to function.

Ronald