[JIRA] Created: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
SIGSEGV in TextMatchers.matches
-------------------------------

                 Key: GLAZEDLISTS-564
                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
             Project: glazedlists
          Issue Type: Bug
    Affects Versions: 1.8.0
         Environment: Fedora 18
JRE version: 7.0_21-b11
Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
            Reporter: cmadsen_dk


Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
trying to filter a list (through a JTextField) that is being updated by
another thread.

The log file looks like this:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
tid=140269955303168
#
# JRE version: 7.0_21-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
linux-amd64 compressed oops)
# Problematic frame:
# J
ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
lang/Object;)Z
#
# Failed to write core dump. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# hs_err_pid6793.log

Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=370540#action_370540 ]

Cozmic72 commented on GLAZEDLISTS-564:
--------------------------------------

I am experiencing the same issue.  Any update on a workaround?  Is it just a matter of synchronising?

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=370548#action_370548 ]

cryowizard commented on GLAZEDLISTS-564:
----------------------------------------

So do I although I get a slightly different error. This prevents us from moving to Java 7 x64...

Top part of the error log:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000275c8c3, pid=26600, tid=14512
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# J  ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;Lca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/lang/Object;)Z
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x000000000a865000):  JavaThread "MatcherQueueThread" [_thread_in_Java, id=14512, stack(0x0000000010840000,0x0000000010940000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000002f1c55f46


> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=370552#action_370552 ]

cmadsen_dk commented on GLAZEDLISTS-564:
----------------------------------------

I wrapped all lists with GlazedLists.threadSafeList. This lowers the rate at which the crash happens,

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=370582#action_370582 ]

cryowizard commented on GLAZEDLISTS-564:
----------------------------------------

Our code is properly synchronized, this part has been working for years now. Only breaks if we switch to Java 7 64-bit. Perhaps this is more of a JVM issue but I'd love to know how to sidestep it...

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Issue Comment Edited: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=371212#action_371212 ]

Leung Wang Hei edited comment on GLAZEDLISTS-564 at 12/2/13 1:56 AM:
---------------------------------------------------------------------

Same issue happens on Win7.

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000030dc91e, pid=1424, tid=5164
#
# JRE version: 7.0_06-b24
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.2-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# J  ca.odell.glazedlists.impl.filter.BoyerMooreCaseInsensitiveTextSearchStrategy.indexOf(Ljava/lang/String;)I
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

More capturing attached here: http://glazedlists.1045722.n5.nabble.com/JVM-crash-at-BoyerMooreCaseInsensitiveTextSearchStrategy-td5709983.html

Again, the problem starts happening since switching to 64-bit.

      was (Author: kag):
    Same issue happen on Win7.

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000030dc91e, pid=1424, tid=5164
#
# JRE version: 7.0_06-b24
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.2-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# J  ca.odell.glazedlists.impl.filter.BoyerMooreCaseInsensitiveTextSearchStrategy.indexOf(Ljava/lang/String;)I
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

More capturing attached here: http://glazedlists.1045722.n5.nabble.com/JVM-crash-at-BoyerMooreCaseInsensitiveTextSearchStrategy-td5709983.html

Again, the problem starts happening since switching to 64-bit.
 

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=371212#action_371212 ]

Leung Wang Hei commented on GLAZEDLISTS-564:
--------------------------------------------

Same issue happen on Win7.

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000030dc91e, pid=1424, tid=5164
#
# JRE version: 7.0_06-b24
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.2-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# J  ca.odell.glazedlists.impl.filter.BoyerMooreCaseInsensitiveTextSearchStrategy.indexOf(Ljava/lang/String;)I
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

More capturing attached here: http://glazedlists.1045722.n5.nabble.com/JVM-crash-at-BoyerMooreCaseInsensitiveTextSearchStrategy-td5709983.html

Again, the problem starts happening since switching to 64-bit.

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=371362#action_371362 ]

cryowizard commented on GLAZEDLISTS-564:
----------------------------------------

Gents, anyone looking at this? We'd really love to move to Java 7/x64 but this issue seems to be holding us back (unless I'm wrong about it originating in GL...)

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=371363#action_371363 ]

cryowizard commented on GLAZEDLISTS-564:
----------------------------------------

Forgot to mention we're using GL 1.9, not 1.8 so I guess it affects both versions...

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=371365#action_371365 ]

jplemieux commented on GLAZEDLISTS-564:
---------------------------------------

SIGSEGVs represent JVM bugs (or JNI bugs, but we don't have any JNI code in GL).

At this point, all we can do is report it to Oracle and wait patiently I think.

Anyone feel strongly about searching for an existing Oracle bug related to this issue and creating a new one if the search is fruitless?

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=371387#action_371387 ]

gmlwd6 commented on GLAZEDLISTS-564:
------------------------------------

I'm not sure if it's the same or a VERY similar issue, but I was presented a case where, if you hit it right, using a filterator with a JTextArea to filter the results in a JTable would crash the JVM.  The key things were that you had to hit it just right (I could reproduce it consistently, but it wouldn't crash if the user took one of a handful of actions prior to using the filter box), and it only happened on the OSX JVM (as you might imagine, most users -including myself - use windows).  The JVM crash log showed the same SIGSEGV in TextMatchers.matches that is shown here, so I'm thinking it's at least related if not the exact same issue (though I couldn't reproduce it on a 64-bit Windows 1.7.0_21 JVM).  The application is using Glazed Lists 1.8, though I briefly switched over to 1.9 while researching this and it still crashed just the same.

What I determined through experimentation once I could borrow a Mac is that the Object being handled by the filterator was providing two strings to the base list, one which is housed directly in the object, and one that is in a nested object.  I found that if I stopped referencing the nested object within the filterator class (by adding only the string that's housed directly in the object to the base list), I could no longer reproduce the crash.  I was also unable to reproduce the crash when running in debug mode via my IDE.

Also worth noting is that we have other filterators that follow the same pattern (add a string to the base list from an object housed within the one passed into getFilterStrings) and do not crash if we attempt to reproduce the issue so this pattern itself doesn't guarantee that problems will arise.

My best guess is that for some reason, the JVM is losing access to the memory address of the nested object after calling getFilterStrings, and then tries to reference it within TextMatchers.matches and as a result it crashes with a segmentation fault (sigsegv).

Going off the fact that the crash could not be reproduced in debug mode, I tried something on a whim to workaround the issue.  The filterator in question was the first one ever written in the application, and most filterators added the last few years have been annotation-based (basically the Object has getter methods that have a special annotation over them and the filterator calls those methods to load the base list).  Since it was easy enough to switch it over, I decided to do so, and after doing that I could no longer reproduce the crash.  Since the object has to be accessed via reflection when using the annotation-based filterator, I'm guessing that forces the JVM to keep more memory addressed and as a result when it adds the string from the nested object the memory address is reachable.  

Hopefully that may help some of you looking for an interim workaround.

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (GLAZEDLISTS-564) SIGSEGV in TextMatchers.matches

JIRA jira-no-reply@java.net
In reply to this post by JIRA jira-no-reply@java.net

    [ https://java.net/jira/browse/GLAZEDLISTS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=375729#action_375729 ]

lukejackson commented on GLAZEDLISTS-564:
-----------------------------------------

We've had this issue for some time, and given that the JVM crashes on a Java stack frame, it does indicate a JVM bug.

We've been testing with the following VM args, which disable JIT compilation of the problematic methods:

{noformat}
-XX:CompileCommand=exclude,ca/odell/glazedlists/impl/filter/TextMatchers,matches
-XX:CompileCommand=exclude,ca/odell/glazedlists/impl/filter/BoyerMooreCaseInsensitiveTextSearchStrategy,indexOf
{noformat}

And so far this has worked for us (fingers crossed).

It seems the JVM is generating incorrect assembly for these two methods.

FYI, we're using Oracle Java 7.

> SIGSEGV in TextMatchers.matches
> -------------------------------
>
>                 Key: GLAZEDLISTS-564
>                 URL: https://java.net/jira/browse/GLAZEDLISTS-564
>             Project: glazedlists
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Fedora 18
> JRE version: 7.0_21-b11
> Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops)
>            Reporter: cmadsen_dk
>
> Using Java 7 64 bit I get a SIGSEGV in TextMatchers.matches when I'm
> trying to filter a list (through a JTextField) that is being updated by
> another thread.
> The log file looks like this:
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f936589546d, pid=6793,
> tid=140269955303168
> #
> # JRE version: 7.0_21-b11
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # J
> ca.odell.glazedlists.impl.filter.TextMatchers.matches(Ljava/util/List;L
> ca/odell/glazedlists/TextFilterator;[Lca/odell/glazedlists/impl/filter/
> SearchTerm;[Lca/odell/glazedlists/impl/filter/TextSearchStrategy;Ljava/
> lang/Object;)Z
> #
> # Failed to write core dump. Core dumps have been disabled. To enable
> core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # hs_err_pid6793.log
> Any hints on how to solve this?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira