Crash report after java process run

Dear All,

We got below crash report after java process run on imx6ull module.

[  114.179649] [76f34000] *pgd=926be835, *pte=95fb8e9f, *ppte=00000000
[  114.204847] CPU: 0 PID: 234 Comm: java Not tainted 4.9.144-+g5758a8e #4
[  114.230345] Hardware name: Freescale i.MX6 UltraLite (Device Tree)
[  114.255346] task: 92282840 task.stack: 92942000
[  114.278457] PC is at 0x73357b94
[  114.299956] LR is at 0x7351f3d4
[  114.320924] pc : [<73357b94>]    lr : [<7351f3d4>]    psr: 20050010
[  114.320924] sp : 618ae860  ip : 618aa860  fp : 618aea4c
[  114.367390] r10: 62c99050  r9 : 76f34000  r8 : 61eda800
[  114.389670] r7 : 68b30338  r6 : 0000000b  r5 : 68baa450  r4 : 00000011
[  114.412986] r3 : 00000010  r2 : 00000019  r1 : 660c1740  r0 : 68b1c668
[  114.435925] Flags: nzCv  IRQs on  FIQs on  Mode USER_32  ISA ARM  Segment user
[  114.475494] Control: 10c5387d  Table: 926b806a  DAC: 00000055
[  114.497278] CPU: 0 PID: 234 Comm: java Not tainted 4.9.144-+g5758a8e #4
[  114.519838] Hardware name: Freescale i.MX6 UltraLite (Device Tree)
[  114.541827] Backtrace: 
[  114.559873] [<8010ba4c>] (dump_backtrace) from [<8010bd24>] (show_stack+0x18/0x1c)
[  114.598909]  r7:00000017 r6:60050113 r5:00000000 r4:80c1cab0
[  114.620520] [<8010bd0c>] (show_stack) from [<8042fca4>] (dump_stack+0x90/0xa4)
[  114.659599] [<8042fc14>] (dump_stack) from [<80108980>] (show_regs+0x14/0x18)
[  114.682920]  r7:00000017 r6:76f34000 r5:0000000b r4:92282840
[  114.705028] [<8010896c>] (show_regs) from [<8011443c>] (__do_user_fault+0x100/0x104)
[  114.745494] [<8011433c>] (__do_user_fault) from [<8011464c>] (do_page_fault+0x20c/0x3a4)
[  114.786570]  r8:76f34000 r7:00000017 r6:928f7700 r5:92282840 r4:92943fb0
[  114.809928] [<80114440>] (do_page_fault) from [<8010134c>] (do_DataAbort+0x44/0xc0)
[  114.851109]  r10:62c99050 r9:76f34000 r8:92943fb0 r7:76f34000 r6:80114440 r5:00000017
[  114.893023]  r4:80c09db4
[  114.912553] [<80101308>] (do_DataAbort) from [<8010cbe0>] (__dabt_usr+0x40/0x60)
[  114.955249] Exception stack(0x92943fb0 to 0x92943ff8)
[  114.978135] 3fa0:                                     68b1c668 660c1740 00000019 00000010
[  115.022593] 3fc0: 00000011 68baa450 0000000b 68b30338 61eda800 76f34000 62c99050 618aea4c
[  115.067861] 3fe0: 618aa860 618ae860 7351f3d4 73357b94 20050010 ffffffff
[  115.093142]  r8:10c5387d r7:10c5387d r6:ffffffff r5:20050010 r4:73357b94
sy[  116.190044] alloc_contig_range: [96080, 96094) PFNs busy
stemctl [  118.560571] pgd = 926b8000
[  118.582035] [76f34000] *pgd=926be835, *pte=95fb8e9f, *ppte=00000000
[  118.607165] CPU: 0 PID: 230 Comm: java Not tainted 4.9.144-+g5758a8e #4
[  118.632495] Hardware name: Freescale i.MX6 UltraLite (Device Tree)
[  118.657243] task: 92280000 task.stack: 927f6000
[  118.680266] PC is at 0x733475b0
[  118.701569] LR is at 0x7325d740
[  118.722280] pc : [<733475b0>]    lr : [<7325d740>]    psr: 600e0010
[  118.722280] sp : 6229f730  ip : 6229b730  fp : 6229f754
[  118.768285] r10: 62bc76b8  r9 : 76f34000  r8 : 62140c00
[  118.790347] r7 : 6239af00  r6 : 6229f75c  r5 : 62f9be20  r4 : 6229f730
[  118.813404] r3 : 80400000  r2 : 00000001  r1 : 000003a9  r0 : 00000000
[  118.836139] Flags: nZCv  IRQs on  FIQs on  Mode USER_32  ISA ARM  Segment user
[  118.875382] Control: 10c5387d  Table: 926b806a  DAC: 00000055
[  118.897056] CPU: 0 PID: 230 Comm: java Not tainted 4.9.144-+g5758a8e #4
[  118.919421] Hardware name: Freescale i.MX6 UltraLite (Device Tree)
[  118.941235] Backtrace: 
[  118.959109] [<8010ba4c>] (dump_backtrace) from [<8010bd24>] (show_stack+0x18/0x1c)
[  118.998384]  r7:00000017 r6:600e0113 r5:00000000 r4:80c1cab0
[  119.019818] [<8010bd0c>] (show_stack) from [<8042fca4>] (dump_stack+0x90/0xa4)
[  119.058913] [<8042fc14>] (dump_stack) from [<80108980>] (show_regs+0x14/0x18)
[  119.082409]  r7:00000017 r6:76f34000 r5:0000000b r4:92280000
[  119.104382] [<8010896c>] (show_regs) from [<8011443c>] (__do_user_fault+0x100/0x104)
[  119.144612] [<8011433c>] (__do_user_fault) from [<8011464c>] (do_page_fault+0x20c/0x3a4)
[  119.185641]  r8:76f34000 r7:00000017 r6:928f7700 r5:92280000 r4:927f7fb0
[  119.209136] [<80114440>] (do_page_fault) from [<8010134c>] (do_DataAbort+0x44/0xc0)
[  119.250582]  r10:62bc76b8 r9:76f34000 r8:927f7fb0 r7:76f34000 r6:80114440 r5:00000017
[  119.292740]  r4:80c09db4
[  119.312394] [<80101308>] (do_DataAbort) from [<8010cbe0>] (__dabt_usr+0x40/0x60)
[  119.355325] Exception stack(0x927f7fb0 to 0x927f7ff8)
[  119.378329] 7fa0:                                     00000000 000003a9 00000001 80400000
[  119.423011] 7fc0: 6229f730 62f9be20 6229f75c 6239af00 62140c00 76f34000 62bc76b8 6229f754
[  119.468371] 7fe0: 6229b730 6229f730 7325d740 733475b0 600e0010 ffffffff
[  119.493717]  r8:10c5387d r7:10c5387d r6:ffffffff r5:600e0010 r4:733475b0

can anyone help us why this crash happen?

Thanks & Best Regards,

Nikunj Patel

Dear @nikunjp26

Could you provide the Software version of your module?
Have you done any changes to the Software?
Could you provide a sample code with instructions to compile and run the code?

Thanks and best regards,
Jaski

Dear Jaski,

Please check the “uname -a” command output of software version.

uname -a Linux colibri-imx6ull 4.9.144-+g5758a8e #4 SMP Thu Mar 14 19:11:31 IST 2019 armv7l armv7l armv7l GNU/Linux

Also, follow the below steps to run java based Application.

  1. Create eclipse directory using below command

    1. mkdir /home/root/eclipse
  2. Unzip attached zip file inside the /home/root/eclipse.

  3. Perform below commands to run Application.

    1. dos2unix eclipse/kura/install/*

    2. sh eclipse/kura/install/kura_install.sh

    3. sh eclipse/kura/bin/start_kura_background.sh

Thanks & Best Regards,

Nikunj Patel

[link text][1]
[1]: https://share.toradex.com/rk4i9c8wy2ast2d?direct

Dear Nikunj

Sorry for the delayed answer. I looked into the files you uploaded. Unfortunately, I could not test it completely since I don’t have the dos2unix installed on the module.

May I ask, what is your application?
Is this application running well on your host?
Which version of Java are you using on the module?

Dear Jaski,

Question: Sorry for the delayed answer. I looked into the files you uploaded. Unfortunately, I could not test it completely since I don’t have the dos2unix installed on the module.

Answer: we haved added “dos2unix” utility by adding the recipe of “dos2unix” in our build.

Question: May I ask, what is your application?

Answer: This is the whole framework which is based on Java.

Question: Is this application running well on your host?

Answer: Same Application work with below same version java on VF61.

Question: Which version of Java are you using on the module?

Answer: Java 1.8.0-Internal(Which is compiled by us)

Thanks & Best Regards,

Nikunj Patel

Dear Nikunj

Answer: we haved added “dos2unix” utility by adding the recipe of “dos2unix” in our build

Thanks for this Information. I will add this utility too to the image and test your files.

Answer: Same Application work with below same version java on VF61.t?

iMX6ull has different kernel and different hardware. What is the use case for this application? Are you using any multimedia input/outputs for your application?

Answer: Java 1.8.0-Internal(Which is compiled by us)

Did you try using OpenJDK?

Best regards,
Jaski

Dear Jaski,

Sorry for the late reply.

can you please explain more about the " multimedia input/outputs"?

Question: Did you try using OpenJDK?
Answer: Yes, We did with OpenJDK but still the same issue we faced.

Thanks & Best Regards,

Nikunj Patel

Dear Nikunj

That’s OK. With multimedia Inputs/Outputs, i meant if you are using audio or video for your application.

Best regards, Jaski

Dear Jaski,

No, we are not using any “multimedia Inputs/Outputs” in our board.

Thanks & Best Regards,
Nikunj Patel

Thanks for your Input. We will try to reproduce the issue and come back to you.

Best regards

hi @nikunjp26

We enabled since Bsp 2.8b1 CONFIG_DEBUG_USER option enabled in kernel. What you’re seeing are crashes in java binaries. While the message is printed by the kernel, the issue happens in the user space java. Debugging Java is outside of the scope of our support.

However, often when user debug prints an error there is not a real issue underlying. Some programs use faults intentionally: E.g. we found that OpenSSL tests which ARM instructions are available and handles the undefined instruction fault (SIGILL). I guess your Java implementation uses page faults e.g. for garbage collection. In fact, this blog post indicates that at least Java HotSpot VM uses page faults for savepoints.

To get rid of this messages simply change the user_debug parameter to not print SIGSEGVs (or any user debug messages by removing the complete user_debug parameter in U-Boot).

Best regards,
Jaski