Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVM crash when next() over a line of code that throws an exception #1

Open
jbalint opened this issue Apr 12, 2013 · 2 comments
Open
Assignees
Labels

Comments

@jbalint
Copy link
Owner

jbalint commented Apr 12, 2013

This is happening on MySQL Connector/J 5.1 when debugging ConnectionRegressionTest.testExpiredPassword()

The following line throws an exception:
testConn = getConnectionWithProps(props);

calling next() in YT crashes the JVM

@ghost ghost assigned jbalint Apr 12, 2013
@jbalint
Copy link
Owner Author

jbalint commented Apr 15, 2013

check that overwriting signal handlers in yt.c is kosher:
Warning: SIGINT handler expected:libjvm.so+0x743b30 found:0x0000000000000001
Signal Handlers:
SIGSEGV: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x7417a0], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x743b30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: [libjvm.so+0x743b30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
Warning: SIGQUIT handler expected:libjvm.so+0x743b30 found:0x0000000000000001
Signal Handlers:
SIGSEGV: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x741e50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x7417a0], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x743b30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: [libjvm.so+0x743b30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000

@jbalint
Copy link
Owner Author

jbalint commented Apr 15, 2013

the warning can be squelched with:
export LD_PRELOAD=$JAVA_HOME/jre/lib/amd64/libjsig.so

It's cause remains unknown, Even when I don't modify signal handlers in yt.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant