Niklas Quarfot Nielsen created MESOS-2839:
---------------------------------------------

             Summary: Segmentation fault in freeaddrinfo when used with 
illegal/misconfigured IP
                 Key: MESOS-2839
                 URL: https://issues.apache.org/jira/browse/MESOS-2839
             Project: Mesos
          Issue Type: Bug
            Reporter: Niklas Quarfot Nielsen


A JVM crash was triggered by a misconfigured IP:

{code}
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f4cdccea540, pid=15060, tid=139963129837312
#
# JRE version: Java(TM) SE Runtime Environment (7.0_75-b13) (build 1.7.0_75-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.75-b04 mixed mode linux-amd64 
compressed oops)
# Problematic frame:
# C  [libc.so.6+0xe9540]  freeaddrinfo+0x10
#
# Core dump written. Default location: 
/home/arodriguez/dev/datavis-master/back/core or core.15060 (max size 50000 
kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java 
again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x00007f4c1409a000):  JavaThread "MesosSchedulerBackend driver" 
daemon [_thread_in_native, id=17085, 
stack(0x00007f4bb492b000,0x00007f4bb4a2c000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=128 (), si_addr=0x0000000000000000

Registers:
RAX=0x00000000fffffffe, RBX=0x80bf775da490b900, RCX=0x00007f4bb4a29ee0, 
RDX=0x0000000000000000
RSP=0x00007f4bb4a2a220, RBP=0x00007f4bb4a2a430, RSI=0x00007f4bb4a2a028, 
RDI=0x80bf775da490b900
R8 =0x0000000000000000, R9 =0x0000000000000000, R10=0x0000000000000020, 
R11=0x000000000000000c
R12=0x00007f4bb4a2a660, R13=0x00007f4bb4a2a270, R14=0x00007f4bb4a2a330, 
R15=0x000000000000000a
RIP=0x00007f4cdccea540, EFLAGS=0x0000000000010286, CSGSFS=0x0000000000000033, 
ERR=0x0000000000000000
  TRAPNO=0x000000000000000d

Top of Stack: (sp=0x00007f4bb4a2a220)
0x00007f4bb4a2a220:   00007f4bb4a2a330 00007f4bc0c8e660
0x00007f4bb4a2a230:   00007f4bb4a2a430 00007f4bc318db8e
0x00007f4bb4a2a240:   0000000000000004 00007f4bb4a2a370
0x00007f4bb4a2a250:   00007f4bb4a2a280 00000000fffffffe
0x00007f4bb4a2a260:   ffff80b44b5d5d51 00007f4c94000020
0x00007f4bb4a2a270:   00007f4c944dad08 80bf775da490b900
0x00007f4bb4a2a280:   00007f4c940285c8 00007f4bc0a1ecd8
0x00007f4bb4a2a290:   0000000000000000 00007f4c94028d40
0x00007f4bb4a2a2a0:   00007f4bc0c8e678 00007f4bc09e09f3
0x00007f4bb4a2a2b0:   00007f4c940267c8 0000000000000000
0x00007f4bb4a2a2c0:   00007f4bc0c8e678 00000006b4a2a336
0x00007f4bb4a2a2d0:   000000000000002f 00007f4bc0c8dbc0
0x00007f4bb4a2a2e0:   00007f4bc0c72340 00007f4bc0c725d0
0x00007f4bb4a2a2f0:   00007f4bb4a2a2d8 0000000000000000
0x00007f4bb4a2a300:   00007f4bc0c72340 00007f4bc0a0c600
0x00007f4bb4a2a310:   00007f4c944dad98 0000000000000001
0x00007f4bb4a2a320:   0000000000000000 80bf775da490b900
0x00007f4bb4a2a330:   00007f4c944d9398 00007f4bc0c8db40
0x00007f4bb4a2a340:   00007f4bc0c73950 00007f4bc0c725d0
0x00007f4bb4a2a350:   0000000000000000 00007f4bc0c74a80
0x00007f4bb4a2a360:   00007f4bb4a2a42f 00007f4bc09dd7f5
0x00007f4bb4a2a370:   0000000200000000 0000000000000001
0x00007f4bb4a2a380:   0000000000000000 0000000000000000
0x00007f4bb4a2a390:   0000000000000000 0000000000000000
0x00007f4bb4a2a3a0:   0000000200000000 0000000000000001
0x00007f4bb4a2a3b0:   0000000000000000 0000000000000000
0x00007f4bb4a2a3c0:   0000000000000000 0000000000000000
0x00007f4bb4a2a3d0:   00007f4bb4a2a560 80bf775da490b900
0x00007f4bb4a2a3e0:   00007f4bb4a2a488 00007f4bb4a2a430
0x00007f4bb4a2a3f0:   00007f4bc0c74a58 00007f4bb4a2a660
0x00007f4bb4a2a400:   00007f4bc0c74ac0 00007f4bc0c74a80
0x00007f4bb4a2a410:   00007f4bb4a2a42f 00007f4bc318ed5d 

Instructions: (pc=0x00007f4cdccea540)
0x00007f4cdccea520:   e9 e7 f7 ff ff 66 66 2e 0f 1f 84 00 00 00 00 00
0x00007f4cdccea530:   55 53 48 89 fb 48 83 ec 08 48 85 ff 74 1f 66 90
0x00007f4cdccea540:   48 8b 7b 20 48 8b 6b 28 e8 73 5f f3 ff 48 89 df
0x00007f4cdccea550:   48 89 eb e8 68 5f f3 ff 48 85 ed 75 e3 48 83 c4 

Register to memory mapping:

RAX=0x00000000fffffffe is an unallocated location in the heap
RBX=0x80bf775da490b900 is an unknown value
RCX=0x00007f4bb4a29ee0 is pointing into the stack for thread: 0x00007f4c1409a000
RDX=0x0000000000000000 is an unknown value
RSP=0x00007f4bb4a2a220 is pointing into the stack for thread: 0x00007f4c1409a000
RBP=0x00007f4bb4a2a430 is pointing into the stack for thread: 0x00007f4c1409a000
RSI=0x00007f4bb4a2a028 is pointing into the stack for thread: 0x00007f4c1409a000
RDI=0x80bf775da490b900 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000000000000 is an unknown value
R10=0x0000000000000020 is an unknown value
R11=0x000000000000000c is an unknown value
R12=0x00007f4bb4a2a660 is pointing into the stack for thread: 0x00007f4c1409a000
R13=0x00007f4bb4a2a270 is pointing into the stack for thread: 0x00007f4c1409a000
R14=0x00007f4bb4a2a330 is pointing into the stack for thread: 0x00007f4c1409a000
R15=0x000000000000000a is an unknown value


Stack: [0x00007f4bb492b000,0x00007f4bb4a2c000],  sp=0x00007f4bb4a2a220,  free 
space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0xe9540]  freeaddrinfo+0x10

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  
org.apache.mesos.MesosSchedulerDriver.start()Lorg/apache/mesos/Protos$Status;+0
j  org.apache.mesos.MesosSchedulerDriver.run()Lorg/apache/mesos/Protos$Status;+1
j  
org.apache.spark.scheduler.cluster.mesos.MesosSchedulerBackend$$anon$1.run()V+68
v  ~StubRoutines::call_stub
{code}



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

Reply via email to