sablevm-developer Mailing List for SableVM (Page 2)
Brought to you by:
egagnon
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(27) |
Aug
(22) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(30) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(32) |
Oct
|
Nov
|
Dec
|
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(69) |
Sep
(10) |
Oct
(31) |
Nov
(15) |
Dec
(58) |
2003 |
Jan
(33) |
Feb
(81) |
Mar
(85) |
Apr
(24) |
May
(15) |
Jun
(14) |
Jul
(6) |
Aug
(9) |
Sep
(101) |
Oct
(59) |
Nov
(142) |
Dec
(34) |
2004 |
Jan
(107) |
Feb
(164) |
Mar
(181) |
Apr
(96) |
May
(81) |
Jun
(71) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Chris P. <chr...@ma...> - 2004-06-17 16:51:18
|
Roman Kennke wrote: > Am Di, den 15.06.2004 schrieb Roman Kennke um 20:18: > >>Hi list, >> >>I found another issue, this time related to a database connection with >>MySQL. During sending an update, the hole connection seems to hang >>infinitely. > > > Update: I've done a lot of tests, during which I got it running on > Linux. I used a new MySQL driver for this. Unfortunately my testprog > does still not run under FreeBSD. I will attach my testprog. Hi Roman, I think you forgot to attach the test case. Does anyone in our group have an account on a FreeBSD machine? Cheers, Chris The result > under FreeBSD is, that I can transmit a byte array of size <21488 bytes, > not 1 byte more (in this case the whole thing hangs). The gdb backtrace > is surprisingly short: > (gdb) bt > #0 0x2817f2af in poll () from /lib/libc.so.5 > #1 0x28123a51 in _thread_kern_sched_state_unlock () from > /usr/lib/libc_r.so.5 > #2 0x28123445 in _thread_kern_scheduler () from /usr/lib/libc_r.so.5 > (gdb) > > I have not yet solved this, and have no idea. > > But I have solved another small problem, which I will write in another > email. :-) > > Cheers, Roman > |
From: Chris P. <chr...@ma...> - 2004-06-17 16:46:28
|
Fabien Renaud wrote: > Hello, > I have 2 or 3, I don´t know problems : > > > I´m with 1.1.3 on ARM Hi Fabien, First upgrade to 1.1.5, or preferably the latest staging versions of sablevm-classpath and sablevm (since that way, if there is a bug and it gets fixed, you can easily get the changes right away). > 1) > All my classes are in the same directory. > When I want to run programms written with AWT I have > ClassNotFoundException : <my_class> > The other classes in the same directory work. > Actually that can work (I only have qt no X) but I´m expecting another error Does this happen on x86? Does it happen on Sun's VM? What error are you expecting instead? Can you give us some strace output? > 2) > When I want to run java progs written with qt I have this : > sablevm: INTERNAL ERROR (source file "native_interface.c", line 23627): todo > This error seems normal, no ? It just means something is not implemented yet. It seems fixed in the latest version. If you look in native_interface.c, you'll probably see at line 23627 that GetJavaVM() is not done. However, it's there in my copy of staging. > 3) > I want to run a little web server. > I have this : > [verbose class: loading "java/net/ServerSocket"] > [verbose class: loading "gnu/java/net/PlainSocketImpl"] > [verbose class: creating "[Ljava/lang/StackTraceElement;"] > [verbose class: loading "java/lang/Throwable$StaticData"] > java.lang.NoClassDefFoundError > at java.net.ServerSocket.ServerSocket (ServerSocket.java:118) > at java.net.ServerSocket.ServerSocket (ServerSocket.java:179) > at java.net.ServerSocket.ServerSocket (ServerSocket.java:156) > at java.net.ServerSocket.ServerSocket (ServerSocket.java:137) > at WebServer.main (WebServer.java:113) If you look at java/net/ServerSocket.java in sablevm-classpath you should see what's wrong. Again, this may be something that's implemented in the latest staging version. HTH, Chris |
From: Chris P. <chr...@ma...> - 2004-06-17 16:32:32
|
Hi Joe, It's obviously a deadlock somewhere, which means a concurrency / threading bug. It could either be in Classpath or in our locking code. AWT is not really something I know about. Greg recently implemented InterruptedException IIRC, and that could be it as well. Can you reproduce the problem without AWT? Is that really the absolute simplest test case you can give us? What happens if you declare the Thread body as a named class? Does it happen every single time? Cheers, Chris Joseph Paris wrote: > Were you able to make any progress on figuring out what the problem is? > If there is anything more you need from me, please don't hesitate to ask. > > --Joe > > On Mon, 14 Jun 2004, Joseph Paris wrote: > > >>no problem. Here it is: >> >>(VMObject.java:-1) java/lang/VMObject.wait n >>(Object.java:431) java/lang/Object.wait >>(GtkMainThread.java:63) gnu/java/awt/peer/gtk/GtkMainThread.<init> >>(GtkToolkit.java:108) gnu/java/awt/peer/gtk/GtkToolkit.<init> >>(Constructor.java:-1) java/lang/reflect/Constructor.constructNative n >>(Constructor.java:408) java/lang/reflect/Constructor.newInstance >>(Class.java:1496) java/lang/Class.newInstance >>(Toolkit.java:522) java/awt/Toolkit.getDefaultToolkit >>(Component.java:695) java/awt/Component.getToolkit >>(Container.java:374) java/awt/Container.addImpl >>(Container.java:268) java/awt/Container.add >>(ConfigDialog.java:329) >>net/jxta/impl/peergroup/ConfigDialog$PagesPanel.<init> >>(ConfigDialog.java:375) net/jxta/impl/peergroup/ConfigDialog.<init> >>(DefaultConfigurator.java:139) >>net/jxta/impl/peergroup/DefaultConfigurator.<init> >>(DefaultConfigurator.java:126) >>net/jxta/impl/peergroup/DefaultConfigurator.<init> >>(Constructor.java:-1) java/lang/reflect/Constructor.constructNative n >>(Constructor.java:408) java/lang/reflect/Constructor.newInstance >>(Class.java:1496) java/lang/Class.newInstance >>(Platform.java:202) >>net/jxta/impl/peergroup/Platform.generateConfigAdvertisement >>(Platform.java:161) net/jxta/impl/peergroup/Platform.initFirst >>(GenericPeerGroup.java:784) net/jxta/impl/peergroup/GenericPeerGroup.init >>(PeerGroupFactory.java:369) >>net/jxta/peergroup/PeerGroupFactory.newPlatform >>(PeerGroupFactory.java:420) >>net/jxta/peergroup/PeerGroupFactory.newNetPeerGroup >>(Server.java:116) Server.startJxta >>(Server.java:108) Server.main >>(VirtualMachine.java:-1) java/lang/VirtualMachine.invokeMain n >>(VirtualMachine.java:92) java/lang/VirtualMachine.main >> >> >>Thanks, >>Joe >> >> >>On Mon, 14 Jun 2004, Etienne Gagnon wrote: >> >> >>>Hi Joe, >>> >>>Could you also type Ctrl-\ [e.g. SIGQUIT], when it hangs? This would >>>dump the Java stack trace. >>> >>>Etienne >>> >>>Joseph Paris wrote: >>> >>>>Heya, >>>> >>>>I'm running into an issue were the sablevm seems to be hanging on what i >>>>think is a threading related issue. I've narrowed down where in code >>>>the hang occurs, but i'm not sure _why_ it occurs. I'm providing the >>>>class and instantiation along with a portion of strace output. if more >>>>strace output would help, please let me know. >>>> >>>>Any help would be greatly appreciated. >>>> >>>>System config: >>>>Suse 9.1 updated; x86 >>>> >>>>Thanks, >>>>Joe >>>> >>>>------AwtUtils.java from the JXTA distribution----- >>>>****Executed as AwtUtils.initAsDaemon()**** >>>> >>>> >>>>import java.awt.Frame; >>>> >>>>public class AwtUtils { >>>> >>>> public static void initAsDaemon() { >>>> (new Thread() { >>>> public void run() { >>>> try { >>>> Frame f = new Frame(); >>>> f.dispose(); >>>> } catch (Throwable t) { >>>> } >>>> } >>>> public void doit() { >>>> setDaemon(true); >>>> setName("awt daemon initializer"); >>>> start(); >>>> try { >>>> join(); >>>> } catch (InterruptedException ie) { >>>> } >>>> } >>>> }).doit(); >>>> } >>>>} >>>> >>>> >>>>-------------------Strace output--------------------- >>>> >>>>open("/usr/local/lib/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such >>>>file or directory) >>>>open("tls/i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such >>>>file ordirectory) >>>>open("tls/i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or >>>>directory) >>>>open("tls/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or >>>>directory) >>>>open("tls/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or >>>>directory)open("i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No >>>>such file or directory) >>>>open("i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or >>>>directory) >>>>open("sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or >>>>directory) >>>>open("libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or >>>>directory)open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 13 >>>>read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\223"..., >>>>512) = 512 >>>>fstat64(13, {st_mode=S_IFREG|0755, st_size=204755, ...}) = 0 >>>>old_mmap(NULL, 170408, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = >>>>0x41f97000 >>>>madvise(0x41f97000, 170408, MADV_SEQUENTIAL|0x1) = 0 >>>>old_mmap(0x41fbc000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, >>>>13, 0x25000) = 0x41fbc000 >>>>old_mmap(0x41fc0000, 2472, PROT_READ|PROT_WRITE, >>>>MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41fc0000 >>>>close(13) = 0 >>>>open("/usr/local/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such >>>>file or d irectory) >>>>open("tls/i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file >>>>or directory) >>>>open("tls/i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or >>>>directory) >>>>open("tls/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or >>>>directory) >>>>open("tls/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or >>>>directory)open("i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No >>>>such file or directory) >>>>open("i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or >>>>directory)open("sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such >>>>file or directory)open("libfreetype.so.6", O_RDONLY) = -1 ENOENT (No >>>>such file or directory)open("/usr/lib/libfreetype.so.6", O_RDONLY) = 13 >>>>read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\346"..., >>>>512) = 512 >>>>fstat64(13, {st_mode=S_IFREG|0755, st_size=473346, ...}) = 0 >>>>old_mmap(NULL, 429584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = >>>>0x41fc1000 >>>>madvise(0x41fc1000, 429584, MADV_SEQUENTIAL|0x1) = 0 >>>>old_mmap(0x42023000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, >>>>13, 0x62000) = 0x42023000 >>>>close(13) = 0 >>>>open("/usr/local/lib/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file >>>>or directory) >>>>open("tls/i686/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or >>>>directory) >>>>open("tls/i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or >>>>directory)open("tls/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such >>>>file or directory)open("tls/libexpat.so.0", O_RDONLY) = -1 ENOENT (No >>>>such file or directory)open("i686/sse2/libexpat.so.0", O_RDONLY) = -1 >>>>ENOENT (No such file or directory) >>>>open("i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or >>>>directory)open("sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such >>>>file or directory)open("libexpat.so.0", O_RDONLY) = -1 ENOENT (No >>>>such file or directory)open("/usr/lib/libexpat.so.0", O_RDONLY) = 13 >>>>read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P!\0\000"..., >>>>512) = 512 >>>>fstat64(13, {st_mode=S_IFREG|0755, st_size=160096, ...}) = 0 >>>>old_mmap(NULL, 124104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = >>>>0x4202a000 >>>>madvise(0x4202a000, 124104, MADV_SEQUENTIAL|0x1) = 0 >>>>old_mmap(0x42046000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, >>>>13, 0x1c000) = 0x42046000 >>>>close(13) = 0 >>>>munmap(0x41a40000, 122337) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>write(1, "[verbose class: loading \"java/be"..., 60[verbose class: loading >>>>"java/beans/PropertyChangeSupport"] >>>>) = 60 >>>>open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/java/beans/PropertyChangeSupport.class", >>>>O_RDONLY) = 13 >>>>fstat64(13, {st_mode=S_IFREG|0644, st_size=5035, ...}) = 0 >>>>mmap2(NULL, 5035, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 >>>>munmap(0x41a40000, 5035) = 0 >>>>close(13) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>write(1, "[verbose class: loading \"gnu/jav"..., 63[verbose class: loading >>>>"gnu/java/awt/peer/gtk/GtkMainThread"] >>>>) = 63 >>>>open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkMainThread.class", >>>>O_RDONLY) = 13 >>>>fstat64(13, {st_mode=S_IFREG|0644, st_size=1021, ...}) = 0 >>>>mmap2(NULL, 1021, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 >>>>munmap(0x41a40000, 1021) = 0 >>>>close(13) = 0 >>>>write(1, "[verbose class: loading \"gnu/jav"..., 64[verbose class: loading >>>>"gnu/java/awt/peer/gtk/GtkGenericPeer"] >>>>) = 64 >>>>open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkGenericPeer.class", >>>>O_RDONLY) = 13 >>>>fstat64(13, {st_mode=S_IFREG|0644, st_size=1045, ...}) = 0 >>>>mmap2(NULL, 1045, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 >>>>munmap(0x41a40000, 1045) = 0 >>>>close(13) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 >>>>brk(0) = 0x8093000 >>>>brk(0x80b9000) = 0x80b9000 >>>>mmap2(NULL, 2101248, PROT_READ|PROT_WRITE|PROT_EXEC, >>>>MAP_PRIVATE|MAP_ANONYMOUS,-1, 0) = 0x42049000 >>>>mprotect(0x42049000, 4096, PROT_NONE) = 0 >>>>clone(child_stack=0x42249b08, >>>>flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, >>>>parent_tidptr=0x42249bf8, {entry_number:6, base_addr:0x42249bb0, >>>>limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, >>>>limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0x42249bf8) >>>>= 6137 >>>>futex(0x8072e00, FUTEX_WAIT, 0, NULL <unfinished ...> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference >>>>Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer >>>>Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA >>>>REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND >>>>_______________________________________________ >>>>Sablevm-developer mailing list >>>>Sab...@li... >>>>https://lists.sourceforge.net/lists/listinfo/sablevm-developer >>>> >>>> >>> >>>-- >>>Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ >>>SableVM: http://www.sablevm.org/ >>>SableCC: http://www.sablecc.org/ >>> >>> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > |
From: Fabien R. <re...@ne...> - 2004-06-17 10:17:50
|
Hello, I have 2 or 3, I don´t know problems : I´m with 1.1.3 on ARM 1) All my classes are in the same directory. When I want to run programms written with AWT I have ClassNotFoundException : <my_class> The other classes in the same directory work. Actually that can work (I only have qt no X) but I´m expecting another error 2) When I want to run java progs written with qt I have this : sablevm: INTERNAL ERROR (source file "native_interface.c", line 23627): todo This error seems normal, no ? 3) I want to run a little web server. I have this : [verbose class: loading "java/net/ServerSocket"] [verbose class: loading "gnu/java/net/PlainSocketImpl"] [verbose class: creating "[Ljava/lang/StackTraceElement;"] [verbose class: loading "java/lang/Throwable$StaticData"] java.lang.NoClassDefFoundError at java.net.ServerSocket.ServerSocket (ServerSocket.java:118) at java.net.ServerSocket.ServerSocket (ServerSocket.java:179) at java.net.ServerSocket.ServerSocket (ServerSocket.java:156) at java.net.ServerSocket.ServerSocket (ServerSocket.java:137) at WebServer.main (WebServer.java:113) It´s strange, sablevm doesnt say me what is the missing class Someone could help me ? Cheers, Fabien |
From: Roman K. <ro...@on...> - 2004-06-16 22:25:07
|
Hi list, I have added US-ASCII decoding. I found, that my database seems to use this encoding occasionally, so I thought it would be useful. svn+ssh://svn.sablevm.org/developers/roman/tags/sablevm-classpath-17-06-200= 4 Cheers, Roman |
From: Roman K. <ro...@on...> - 2004-06-16 22:21:02
|
Am Di, den 15.06.2004 schrieb Roman Kennke um 20:18: > Hi list, >=20 > I found another issue, this time related to a database connection with > MySQL. During sending an update, the hole connection seems to hang > infinitely. Update: I've done a lot of tests, during which I got it running on Linux. I used a new MySQL driver for this. Unfortunately my testprog does still not run under FreeBSD. I will attach my testprog. The result under FreeBSD is, that I can transmit a byte array of size <21488 bytes, not 1 byte more (in this case the whole thing hangs). The gdb backtrace is surprisingly short: (gdb) bt #0 0x2817f2af in poll () from /lib/libc.so.5 #1 0x28123a51 in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.5 #2 0x28123445 in _thread_kern_scheduler () from /usr/lib/libc_r.so.5 (gdb) I have not yet solved this, and have no idea. But I have solved another small problem, which I will write in another email. :-) Cheers, Roman |
From: Joseph P. <pa...@mc...> - 2004-06-16 16:41:36
|
Were you able to make any progress on figuring out what the problem is? If there is anything more you need from me, please don't hesitate to ask. --Joe On Mon, 14 Jun 2004, Joseph Paris wrote: > no problem. Here it is: > > (VMObject.java:-1) java/lang/VMObject.wait n > (Object.java:431) java/lang/Object.wait > (GtkMainThread.java:63) gnu/java/awt/peer/gtk/GtkMainThread.<init> > (GtkToolkit.java:108) gnu/java/awt/peer/gtk/GtkToolkit.<init> > (Constructor.java:-1) java/lang/reflect/Constructor.constructNative n > (Constructor.java:408) java/lang/reflect/Constructor.newInstance > (Class.java:1496) java/lang/Class.newInstance > (Toolkit.java:522) java/awt/Toolkit.getDefaultToolkit > (Component.java:695) java/awt/Component.getToolkit > (Container.java:374) java/awt/Container.addImpl > (Container.java:268) java/awt/Container.add > (ConfigDialog.java:329) > net/jxta/impl/peergroup/ConfigDialog$PagesPanel.<init> > (ConfigDialog.java:375) net/jxta/impl/peergroup/ConfigDialog.<init> > (DefaultConfigurator.java:139) > net/jxta/impl/peergroup/DefaultConfigurator.<init> > (DefaultConfigurator.java:126) > net/jxta/impl/peergroup/DefaultConfigurator.<init> > (Constructor.java:-1) java/lang/reflect/Constructor.constructNative n > (Constructor.java:408) java/lang/reflect/Constructor.newInstance > (Class.java:1496) java/lang/Class.newInstance > (Platform.java:202) > net/jxta/impl/peergroup/Platform.generateConfigAdvertisement > (Platform.java:161) net/jxta/impl/peergroup/Platform.initFirst > (GenericPeerGroup.java:784) net/jxta/impl/peergroup/GenericPeerGroup.init > (PeerGroupFactory.java:369) > net/jxta/peergroup/PeerGroupFactory.newPlatform > (PeerGroupFactory.java:420) > net/jxta/peergroup/PeerGroupFactory.newNetPeerGroup > (Server.java:116) Server.startJxta > (Server.java:108) Server.main > (VirtualMachine.java:-1) java/lang/VirtualMachine.invokeMain n > (VirtualMachine.java:92) java/lang/VirtualMachine.main > > > Thanks, > Joe > > > On Mon, 14 Jun 2004, Etienne Gagnon wrote: > > > Hi Joe, > > > > Could you also type Ctrl-\ [e.g. SIGQUIT], when it hangs? This would > > dump the Java stack trace. > > > > Etienne > > > > Joseph Paris wrote: > > > Heya, > > > > > > I'm running into an issue were the sablevm seems to be hanging on what i > > > think is a threading related issue. I've narrowed down where in code > > > the hang occurs, but i'm not sure _why_ it occurs. I'm providing the > > > class and instantiation along with a portion of strace output. if more > > > strace output would help, please let me know. > > > > > > Any help would be greatly appreciated. > > > > > > System config: > > > Suse 9.1 updated; x86 > > > > > > Thanks, > > > Joe > > > > > > ------AwtUtils.java from the JXTA distribution----- > > > ****Executed as AwtUtils.initAsDaemon()**** > > > > > > > > > import java.awt.Frame; > > > > > > public class AwtUtils { > > > > > > public static void initAsDaemon() { > > > (new Thread() { > > > public void run() { > > > try { > > > Frame f = new Frame(); > > > f.dispose(); > > > } catch (Throwable t) { > > > } > > > } > > > public void doit() { > > > setDaemon(true); > > > setName("awt daemon initializer"); > > > start(); > > > try { > > > join(); > > > } catch (InterruptedException ie) { > > > } > > > } > > > }).doit(); > > > } > > > } > > > > > > > > > -------------------Strace output--------------------- > > > > > > open("/usr/local/lib/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such > > > file or directory) > > > open("tls/i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such > > > file ordirectory) > > > open("tls/i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > > directory) > > > open("tls/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > > directory) > > > open("tls/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > > directory)open("i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No > > > such file or directory) > > > open("i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > > directory) > > > open("sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > > directory) > > > open("libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > > directory)open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 13 > > > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\223"..., > > > 512) = 512 > > > fstat64(13, {st_mode=S_IFREG|0755, st_size=204755, ...}) = 0 > > > old_mmap(NULL, 170408, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > > > 0x41f97000 > > > madvise(0x41f97000, 170408, MADV_SEQUENTIAL|0x1) = 0 > > > old_mmap(0x41fbc000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > > > 13, 0x25000) = 0x41fbc000 > > > old_mmap(0x41fc0000, 2472, PROT_READ|PROT_WRITE, > > > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41fc0000 > > > close(13) = 0 > > > open("/usr/local/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such > > > file or d irectory) > > > open("tls/i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file > > > or directory) > > > open("tls/i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > > > directory) > > > open("tls/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > > > directory) > > > open("tls/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > > > directory)open("i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No > > > such file or directory) > > > open("i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > > > directory)open("sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such > > > file or directory)open("libfreetype.so.6", O_RDONLY) = -1 ENOENT (No > > > such file or directory)open("/usr/lib/libfreetype.so.6", O_RDONLY) = 13 > > > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\346"..., > > > 512) = 512 > > > fstat64(13, {st_mode=S_IFREG|0755, st_size=473346, ...}) = 0 > > > old_mmap(NULL, 429584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > > > 0x41fc1000 > > > madvise(0x41fc1000, 429584, MADV_SEQUENTIAL|0x1) = 0 > > > old_mmap(0x42023000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > > > 13, 0x62000) = 0x42023000 > > > close(13) = 0 > > > open("/usr/local/lib/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file > > > or directory) > > > open("tls/i686/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > > > directory) > > > open("tls/i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > > > directory)open("tls/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such > > > file or directory)open("tls/libexpat.so.0", O_RDONLY) = -1 ENOENT (No > > > such file or directory)open("i686/sse2/libexpat.so.0", O_RDONLY) = -1 > > > ENOENT (No such file or directory) > > > open("i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > > > directory)open("sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such > > > file or directory)open("libexpat.so.0", O_RDONLY) = -1 ENOENT (No > > > such file or directory)open("/usr/lib/libexpat.so.0", O_RDONLY) = 13 > > > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P!\0\000"..., > > > 512) = 512 > > > fstat64(13, {st_mode=S_IFREG|0755, st_size=160096, ...}) = 0 > > > old_mmap(NULL, 124104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > > > 0x4202a000 > > > madvise(0x4202a000, 124104, MADV_SEQUENTIAL|0x1) = 0 > > > old_mmap(0x42046000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > > > 13, 0x1c000) = 0x42046000 > > > close(13) = 0 > > > munmap(0x41a40000, 122337) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > write(1, "[verbose class: loading \"java/be"..., 60[verbose class: loading > > > "java/beans/PropertyChangeSupport"] > > > ) = 60 > > > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/java/beans/PropertyChangeSupport.class", > > > O_RDONLY) = 13 > > > fstat64(13, {st_mode=S_IFREG|0644, st_size=5035, ...}) = 0 > > > mmap2(NULL, 5035, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > > > munmap(0x41a40000, 5035) = 0 > > > close(13) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > write(1, "[verbose class: loading \"gnu/jav"..., 63[verbose class: loading > > > "gnu/java/awt/peer/gtk/GtkMainThread"] > > > ) = 63 > > > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkMainThread.class", > > > O_RDONLY) = 13 > > > fstat64(13, {st_mode=S_IFREG|0644, st_size=1021, ...}) = 0 > > > mmap2(NULL, 1021, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > > > munmap(0x41a40000, 1021) = 0 > > > close(13) = 0 > > > write(1, "[verbose class: loading \"gnu/jav"..., 64[verbose class: loading > > > "gnu/java/awt/peer/gtk/GtkGenericPeer"] > > > ) = 64 > > > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkGenericPeer.class", > > > O_RDONLY) = 13 > > > fstat64(13, {st_mode=S_IFREG|0644, st_size=1045, ...}) = 0 > > > mmap2(NULL, 1045, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > > > munmap(0x41a40000, 1045) = 0 > > > close(13) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > > brk(0) = 0x8093000 > > > brk(0x80b9000) = 0x80b9000 > > > mmap2(NULL, 2101248, PROT_READ|PROT_WRITE|PROT_EXEC, > > > MAP_PRIVATE|MAP_ANONYMOUS,-1, 0) = 0x42049000 > > > mprotect(0x42049000, 4096, PROT_NONE) = 0 > > > clone(child_stack=0x42249b08, > > > flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, > > > parent_tidptr=0x42249bf8, {entry_number:6, base_addr:0x42249bb0, > > > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, > > > limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0x42249bf8) > > > = 6137 > > > futex(0x8072e00, FUTEX_WAIT, 0, NULL <unfinished ...> > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > > > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > > > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > > > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > > > _______________________________________________ > > > Sablevm-developer mailing list > > > Sab...@li... > > > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > > > > > > > > > > -- > > Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ > > SableVM: http://www.sablevm.org/ > > SableCC: http://www.sablecc.org/ > > > > > |
From: Etienne G. <gag...@uq...> - 2004-06-16 03:37:54
|
Actually... Grzegorz B. Prokopski wrote: > Acutally, it's not mandatory. Actually, instead of a patch, normally > you send the following kind of information: > > svn merge -r xxxx:yyyy $SVN/developers/.../sandbox/sablevm... I really prefer to get a simple tag URL, such as: $SVN/developers/name/tags/date-tagname Why? Because I prefer to rely on the output of: svn log $SVN/developers/name/tags/date-tagname to find about xxx, and there's no way to get yyyy wrong when you use HEAD, given that tags cannot be modified. :-) [clarification: tags can be created, deleted, and re-created, but not modified.] Etienne -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |
From: Grzegorz B. P. <ga...@de...> - 2004-06-16 01:05:42
|
W li=B6cie z wto, 15-06-2004, godz. 08:52, Roman Kennke pisze:=20 > > Attached is a patch, that should get these changes into the tree. >=20 > The mandatory forget-the-attachment thing. I will never learn this. Acutally, it's not mandatory. Actually, instead of a patch, normally you send the following kind of information: svn merge -r xxxx:yyyy $SVN/developers/.../sandbox/sablevm... where: - yyyy is the revision (version) you want to get merged - xxxx is the revision (version) from which you started your changes. yyyy is usually simply the latest revision (altough you should indicate the number and not give a moving target like "HEAD") you see after doing 'svn up' in your working copy xxxx might be a bit confusing at the first sight, but this is indeed quite simple. Usually this is the revision, at which you created your branch. If you had your changes from your private branch already merged into "staging", then this is the revision of the "yyyy" value of this previous merge. You should *never* do merges by applying diff between your branch and *current* version of "staging". Why? Consider the following example, that simulates what would happen if we did that.=20 $ printf "a\nb\nc\nd\n" >> ./staging # initialize staging $ cat ./staging=20 a b c d $ cp ./staging ./sandbox # create development branch in sandbox # meanwhile do some improvements in staging (below) $ sed s/a/X/ ./staging >>./staging.new ; mv ./staging.new ./staging $ cat ./staging=20 X b c d $ echo E >>./sandbox # do some improvements in sandbox $ cat ./sandbox=20 a b c d E $ diff -u ./staging ./sandbox >>./for_merge_WRONG # prepare diff $ patch ./staging ./for_merge_WRONG=20 patching file ./staging $ cat ./staging=20 a b c d E Which is ***WRONG*** - because this way we lost all the improvements done in staging!!! The proper way of getting the diff for merge is to get diff between the original version copied into sandbox and the final version in sandbox - and apply the diff to staging. There's nothing Subversion-specific in this. This is how diff/patch works. I hope it's clearer now? :-) Cheers, Grzegorz B. Prokopski PS: Cc:ing Chris, as he had exactly the same problem lately. PPS: The proper content of staging after a good merge would be: $ cat staging X b c d e --=20 Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPL'ed Java VM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/Features |
From: Grzegorz B. P. <ga...@de...> - 2004-06-16 01:05:29
|
W li=B6cie z wto, 15-06-2004, godz. 08:52, Roman Kennke pisze:=20 > > Attached is a patch, that should get these changes into the tree. >=20 > The mandatory forget-the-attachment thing. I will never learn this. Acutally, it's not mandatory. Actually, instead of a patch, normally you send the following kind of information: svn merge -r xxxx:yyyy $SVN/developers/.../sandbox/sablevm... where: - yyyy is the revision (version) you want to get merged - xxxx is the revision (version) from which you started your changes. yyyy is usually simply the latest revision (altough you should indicate the number and not give a moving target like "HEAD") you see after doing 'svn up' in your working copy xxxx might be a bit confusing at the first sight, but this is indeed quite simple. Usually this is the revision, at which you created your branch. If you had your changes from your private branch already merged into "staging", then this is the revision of the "yyyy" value of this previous merge. You should *never* do merges by applying diff between your branch and *current* version of "staging". Why? Consider the following example, that simulates what would happen if we did that.=20 $ printf "a\nb\nc\nd\n" >> ./staging # initialize staging $ cat ./staging=20 a b c d $ cp ./staging ./sandbox # create development branch in sandbox # meanwhile do some improvements in staging (below) $ sed s/a/X/ ./staging >>./staging.new ; mv ./staging.new ./staging $ cat ./staging=20 X b c d $ echo E >>./sandbox # do some improvements in sandbox $ cat ./sandbox=20 a b c d E $ diff -u ./staging ./sandbox >>./for_merge_WRONG # prepare diff $ patch ./staging ./for_merge_WRONG=20 patching file ./staging $ cat ./staging=20 a b c d E Which is ***WRONG*** - because this way we lost all the improvements done in staging!!! The proper way of getting the diff for merge is to get diff between the original version copied into sandbox and the final version in sandbox - and apply the diff to staging. There's nothing Subversion-specific in this. This is how diff/patch works. I hope it's clearer now? :-) Cheers, Grzegorz B. Prokopski PS: Cc:ing Chris, as he had exactly the same problem lately. PPS: The proper content of staging after a good merge would be: $ cat staging X b c d e --=20 Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPL'ed Java VM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/Features |
From: Grzegorz B. P. <ga...@de...> - 2004-06-16 00:35:40
|
W liście z wto, 15-06-2004, godz. 14:18, Roman Kennke pisze: > Hi list, > > I found another issue, this time related to a database connection with > MySQL. During sending an update, the hole connection seems to hang > infinitely. I waited >10minutes, which should me more than enough. As > far as I worked this out, the issue seems to be in some native code. > Here is the stacktrace from CTRL+\: [...] > I'm trying to put together a simple test case to make this reproducible. > Is there any more information I can send (like a stacktrace of the > native code-> I don't know how to get this)? You need to get PID of the sablevm process, then you do: $ gdb /path/to/bin/sablevm $PID at gdb command prompt you simply do 'bt' If your app is multithreaded, you might want to attach to each thread and get backtrace it. HTH Grzegorz B. Prokopski -- Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPL'ed Java VM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/Features |
From: Roman K. <ro...@on...> - 2004-06-15 18:18:48
|
Hi list, I found another issue, this time related to a database connection with MySQL. During sending an update, the hole connection seems to hang infinitely. I waited >10minutes, which should me more than enough. As far as I worked this out, the issue seems to be in some native code. Here is the stacktrace from CTRL+\: (PlainSocketImpl.java:-1) gnu/java/net/PlainSocketImpl.read n (PlainSocketImpl.java:431) gnu/java/net/PlainSocketImpl$SocketInputStream.read (FilterInputStream.java:189) java/io/FilterInputStream.read (BufferedInputStream.java:370) java/io/BufferedInputStream.refill (BufferedInputStream.java:231) java/io/BufferedInputStream.read (MysqlIO.java:1399) com/mysql/jdbc/MysqlIO.reuseAndReadPacket (MysqlIO.java:1775) com/mysql/jdbc/MysqlIO.checkErrorPacket (MysqlIO.java:1020) com/mysql/jdbc/MysqlIO.sendCommand (MysqlIO.java:1109) com/mysql/jdbc/MysqlIO.sqlQueryDirect (Connection.java:2030) com/mysql/jdbc/Connection.execSQL (PreparedStatement.java:1750) com/mysql/jdbc/PreparedStatement.executeUpdate (PreparedStatement.java:1596) com/mysql/jdbc/PreparedStatement.executeUpdate (JDBCStorage.java:138) com/knowledgetracking/JDBCStorage.storeXML (NBEngine.java:78) com/knowledgetracking/nb/NBEngine.learn (NBEngine.java:37) com/knowledgetracking/nb/NBEngine.learn (learn.java:29) com/knowledgetracking/cli/learn.invoke (learn.java:45) com/knowledgetracking/cli/learn.invoke (Method.java:-1) java/lang/reflect/Method.invokeNative n (Method.java:556) java/lang/reflect/Method.invoke ((null):-1) bsh/Reflect.invokeOnMethod ((null):-1) bsh/Reflect.invokeStaticMethod ((null):-1) bsh/Reflect.invokeCompiledCommand ((null):-1) bsh/Name.invokeLocalMethod ((null):-1) bsh/Name.invokeMethod ((null):-1) bsh/BSHMethodInvocation.eval ((null):-1) bsh/BSHPrimaryExpression.eval ((null):-1) bsh/BSHPrimaryExpression.eval ((null):-1) bsh/Interpreter.eval ((null):-1) bsh/Interpreter.source ((null):-1) bsh/Interpreter.main (VirtualMachine.java:-1) java/lang/VirtualMachine.invokeMain n (VirtualMachine.java:92) java/lang/VirtualMachine.main I'm trying to put together a simple test case to make this reproducible. Is there any more information I can send (like a stacktrace of the native code-> I don't know how to get this)? Cheers, Roman |
From: Loic M. <lo...@do...> - 2004-06-15 15:08:11
|
Package: sablevm Version: 1.1.3-1 Severity: wishlist Hi, Please use /usr/share/common-licenses/LGPL-2.1 instead of copying the license in /usr/share/sablevm/LGPL-2.1. Anyway, the /usr/share/sablevm/LGPL-2.1 has been copy-pasted and includes litteral "^" followed by "L" (instead of the next-page control char "^L", ascii 0x0C, \f). Nothing big, I am sorry that I am a maniac! ;) Regards, -- Loïc Minier <lo...@do...> -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.6-bee-1 Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro Versions of packages sablevm depends on: ii java-common 0.22 Base of all Java packages ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libpopt0 1.7-4 lib for parsing cmdline parameters hi libsablevm1 1.1.3-1 Free implementation of JVM second ii unzip 5.51-2 De-archiver for .zip files -- no debconf information |
From: Roman K. <ro...@on...> - 2004-06-15 14:38:27
|
Am Di, den 15.06.2004 schrieb Etienne Gagnon um 15:07: > Roman Kennke wrote: > > Hi list. > > > > I have come across a strange thing: While testing my application > > knowledge-tracking, I got an exception: > > > > java.lang.NoClassDefFoundError > ... > > looking at the code in java.util.regex.Pattern, it is clear that > > gnu.regex.RESyntax is not found. Strange thing is, that gnu.regex is in > > SableVM-Classpath and installed properly (I checked this). When I > > explicitly include the path to SableVM-Classpath in the java-sablevm call, > > then things work out right. > > This is weird. Can you reproduce this with a minimal example you could > share on this list? Here we go. Attached (i hope ;-> ) is a very simple example, which throws an exception when called this way: > $HOME/local/bin/sablevm TestStrangeClasspath when called this way: > $HOME/local/bin/sablevm -c $HOME/local/share/sablevm/sablevm-classpath:. TestStrangeClasspath everything works fine. Isn't this weird? I used SableVM and SableVM-Classpath from bugfree branch. /Roman |
From: Etienne G. <gag...@uq...> - 2004-06-15 13:27:32
|
Roman Kennke wrote: > Hi list. > > I have come across a strange thing: While testing my application > knowledge-tracking, I got an exception: > > java.lang.NoClassDefFoundError ... > looking at the code in java.util.regex.Pattern, it is clear that > gnu.regex.RESyntax is not found. Strange thing is, that gnu.regex is in > SableVM-Classpath and installed properly (I checked this). When I > explicitly include the path to SableVM-Classpath in the java-sablevm call, > then things work out right. This is weird. Can you reproduce this with a minimal example you could share on this list? > The good thing is, with this hack, and with the small patch I submitted to > Classpath-Bugreports for URLStreamHandler, my app seems to work fine with > SableVM. And this is a good sign, since this includes quite some > technologies, like JDBC (with MySQL driver), XML, Castor, and some of > libcommons-*. This is great! We should make sure all this work gets into the next SableVM release. Etienne -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |
From: Roman K. <ro...@on...> - 2004-06-15 12:52:13
|
> Attached is a patch, that should get these changes into the tree. The mandatory forget-the-attachment thing. I will never learn this. /Roman |
From: Roman K. <ro...@on...> - 2004-06-15 12:39:46
|
Hi list, I've made some improvements to sablevm-classpath, that I wish can someday be merged into staging. * Added some checks to autogen.sh, for compatibility with FreeBSD. * Added javax/swing/Spring.java and javax/swing/SpringLayout.java. (should work correctly). * Added constructor ImageIcon(java.awt.Image img) to javax/swing/ImageIcon.java. * java/net/URLStreamHandler now correctly parses filenames as URLs. Attached is a patch, that should get these changes into the tree. I also made a SVN-tag: svn+ssh://svn.sablevm.org/developers/roman/tags/sablevm-classpath-15-06-2004 could you check+comment-on this? Thank you, /Roman |
From: Roman K. <ro...@on...> - 2004-06-15 11:25:36
|
Hi list. I have come across a strange thing: While testing my application knowledge-tracking, I got an exception: java.lang.NoClassDefFoundError at java.lang.Class.initialize (Class.java:124) at java.util.regex.Pattern.Pattern (Pattern.java:88) at java.util.regex.Pattern.compile (Pattern.java:144) at java.util.regex.Pattern.compile (Pattern.java:126) at java.lang.String.replaceAll (String.java:1177) at com.knowledgetracking.nb.NBClass.learnFromText (NBClass.java:82) at com.knowledgetracking.nb.ClassificationScheme.learnFromText (ClassificationScheme.java:141) at com.knowledgetracking.nb.NBEngine.learn (NBEngine.java:75) at com.knowledgetracking.nb.NBEngine.learn (NBEngine.java:37) at com.knowledgetracking.cli.learn.invoke (learn.java:29) at com.knowledgetracking.cli.learn.invoke (learn.java:45) at java.lang.reflect.Method.invokeNative (Method.java) at java.lang.reflect.Method.invoke (Method.java:556) at bsh.Reflect.invokeOnMethod (Unknown Source) at bsh.Reflect.invokeStaticMethod (Unknown Source) at bsh.Reflect.invokeCompiledCommand (Unknown Source) at bsh.Name.invokeLocalMethod (Unknown Source) at bsh.Name.invokeMethod (Unknown Source) at bsh.BSHMethodInvocation.eval (Unknown Source) at bsh.BSHPrimaryExpression.eval (Unknown Source) at bsh.BSHPrimaryExpression.eval (Unknown Source) at bsh.Interpreter.eval (Unknown Source) at bsh.Interpreter.source (Unknown Source) at bsh.Interpreter.main (Unknown Source) at java.lang.VirtualMachine.invokeMain (VirtualMachine.java) at java.lang.VirtualMachine.main (VirtualMachine.java:92) looking at the code in java.util.regex.Pattern, it is clear that gnu.regex.RESyntax is not found. Strange thing is, that gnu.regex is in SableVM-Classpath and installed properly (I checked this). When I explicitly include the path to SableVM-Classpath in the java-sablevm call, then things work out right. The good thing is, with this hack, and with the small patch I submitted to Classpath-Bugreports for URLStreamHandler, my app seems to work fine with SableVM. And this is a good sign, since this includes quite some technologies, like JDBC (with MySQL driver), XML, Castor, and some of libcommons-*. Cheers, /Roman |
From: Joseph P. <pa...@mc...> - 2004-06-15 01:05:16
|
no problem. Here it is: (VMObject.java:-1) java/lang/VMObject.wait n (Object.java:431) java/lang/Object.wait (GtkMainThread.java:63) gnu/java/awt/peer/gtk/GtkMainThread.<init> (GtkToolkit.java:108) gnu/java/awt/peer/gtk/GtkToolkit.<init> (Constructor.java:-1) java/lang/reflect/Constructor.constructNative n (Constructor.java:408) java/lang/reflect/Constructor.newInstance (Class.java:1496) java/lang/Class.newInstance (Toolkit.java:522) java/awt/Toolkit.getDefaultToolkit (Component.java:695) java/awt/Component.getToolkit (Container.java:374) java/awt/Container.addImpl (Container.java:268) java/awt/Container.add (ConfigDialog.java:329) net/jxta/impl/peergroup/ConfigDialog$PagesPanel.<init> (ConfigDialog.java:375) net/jxta/impl/peergroup/ConfigDialog.<init> (DefaultConfigurator.java:139) net/jxta/impl/peergroup/DefaultConfigurator.<init> (DefaultConfigurator.java:126) net/jxta/impl/peergroup/DefaultConfigurator.<init> (Constructor.java:-1) java/lang/reflect/Constructor.constructNative n (Constructor.java:408) java/lang/reflect/Constructor.newInstance (Class.java:1496) java/lang/Class.newInstance (Platform.java:202) net/jxta/impl/peergroup/Platform.generateConfigAdvertisement (Platform.java:161) net/jxta/impl/peergroup/Platform.initFirst (GenericPeerGroup.java:784) net/jxta/impl/peergroup/GenericPeerGroup.init (PeerGroupFactory.java:369) net/jxta/peergroup/PeerGroupFactory.newPlatform (PeerGroupFactory.java:420) net/jxta/peergroup/PeerGroupFactory.newNetPeerGroup (Server.java:116) Server.startJxta (Server.java:108) Server.main (VirtualMachine.java:-1) java/lang/VirtualMachine.invokeMain n (VirtualMachine.java:92) java/lang/VirtualMachine.main Thanks, Joe On Mon, 14 Jun 2004, Etienne Gagnon wrote: > Hi Joe, > > Could you also type Ctrl-\ [e.g. SIGQUIT], when it hangs? This would > dump the Java stack trace. > > Etienne > > Joseph Paris wrote: > > Heya, > > > > I'm running into an issue were the sablevm seems to be hanging on what i > > think is a threading related issue. I've narrowed down where in code > > the hang occurs, but i'm not sure _why_ it occurs. I'm providing the > > class and instantiation along with a portion of strace output. if more > > strace output would help, please let me know. > > > > Any help would be greatly appreciated. > > > > System config: > > Suse 9.1 updated; x86 > > > > Thanks, > > Joe > > > > ------AwtUtils.java from the JXTA distribution----- > > ****Executed as AwtUtils.initAsDaemon()**** > > > > > > import java.awt.Frame; > > > > public class AwtUtils { > > > > public static void initAsDaemon() { > > (new Thread() { > > public void run() { > > try { > > Frame f = new Frame(); > > f.dispose(); > > } catch (Throwable t) { > > } > > } > > public void doit() { > > setDaemon(true); > > setName("awt daemon initializer"); > > start(); > > try { > > join(); > > } catch (InterruptedException ie) { > > } > > } > > }).doit(); > > } > > } > > > > > > -------------------Strace output--------------------- > > > > open("/usr/local/lib/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such > > file or directory) > > open("tls/i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such > > file ordirectory) > > open("tls/i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > directory) > > open("tls/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > directory) > > open("tls/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > directory)open("i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No > > such file or directory) > > open("i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > directory) > > open("sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > directory) > > open("libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > > directory)open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 13 > > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\223"..., > > 512) = 512 > > fstat64(13, {st_mode=S_IFREG|0755, st_size=204755, ...}) = 0 > > old_mmap(NULL, 170408, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > > 0x41f97000 > > madvise(0x41f97000, 170408, MADV_SEQUENTIAL|0x1) = 0 > > old_mmap(0x41fbc000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > > 13, 0x25000) = 0x41fbc000 > > old_mmap(0x41fc0000, 2472, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41fc0000 > > close(13) = 0 > > open("/usr/local/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such > > file or d irectory) > > open("tls/i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file > > or directory) > > open("tls/i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > > directory) > > open("tls/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > > directory) > > open("tls/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > > directory)open("i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No > > such file or directory) > > open("i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > > directory)open("sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such > > file or directory)open("libfreetype.so.6", O_RDONLY) = -1 ENOENT (No > > such file or directory)open("/usr/lib/libfreetype.so.6", O_RDONLY) = 13 > > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\346"..., > > 512) = 512 > > fstat64(13, {st_mode=S_IFREG|0755, st_size=473346, ...}) = 0 > > old_mmap(NULL, 429584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > > 0x41fc1000 > > madvise(0x41fc1000, 429584, MADV_SEQUENTIAL|0x1) = 0 > > old_mmap(0x42023000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > > 13, 0x62000) = 0x42023000 > > close(13) = 0 > > open("/usr/local/lib/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file > > or directory) > > open("tls/i686/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > > directory) > > open("tls/i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > > directory)open("tls/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such > > file or directory)open("tls/libexpat.so.0", O_RDONLY) = -1 ENOENT (No > > such file or directory)open("i686/sse2/libexpat.so.0", O_RDONLY) = -1 > > ENOENT (No such file or directory) > > open("i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > > directory)open("sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such > > file or directory)open("libexpat.so.0", O_RDONLY) = -1 ENOENT (No > > such file or directory)open("/usr/lib/libexpat.so.0", O_RDONLY) = 13 > > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P!\0\000"..., > > 512) = 512 > > fstat64(13, {st_mode=S_IFREG|0755, st_size=160096, ...}) = 0 > > old_mmap(NULL, 124104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > > 0x4202a000 > > madvise(0x4202a000, 124104, MADV_SEQUENTIAL|0x1) = 0 > > old_mmap(0x42046000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > > 13, 0x1c000) = 0x42046000 > > close(13) = 0 > > munmap(0x41a40000, 122337) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > write(1, "[verbose class: loading \"java/be"..., 60[verbose class: loading > > "java/beans/PropertyChangeSupport"] > > ) = 60 > > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/java/beans/PropertyChangeSupport.class", > > O_RDONLY) = 13 > > fstat64(13, {st_mode=S_IFREG|0644, st_size=5035, ...}) = 0 > > mmap2(NULL, 5035, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > > munmap(0x41a40000, 5035) = 0 > > close(13) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > write(1, "[verbose class: loading \"gnu/jav"..., 63[verbose class: loading > > "gnu/java/awt/peer/gtk/GtkMainThread"] > > ) = 63 > > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkMainThread.class", > > O_RDONLY) = 13 > > fstat64(13, {st_mode=S_IFREG|0644, st_size=1021, ...}) = 0 > > mmap2(NULL, 1021, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > > munmap(0x41a40000, 1021) = 0 > > close(13) = 0 > > write(1, "[verbose class: loading \"gnu/jav"..., 64[verbose class: loading > > "gnu/java/awt/peer/gtk/GtkGenericPeer"] > > ) = 64 > > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkGenericPeer.class", > > O_RDONLY) = 13 > > fstat64(13, {st_mode=S_IFREG|0644, st_size=1045, ...}) = 0 > > mmap2(NULL, 1045, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > > munmap(0x41a40000, 1045) = 0 > > close(13) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > > brk(0) = 0x8093000 > > brk(0x80b9000) = 0x80b9000 > > mmap2(NULL, 2101248, PROT_READ|PROT_WRITE|PROT_EXEC, > > MAP_PRIVATE|MAP_ANONYMOUS,-1, 0) = 0x42049000 > > mprotect(0x42049000, 4096, PROT_NONE) = 0 > > clone(child_stack=0x42249b08, > > flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, > > parent_tidptr=0x42249bf8, {entry_number:6, base_addr:0x42249bb0, > > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, > > limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0x42249bf8) > > = 6137 > > futex(0x8072e00, FUTEX_WAIT, 0, NULL <unfinished ...> > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > > _______________________________________________ > > Sablevm-developer mailing list > > Sab...@li... > > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > > > > > > -- > Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ > SableVM: http://www.sablevm.org/ > SableCC: http://www.sablecc.org/ > > |
From: Etienne G. <gag...@uq...> - 2004-06-14 22:50:43
|
Hi Joe, Could you also type Ctrl-\ [e.g. SIGQUIT], when it hangs? This would dump the Java stack trace. Etienne Joseph Paris wrote: > Heya, > > I'm running into an issue were the sablevm seems to be hanging on what i > think is a threading related issue. I've narrowed down where in code > the hang occurs, but i'm not sure _why_ it occurs. I'm providing the > class and instantiation along with a portion of strace output. if more > strace output would help, please let me know. > > Any help would be greatly appreciated. > > System config: > Suse 9.1 updated; x86 > > Thanks, > Joe > > ------AwtUtils.java from the JXTA distribution----- > ****Executed as AwtUtils.initAsDaemon()**** > > > import java.awt.Frame; > > public class AwtUtils { > > public static void initAsDaemon() { > (new Thread() { > public void run() { > try { > Frame f = new Frame(); > f.dispose(); > } catch (Throwable t) { > } > } > public void doit() { > setDaemon(true); > setName("awt daemon initializer"); > start(); > try { > join(); > } catch (InterruptedException ie) { > } > } > }).doit(); > } > } > > > -------------------Strace output--------------------- > > open("/usr/local/lib/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such > file or directory) > open("tls/i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such > file ordirectory) > open("tls/i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("tls/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("tls/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > directory)open("i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No > such file or directory) > open("i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or > directory)open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 13 > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\223"..., > 512) = 512 > fstat64(13, {st_mode=S_IFREG|0755, st_size=204755, ...}) = 0 > old_mmap(NULL, 170408, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > 0x41f97000 > madvise(0x41f97000, 170408, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x41fbc000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 13, 0x25000) = 0x41fbc000 > old_mmap(0x41fc0000, 2472, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41fc0000 > close(13) = 0 > open("/usr/local/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such > file or d irectory) > open("tls/i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file > or directory) > open("tls/i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("tls/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("tls/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > directory)open("i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No > such file or directory) > open("i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or > directory)open("sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such > file or directory)open("libfreetype.so.6", O_RDONLY) = -1 ENOENT (No > such file or directory)open("/usr/lib/libfreetype.so.6", O_RDONLY) = 13 > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\346"..., > 512) = 512 > fstat64(13, {st_mode=S_IFREG|0755, st_size=473346, ...}) = 0 > old_mmap(NULL, 429584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > 0x41fc1000 > madvise(0x41fc1000, 429584, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x42023000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 13, 0x62000) = 0x42023000 > close(13) = 0 > open("/usr/local/lib/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file > or directory) > open("tls/i686/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > directory) > open("tls/i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > directory)open("tls/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such > file or directory)open("tls/libexpat.so.0", O_RDONLY) = -1 ENOENT (No > such file or directory)open("i686/sse2/libexpat.so.0", O_RDONLY) = -1 > ENOENT (No such file or directory) > open("i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or > directory)open("sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such > file or directory)open("libexpat.so.0", O_RDONLY) = -1 ENOENT (No > such file or directory)open("/usr/lib/libexpat.so.0", O_RDONLY) = 13 > read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P!\0\000"..., > 512) = 512 > fstat64(13, {st_mode=S_IFREG|0755, st_size=160096, ...}) = 0 > old_mmap(NULL, 124104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = > 0x4202a000 > madvise(0x4202a000, 124104, MADV_SEQUENTIAL|0x1) = 0 > old_mmap(0x42046000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 13, 0x1c000) = 0x42046000 > close(13) = 0 > munmap(0x41a40000, 122337) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > write(1, "[verbose class: loading \"java/be"..., 60[verbose class: loading > "java/beans/PropertyChangeSupport"] > ) = 60 > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/java/beans/PropertyChangeSupport.class", > O_RDONLY) = 13 > fstat64(13, {st_mode=S_IFREG|0644, st_size=5035, ...}) = 0 > mmap2(NULL, 5035, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > munmap(0x41a40000, 5035) = 0 > close(13) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > write(1, "[verbose class: loading \"gnu/jav"..., 63[verbose class: loading > "gnu/java/awt/peer/gtk/GtkMainThread"] > ) = 63 > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkMainThread.class", > O_RDONLY) = 13 > fstat64(13, {st_mode=S_IFREG|0644, st_size=1021, ...}) = 0 > mmap2(NULL, 1021, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > munmap(0x41a40000, 1021) = 0 > close(13) = 0 > write(1, "[verbose class: loading \"gnu/jav"..., 64[verbose class: loading > "gnu/java/awt/peer/gtk/GtkGenericPeer"] > ) = 64 > open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkGenericPeer.class", > O_RDONLY) = 13 > fstat64(13, {st_mode=S_IFREG|0644, st_size=1045, ...}) = 0 > mmap2(NULL, 1045, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 > munmap(0x41a40000, 1045) = 0 > close(13) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > brk(0) = 0x8093000 > brk(0x80b9000) = 0x80b9000 > mmap2(NULL, 2101248, PROT_READ|PROT_WRITE|PROT_EXEC, > MAP_PRIVATE|MAP_ANONYMOUS,-1, 0) = 0x42049000 > mprotect(0x42049000, 4096, PROT_NONE) = 0 > clone(child_stack=0x42249b08, > flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, > parent_tidptr=0x42249bf8, {entry_number:6, base_addr:0x42249bb0, > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, > limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0x42249bf8) > = 6137 > futex(0x8072e00, FUTEX_WAIT, 0, NULL <unfinished ...> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer > > -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |
From: Chris P. <chr...@ma...> - 2004-06-14 22:06:01
|
Grzegorz B. Prokopski wrote: > W liście z pon, 14-06-2004, godz. 11:53, Chris Pickett pisze: > >>Grzegorz B. Prokopski wrote: >> >>>W liście z nie, 13-06-2004, godz. 15:47, Chris Pickett pisze: >>> >>>>svn merge >>>>svn+ssh://svn.sablevm.org/public/sablevm/branches/staging/doc/stack_layout.txt >>>>svn+ssh://svn.sablevm.org/public/developers/chris/sandbox/sablevm/doc/stack_layout.txt >>> >>> >>>Unfortunatelly this is not proper command to merge these changes (and it >>>does not work). If you can, please try to provide merge commands, like >>> >>>svn merge -r xxxx:yyyy >>>svn+ssh://svn.sablevm.org/public/developers/chris/sandbox/sablevm/doc/stack_layout.txt >> >>Strange. When I went into a fresh working copy of staging, and did the >>specified merge from inside /doc, it worked perfectly and without >>conflicts -- I would not give a merge command that I had not tried myself! > > > Yup, I did that too and got some very cryptic message that a file is not > under revision control! Yes, my local copy was up to date. > > And getting back to your command - as merge is diff&patch in one, it > would basically take diff between current staging and your version, and > apply it to staging version. The result would be the same, as if I just > overwrote staging version with your version. I think this case is even > discussed somewhere in Subversion Book as an example of what you should > not do, if you really want to *merge* your changes. Actually, now I'm just confused. The "correct" way to do this is to make a tag, right? So, now I have another file, doc/m4macros.txt. Can I just do: svn cp $CHRIS/sandbox/sablevm/doc/m4macros.txt $CHRIS/tags/m4macros.txt ?? Or do I have to do something like: svn cp $STAGING $CHRIS/sandbox/m4macros_tag_preparation svn co $CHRIS/sandbox/m4macros_tag_preparation/doc cd doc svn merge -r 1506:2541 $CHRIS/sandbox/sablevm/doc/m4macros.txt svn ci svn cp $CHRIS/sandbox/m4macros_tag_preparation $CHRIS/tags/m4macros_tag_preparation which is what I have now done. I don't know what revisions to give you, probably 2541:2543. You can see with: svn log $CHRIS/tags/m4macros_tag_preparation (I misnamed the tag, oh well). This second method feels too complicated for something so simple. Chris |
From: Grzegorz B. P. <ga...@de...> - 2004-06-14 19:06:43
|
W li=B6cie z pon, 14-06-2004, godz. 11:53, Chris Pickett pisze:=20 > Grzegorz B. Prokopski wrote: > > W li=B6cie z nie, 13-06-2004, godz. 15:47, Chris Pickett pisze:=20 > >>svn merge=20 > >>svn+ssh://svn.sablevm.org/public/sablevm/branches/staging/doc/stack_l= ayout.txt=20 > >>svn+ssh://svn.sablevm.org/public/developers/chris/sandbox/sablevm/doc= /stack_layout.txt > >=20 > >=20 > > Unfortunatelly this is not proper command to merge these changes (and= it > > does not work). If you can, please try to provide merge commands, lik= e > >=20 > > svn merge -r xxxx:yyyy > > svn+ssh://svn.sablevm.org/public/developers/chris/sandbox/sablevm/doc= /stack_layout.txt=20 >=20 > Strange. When I went into a fresh working copy of staging, and did the= =20 > specified merge from inside /doc, it worked perfectly and without=20 > conflicts -- I would not give a merge command that I had not tried myse= lf! Yup, I did that too and got some very cryptic message that a file is not under revision control! Yes, my local copy was up to date. And getting back to your command - as merge is diff&patch in one, it would basically take diff between current staging and your version, and apply it to staging version. The result would be the same, as if I just overwrote staging version with your version. I think this case is even discussed somewhere in Subversion Book as an example of what you should not do, if you really want to *merge* your changes. HTH Grzegorz B. Prokopski --=20 Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPL'ed Java VM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/Features |
From: Joseph P. <pa...@mc...> - 2004-06-14 18:11:02
|
Heya, I'm running into an issue were the sablevm seems to be hanging on what i think is a threading related issue. I've narrowed down where in code the hang occurs, but i'm not sure _why_ it occurs. I'm providing the class and instantiation along with a portion of strace output. if more strace output would help, please let me know. Any help would be greatly appreciated. System config: Suse 9.1 updated; x86 Thanks, Joe ------AwtUtils.java from the JXTA distribution----- ****Executed as AwtUtils.initAsDaemon()**** import java.awt.Frame; public class AwtUtils { public static void initAsDaemon() { (new Thread() { public void run() { try { Frame f = new Frame(); f.dispose(); } catch (Throwable t) { } } public void doit() { setDaemon(true); setName("awt daemon initializer"); start(); try { join(); } catch (InterruptedException ie) { } } }).doit(); } } -------------------Strace output--------------------- open("/usr/local/lib/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("tls/i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file ordirectory) open("tls/i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("tls/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("tls/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)open("i686/sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("i686/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("sse2/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 13 read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\223"..., 512) = 512 fstat64(13, {st_mode=S_IFREG|0755, st_size=204755, ...}) = 0 old_mmap(NULL, 170408, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = 0x41f97000 madvise(0x41f97000, 170408, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x41fbc000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 13, 0x25000) = 0x41fbc000 old_mmap(0x41fc0000, 2472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41fc0000 close(13) = 0 open("/usr/local/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or d irectory) open("tls/i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("tls/i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("tls/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("tls/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("i686/sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("i686/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("sse2/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/usr/lib/libfreetype.so.6", O_RDONLY) = 13 read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\346"..., 512) = 512 fstat64(13, {st_mode=S_IFREG|0755, st_size=473346, ...}) = 0 old_mmap(NULL, 429584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = 0x41fc1000 madvise(0x41fc1000, 429584, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x42023000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 13, 0x62000) = 0x42023000 close(13) = 0 open("/usr/local/lib/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("tls/i686/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("tls/i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)open("tls/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)open("tls/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)open("i686/sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("i686/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)open("sse2/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)open("libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)open("/usr/lib/libexpat.so.0", O_RDONLY) = 13 read(13, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P!\0\000"..., 512) = 512 fstat64(13, {st_mode=S_IFREG|0755, st_size=160096, ...}) = 0 old_mmap(NULL, 124104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 13, 0) = 0x4202a000 madvise(0x4202a000, 124104, MADV_SEQUENTIAL|0x1) = 0 old_mmap(0x42046000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 13, 0x1c000) = 0x42046000 close(13) = 0 munmap(0x41a40000, 122337) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 write(1, "[verbose class: loading \"java/be"..., 60[verbose class: loading "java/beans/PropertyChangeSupport"] ) = 60 open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/java/beans/PropertyChangeSupport.class", O_RDONLY) = 13 fstat64(13, {st_mode=S_IFREG|0644, st_size=5035, ...}) = 0 mmap2(NULL, 5035, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 munmap(0x41a40000, 5035) = 0 close(13) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 write(1, "[verbose class: loading \"gnu/jav"..., 63[verbose class: loading "gnu/java/awt/peer/gtk/GtkMainThread"] ) = 63 open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkMainThread.class", O_RDONLY) = 13 fstat64(13, {st_mode=S_IFREG|0644, st_size=1021, ...}) = 0 mmap2(NULL, 1021, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 munmap(0x41a40000, 1021) = 0 close(13) = 0 write(1, "[verbose class: loading \"gnu/jav"..., 64[verbose class: loading "gnu/java/awt/peer/gtk/GtkGenericPeer"] ) = 64 open("/home/paris/software/sablevm//share/sablevm/sablevm-classpath/gnu/java/awt/peer/gtk/GtkGenericPeer.class", O_RDONLY) = 13 fstat64(13, {st_mode=S_IFREG|0644, st_size=1045, ...}) = 0 mmap2(NULL, 1045, PROT_READ, MAP_PRIVATE, 13, 0) = 0x41a40000 munmap(0x41a40000, 1045) = 0 close(13) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 brk(0) = 0x8093000 brk(0x80b9000) = 0x80b9000 mmap2(NULL, 2101248, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS,-1, 0) = 0x42049000 mprotect(0x42049000, 4096, PROT_NONE) = 0 clone(child_stack=0x42249b08, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x42249bf8, {entry_number:6, base_addr:0x42249bb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0x42249bf8) = 6137 futex(0x8072e00, FUTEX_WAIT, 0, NULL <unfinished ...> |
From: Chris P. <chr...@ma...> - 2004-06-14 16:00:49
|
Grzegorz B. Prokopski wrote: > W liście z nie, 13-06-2004, godz. 15:47, Chris Pickett pisze: >>svn merge >>svn+ssh://svn.sablevm.org/public/sablevm/branches/staging/doc/stack_layout.txt >>svn+ssh://svn.sablevm.org/public/developers/chris/sandbox/sablevm/doc/stack_layout.txt > > > Unfortunatelly this is not proper command to merge these changes (and it > does not work). If you can, please try to provide merge commands, like > > svn merge -r xxxx:yyyy > svn+ssh://svn.sablevm.org/public/developers/chris/sandbox/sablevm/doc/stack_layout.txt Strange. When I went into a fresh working copy of staging, and did the specified merge from inside /doc, it worked perfectly and without conflicts -- I would not give a merge command that I had not tried myself! > I could not determine at which xxxx revision your stack_layout.txt merge > should start, and applying the diff from 1293:2524 was giving rejects, > so I decided to do the merge by hand. Well the last change was at r2151 according to svn log. If I understand merge correctly, you can make it behave identically to diff + patch if one of the source files (revisions) is identical to the target. Perhaps your working copy of staging was not at the latest revision -- that's all I can think of. I'll try to provide more unbreakable instructions next time. > In any case - it's in staging now. > > Thanks Chris for the effort you put in improving these docs. No problem, thanks for committing it. I shouldn't take too much credit though: Etienne wrote most of my changes, I just took them from the mailing list and merged them together with David's original, and did a few edits. Cheers, Chris |
From: Grzegorz B. P. <ga...@de...> - 2004-06-14 09:10:42
|
Hello, I've got something for your eyes to enjoy :-) I finally got around to implement java.lang.Thread.holdsLock() [*] which allowed me to finally try out the new Swing. You can see a couple of results here: http://gadek.debian.net/SableVM-Swing-new/ Some of them will make it onto our Screenshots page [*] (but later). ...and the code is in "staging". Besides the improvements catched on the screenshots I also noticed some small regressions in display, but it's understandable, as it's a "work in progress" stuff. Cheers, Grzegorz B. Prokopski [*] http://sablevm.org/screenshots.html One of the regressions I saw, was that the wheels in "Swing toy drawing board" (see our screenshot sections to know what I am talking about) were working, but NOT moving. The "Swing progress bar" was broken too :-( -- Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPL'ed Java VM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/Features |