[ 
https://issues.apache.org/jira/browse/MESOS-2905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596033#comment-14596033
 ] 

haosdent commented on MESOS-2905:
---------------------------------

Hi, [~zborisha] , I think you problem is fixed in 
https://issues.apache.org/jira/browse/MESOS-2636 

> JVM crashed when wrong master format specified
> ----------------------------------------------
>
>                 Key: MESOS-2905
>                 URL: https://issues.apache.org/jira/browse/MESOS-2905
>             Project: Mesos
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.22.1
>         Environment: java version "1.8.0_45" - Oracle
> mesos version 0.22.1
> OS ubuntu 15.04
>            Reporter: Borisa Zivkovic
>
> I am using Spark with Mesos...
> I reported issue here https://issues.apache.org/jira/browse/SPARK-8524 but 
> actually after inspecting core dump it looks like it is Mesos problem
> Basically, if I specify invalid mesos master URL it crashes JVM... for 
> example mesos://http://127.0.0.1:5050 and mesos://abc://127.0.0.1:5050
> will crash JVM
> Looks like problem is in line 245 here 
> https://github.com/apache/mesos/blob/master/src/master/detector.cpp
> probably additional checks should be done and proper error reported instead 
> of crashing JVM
> here is relevant part of core dump
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> gdb where
> Core was generated by `/usr/lib/jvm/java-8-oracle/bin/java -cp 
> /home/borisa/Programs/spark-1.4.0-bin-h'.
> Program terminated with signal SIGABRT, Aborted.
> #0  0x00007f8a245ad267 in __GI_raise (sig=sig@entry=6) at 
> ../sysdeps/unix/sysv/linux/raise.c:55
> 55    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
> (gdb) gdb where
> Undefined command: "gdb".  Try "help".
> (gdb) where
> #0  0x00007f8a245ad267 in __GI_raise (sig=sig@entry=6) at 
> ../sysdeps/unix/sysv/linux/raise.c:55
> #1  0x00007f8a245aeeca in __GI_abort () at abort.c:89
> #2  0x00007f8a23ebf6b5 in os::abort(bool) () from 
> /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
> #3  0x00007f8a2405cda3 in VMError::report_and_die() () from 
> /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
> #4  0x00007f8a23ec4bdf in JVM_handle_linux_signal () from 
> /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
> #5  0x00007f8a23ebb493 in signalHandler(int, siginfo*, void*) () from 
> /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
> #6  <signal handler called>
> #7  __GI_freeaddrinfo (ai=0x998ef7a53c7f3000) at 
> ../sysdeps/posix/getaddrinfo.c:2683
> #8  0x00007f89869b4b10 in getIP () at 
> ../../../3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp:203
> #9  0x00007f89869f2d9e in operator>> () at 
> ../../../3rdparty/libprocess/src/pid.cpp:114
> #10 0x00007f89869f2768 in UPID () at 
> ../../../3rdparty/libprocess/src/pid.cpp:43
> #11 0x00007f8986075108 in create () at ../../src/master/detector.cpp:245
> #12 0x00007f89862768c4 in start () at ../../src/sched/sched.cpp:1515
> #13 0x00007f8986a97418 in Java_org_apache_mesos_MesosSchedulerDriver_start () 
> at ../../src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp:603



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to