Bug #478

exjld if invalid main class name is provided during compile, at the runtime segmentation fault is received

Added by Madars Vitolins about 1 year ago.

Status:NewStart date:11/28/2019
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

(gdb) where
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007fc9e74c6801 in __GI_abort () at abort.c:79
#2  0x00007fc9e6c2af25 in ?? () from /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
#3  0x00007fc9e6e5379a in ?? () from /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
#4  0x00007fc9e6e5401b in ?? () from /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
#5  0x00007fc9e6e5404e in ?? () from /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
#6  0x00007fc9e6c35d40 in JVM_handle_linux_signal () from /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
#7  0x00007fc9e6c295e8 in ?? () from /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
#8  <signal handler called>
#9  0x00007fc9e660e20a in ?? () from /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
#10 0x00007fc9e6926563 in ?? () from /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
#11 0x00007fc9e7cc8a9b in ndrxj_ldr_get_static_handler (env=env@entry=0x561024735340, run_class_str=run_class_str@entry=0x56102442d199 "NENonnect", static_method=static_method@entry=0x7fc9e7ccc062 "main", 
    static_method_sign=static_method_sign@entry=0x7fc9e7ccc015 "([Ljava/lang/String;)V", run_class=run_class@entry=0x7fffc3193d60, run_mid=run_mid@entry=0x7fffc3193d68) at /home/user1/projects/endurox-java/libexjlds/exj.c:602
#12 0x00007fc9e7cca68d in run_ldr_main (test_mode=0, argv=0x7fffc3193ec0, argc=<optimized out>, main_class_str=0x56102442d199 "NENonnect", env=0x561024735340) at /home/user1/projects/endurox-java/libexjlds/exj.c:693
#13 ndrxj_run_main (argc=9, argv=0x7fffc3193eb8, main_class=0x56102442d199 "NENonnect", class_index=<optimized out>, class_index_len=<optimized out>, emb_index=<optimized out>, emb_index_len=1, test_mode=0)
    at /home/user1/projects/endurox-java/libexjlds/exj.c:951
#14 0x0000561024412ab6 in main ()
(gdb) 

Also available in: Atom PDF