JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 20.05.2022, 08:47
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default Crashing: free(): invalid pointer

Hi, on a Gentoo system, it starts, upgrades, then crashes:

Code:
THREAD: 63
63|Log.L.log 5/20/22, 9:44:17 AM - INFO [ org.appwork.storage.JsonKeyValueStorage(<init>) ] -> CFG File does not exist: /home/mike/jd2/cfg/org.jdownloader.extensions.extraction.ExtractionExtension.json
63|Log.L.log 5/20/22, 9:44:17 AM - FINER [ org.appwork.loggingv3.LogV3(finer) ] -> Load Translation file:/home/mike/jd2/translations/org/jdownloader/extensions/extraction/translate/ExtractionTranslation.en.lng/null
New Window State (Normal): {
 "extendedState"  : "NORMAL",
 "height"         : 728,
 "screenID"       : ":0.0",
 "width"          : 1024,
 "x"              : 448,
 "y"              : 213,
 "active"         : true,
 "focus"          : true,
 "locationSet"    : true,
 "silentShutdown" : false,
 "visible"        : true
}
free(): invalid pointer
Aborted (core dumped)
Could not find the reason. Any ideas?
Reply With Quote
  #2  
Old 20.05.2022, 09:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

@msdobrescu: Please install Java on your system and rename java/jre folder within your JDownloader folder, see https://support.jdownloader.org/Know...tion-directory .
I guess you've installed the installer with bundled java 11? looks like this one has some incompatibility issues with certain hardware.
With renaming the java/jre folder, the launcher will switch to system installed java instead.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 20.05.2022, 10:12
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default

I've tried the "other" (MULTIOS JAR without Installer) and the Linux installer, bith have the same issue.

There is a java directory inside jd2 installation, but it is empty.
Reply With Quote
  #4  
Old 20.05.2022, 10:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

@msdobrescu: What java version are you using? can you provide a log? see https://support.jdownloader.org/Know...d-session-logs
or zip the logs folder and send to support@jdownloader.org

Both having the same issue sounds like your java installation/version is broken or you're having hardware/system issues.

What java version are you using? on console
java -version
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 20.05.2022, 10:27
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default

java -version
openjdk version "11.0.14" 2022-01-18
OpenJDK Runtime Environment Temurin-11.0.14+9 (build 11.0.14+9)
OpenJDK 64-Bit Server VM Temurin-11.0.14+9 (build 11.0.14+9, mixed mode)
Reply With Quote
  #6  
Old 20.05.2022, 10:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

@msdobrescu: looks like this java build is broken as the crash happens outside of JDownloader within java itself
You can try to switch to Java 8 or Java 17 or try a different build

Thanks for the logs, yes it's using the java from system and that one is crashing. I would suggest to remove java11 and either install java8 or java17 version
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 20.05.2022 at 10:40.
Reply With Quote
  #7  
Old 20.05.2022, 10:42
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default

That I suspect too, unfortunately can't confirm, this is the only crashing java app I have.
Would be useful to know what part is broken, otherwise I can't create a ticket for it.
Reply With Quote
  #8  
Old 20.05.2022, 10:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

@msdobrescu: free(): invalid pointer, java is trying to free memory on invalid pointer. That's all you see there. Doesn't mean java is the cause but also can be broken memory. You should also check memory with memtest86
but I would first check with different java version/build.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 20.05.2022, 10:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

Quote:
Originally Posted by msdobrescu View Post
Would be useful to know what part is broken, otherwise I can't create a ticket for it.
Can't help with that as the message does not provide any further hint. Maybe the core dump contains details.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 20.05.2022, 10:47
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default

Can you point me where is that core dump? I don't find one in JD's directory, nor in java's.
Reply With Quote
  #11  
Old 20.05.2022, 10:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

Quote:
Originally Posted by msdobrescu View Post
Can you point me where is that core dump? I don't find one in JD's directory, nor in java's.
I'm sorry, but can't help with that. If there is no file in cwd, then most likely the file is too large, see
forums.gentoo.org/viewtopic-t-812901.html
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 20.05.2022, 11:22
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default

The limit is set to unlimited. Strange to not have a core dump, but may be a different process that causes the crash and need to find that one.
Reply With Quote
  #13  
Old 20.05.2022, 11:28
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

@msdobrescu: I would first check if the crash continues to happen with different java version/build. if so, then it's not java but something else.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 20.05.2022, 12:10
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default

Hi, I've got a core dump!

Is it java or libc?

Code:
coredumpctl gdb /opt/openjdk-bin-11.0.14_p9/bin/java
           PID: 18968 (java)
           UID: 1000 (mike)
           GID: 1015 (mike)
        Signal: 6 (ABRT)
     Timestamp: Fri 2022-05-20 09:33:47 -00 (25min ago)
  Command Line: /opt/openjdk-bin-11.0.14_p9/bin/java -jar /home/mike/jd2/JDownloader.jar
    Executable: /opt/openjdk-bin-11.0.14_p9/bin/java
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.yakuake-5e19bf30711344eeb5b8e45c91ac86c2.scope
          Unit: user@1000.service
     User Unit: app-org.kde.yakuake-5e19bf30711344eeb5b8e45c91ac86c2.scope
         Slice: user-1000.slice
     Owner UID: 1000 (mike)
       Boot ID: 3a409a84451f46dfb1593e6a21c495e5
    Machine ID: 7460535d1c2e40d88ecb97308818bad4
      Hostname: usv
       Storage: /var/lib/systemd/coredump/core.java.1000.3a409a84451f46dfb1593e6a21c495e5.18968.1653039227000000.zst (present)
     Disk Size: 155.4M
       Message: Process 18968 (java) of user 1000 dumped core.

GNU gdb (Gentoo 11.2 vanilla) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <**External links are only visible to Support Staff**This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<**External links are only visible to Support Staff**Find the GDB manual and other documentation resources online at:
    <**External links are only visible to Support Staff**
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/openjdk-bin-11.0.14_p9/bin/java...
(No debugging symbols found in /opt/openjdk-bin-11.0.14_p9/bin/java)

warning: Can't open file /SYSV00000000 (deleted) during file-backed mapping note processing

warning: Can't open file /tmp/hsperfdata_mike/18968 during file-backed mapping note processing
[New LWP 19048]
[New LWP 18968]
[New LWP 18971]
[New LWP 18973]
[New LWP 18974]
[New LWP 18972]
[New LWP 18975]
[New LWP 18980]
[New LWP 18994]
[New LWP 18978]
[New LWP 18976]
[New LWP 18986]
[New LWP 19013]
[New LWP 18979]
[New LWP 18977]
[New LWP 18991]
[New LWP 18981]
[New LWP 19015]
[New LWP 18984]
[New LWP 18997]
[New LWP 19018]
[New LWP 18985]
[New LWP 18990]
[New LWP 18998]
[New LWP 18988]
[New LWP 18995]
[New LWP 19000]
[New LWP 18993]
[New LWP 19024]
[New LWP 18996]
[New LWP 19011]
[New LWP 19029]
[New LWP 19006]
[New LWP 19020]
[New LWP 18999]
[New LWP 19037]
[New LWP 19009]
[New LWP 19021]
[New LWP 19043]
[New LWP 19004]
[New LWP 19023]
[New LWP 19044]
[New LWP 18983]
[New LWP 19005]
[New LWP 19028]
[New LWP 19051]
[New LWP 19008]
[New LWP 19031]
[New LWP 19007]
[New LWP 19056]
[New LWP 19035]
[New LWP 19014]
[New LWP 19017]
[New LWP 19046]
[New LWP 19019]
[New LWP 19053]
[New LWP 19057]
[New LWP 19022]
[New LWP 19039]
[New LWP 18982]
[New LWP 19033]
[New LWP 19036]
[New LWP 19058]
[New LWP 19038]
[New LWP 19042]
[New LWP 19010]
[New LWP 19054]
[New LWP 19045]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `/opt/openjdk-bin-11.0.14_p9/bin/java -jar /home/mike/jd2/JDownloader.jar'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f177f0d264e in raise () from /lib64/libc.so.6
Reply With Quote
  #15  
Old 20.05.2022, 12:18
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

smells like libc as cause but I'm no expert.I really would recommend to test different java version/build to limit the cause
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 20.05.2022, 12:26
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default

Sorry, that is not possible, I would do it if I could.
Reply With Quote
  #17  
Old 20.05.2022, 12:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

@msdobrescu: just download a java build from adoptium.net, extract and use that one to launch JDownloader. no need to change your system java for this.
eg /home/xy/java/bin/java -jar /path../JDownloader.jar
__________________
JD-Dev & Server-Admin
Reply With Quote
  #18  
Old 20.05.2022, 13:10
msdobrescu msdobrescu is offline
Registered / Inactive
 
Join Date: Jul 2018
Posts: 16
Default

That worked, I confirm there is a bug in distro's java. This worked:

java --version
openjdk 17.0.3 2022-04-19
OpenJDK Runtime Environment Temurin-17.0.3+7 (build 17.0.3+7)
OpenJDK 64-Bit Server VM Temurin-17.0.3+7 (build 17.0.3+7, mixed mode, sharing)

At least we've clarified it!

Thank you!

Last edited by msdobrescu; 20.05.2022 at 13:14.
Reply With Quote
  #19  
Old 20.05.2022, 13:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,017
Default

@msdobrescu: that would explain that we had same java version bundled with another installed and also got same reports. Thanks for your time and help on this.
Should take too long for updated java as 11.0.15 is available since a few weeks. see
adoptium.net/de/temurin/releases?version=11
__________________
JD-Dev & Server-Admin
Reply With Quote
  #20  
Old 17.09.2024, 14:06
ksk ksk is offline
Modem User
 
Join Date: Sep 2024
Posts: 2
Default

I just had the same error message on rhel 9. Changing Java versions did not fix it. When I uninstalled JDownloader, deleted the JDownloader folder, and installed it again, the error message was gone.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 16:00.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.