Re: svn commit: r218970 - in head/sys: compat/linux sys

2011-03-07 Thread Alexander Leidinger
Quoting Chagin Dmitry  (from Sat, 5 Mar 2011  
22:45:28 +0300):



On Sat, Mar 05, 2011 at 08:02:44PM +0100, Lucius Windschuh wrote:



BTW, is there an easy way to debug such futex issues, other than
perhaps linux_kdump?



try r219242. kdump now (in HEAD) decode linux syscalls. also see ktr(4).


DTrace is much more leightwight, does not need as much configuration  
in the kernel as KTR (once KDTRACE_HOOKS is inside), and is much more  
flexibel.


Bye,
Alexander.

--
Greatness is a transitory experience. It is never consistent.

http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org   netchild @ FreeBSD.org  : PGP ID = 72077137
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r218970 - in head/sys: compat/linux sys

2011-03-06 Thread Lucius Windschuh
2011/3/5 Chagin Dmitry :
> try r219242. kdump now (in HEAD) decode linux syscalls. also see ktr(4).

Oh, forgot the first rule: "svn up" before posting.

It works again, thank you. :-D

Lucius
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r218970 - in head/sys: compat/linux sys

2011-03-05 Thread Chagin Dmitry
On Sat, Mar 05, 2011 at 08:02:44PM +0100, Lucius Windschuh wrote:
> Hi John, hi Dmitry.
> 
> 2011/2/23 John Baldwin :
> > New Revision: 218970
> > [...]
> > Log:
> >  Use umtx_key objects to uniquely identify futexes.  Private futexes in
> >  different processes that happen to use the same user address in the
> >  separate processes will now be treated as distinct futexes rather than the
> >  same futex.  We can now honor shared futexes properly by mapping them to a
> >  PROCESS_SHARED umtx_key.  Private futexes use THREAD_SHARED umtx_key
> >  objects.
> 
> This change breaks linux-jdk-1.6.0, at least for me on FreeBSD 9 i386:
> 
> $ /usr/local/linux-sun-jdk1.6.0/bin/java
> Usage: java [-options] class [args...]
>(to execute a class)
>or  java [-options] -jar jarfile [args...]
>(to execute a jar file)
> 
> where options include:
> -d32  use a 32-bit data model if available
> 
> -d64  use a 64-bit data model if available
> -client   to select the "client" VM
> -server   to select the "server" VM
> -hotspot  is a synonym for the "client" VM  [deprecated]
>   The default VM is server,
>   because you are running on a server-class machine.
> 
> -cp 
> -classpath 
>   A : separated list of directories, JAR archives,
>   and ZIP archives to search for class files.
> -D=
>   set a system property
> -verbose[:class|gc|jni]
>   enable verbose output
> -version  print product version and exit
> -version:
>   require the specified version to run
> -showversion  print product version and continue
> -jre-restrict-search | -jre-no-restrict-search
>   include/exclude user private JREs in the version search
> -? -help  print this help message
> -Xprint help on non-standard options
> -ea[:...|:]
> -enableassertions[:...|:]
>   enable assertions
> -da[:...|:]
> -disableassertions[:...|:]
>   disable assertions
> -esa | -enablesystemassertions
>   enable system assertions
> -dsa | -disablesystemassertions
>   disable system assertions
> -agentlib:[=]
>   load native agent library , e.g. -agentlib:hprof
> see also, -agentlib:jdwp=help and -agentlib:hprof=help
> -agentpath:[=]
>   load native agent library by full pathname
> -javaagent:[=]
>   load Java programming language agent, see 
> java.lang.instrument
> -splash:
>   show splash screen with specified image
> ^T
> load: 1.62  cmd: java 4007 [futex] 3.33r 0.00u 0.00s 0% 10784k
> (... wait a while)
> ^T
> load: 1.62  cmd: java 4007 [futex] 4.45r 0.00u 0.00s 0% 10784k
> (... doesn't finish)
> 
> With r218969, the process finishes as expected.
> 
> BTW, is there an easy way to debug such futex issues, other than
> perhaps linux_kdump?
> 

try r219242. kdump now (in HEAD) decode linux syscalls. also see ktr(4).

-- 
Have fun!
chd


pgpmL2tqzf0jd.pgp
Description: PGP signature


Re: svn commit: r218970 - in head/sys: compat/linux sys

2011-03-05 Thread Lucius Windschuh
Hi John, hi Dmitry.

2011/2/23 John Baldwin :
> New Revision: 218970
> [...]
> Log:
>  Use umtx_key objects to uniquely identify futexes.  Private futexes in
>  different processes that happen to use the same user address in the
>  separate processes will now be treated as distinct futexes rather than the
>  same futex.  We can now honor shared futexes properly by mapping them to a
>  PROCESS_SHARED umtx_key.  Private futexes use THREAD_SHARED umtx_key
>  objects.

This change breaks linux-jdk-1.6.0, at least for me on FreeBSD 9 i386:

$ /usr/local/linux-sun-jdk1.6.0/bin/java
Usage: java [-options] class [args...]
   (to execute a class)
   or  java [-options] -jar jarfile [args...]
   (to execute a jar file)

where options include:
-d32  use a 32-bit data model if available

-d64  use a 64-bit data model if available
-client   to select the "client" VM
-server   to select the "server" VM
-hotspot  is a synonym for the "client" VM  [deprecated]
  The default VM is server,
  because you are running on a server-class machine.

-cp 
-classpath 
  A : separated list of directories, JAR archives,
  and ZIP archives to search for class files.
-D=
  set a system property
-verbose[:class|gc|jni]
  enable verbose output
-version  print product version and exit
-version:
  require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -jre-no-restrict-search
  include/exclude user private JREs in the version search
-? -help  print this help message
-Xprint help on non-standard options
-ea[:...|:]
-enableassertions[:...|:]
  enable assertions
-da[:...|:]
-disableassertions[:...|:]
  disable assertions
-esa | -enablesystemassertions
  enable system assertions
-dsa | -disablesystemassertions
  disable system assertions
-agentlib:[=]
  load native agent library , e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:[=]
  load native agent library by full pathname
-javaagent:[=]
  load Java programming language agent, see java.lang.instrument
-splash:
  show splash screen with specified image
^T
load: 1.62  cmd: java 4007 [futex] 3.33r 0.00u 0.00s 0% 10784k
(... wait a while)
^T
load: 1.62  cmd: java 4007 [futex] 4.45r 0.00u 0.00s 0% 10784k
(... doesn't finish)

With r218969, the process finishes as expected.

BTW, is there an easy way to debug such futex issues, other than
perhaps linux_kdump?

Lucius
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"