Skip to content

Ubuntu VM crash #687

Description

@Giancarlo1991

Description
My VM with Ubuntu v20.04.6 LTS crashes afte rstarting the install script and gets a kernel panic, which i can't recover.
To Reproduce
Steps to reproduce the behavior:

  1. VM with Ubuntu v.20.04.6
  2. Start install script 2024.3.0

Expected behavior
VM crashes
Actual behavior
Kernel panic

Environment
Windows 11 host, Ubuntu guest virtual box
Additional context

Activity

  1. ChengYen-Tang commented on Jul 22, 2024

    @ChengYen-Tang

    Hi @Giancarlo1991,
    I also have the same problem. Do you resolve this?

  2. moved this from Done to In Progress in UTBot C/C++on Jul 22, 2024
  3. ChengYen-Tang commented on Jul 22, 2024

    @ChengYen-Tang

    I get this error
    image
    Then I can't boot my ubuntu
    image

  4. Giancarlo1991 commented on Jul 22, 2024

    @Giancarlo1991
    Author

    Yeah, i had this too. It seems the shared libraries were destroyed. I tried fixing it with booting from a new ubuntu version and mounting the old partitions but all shared libs were destroyed and i couldn't use any commands so i threw the vm away...

  5. ChengYen-Tang commented on Jul 22, 2024

    @ChengYen-Tang

    So, you don’t have a solution to this problem?
    Or do you mean, don't use VM?

  6. Giancarlo1991 commented on Jul 22, 2024

    @Giancarlo1991
    Author

    Sorry, I don't have a solution.

  7. momo-tong commented on Jul 22, 2024

    @momo-tong

    I also have the same problem. I see some code changed *so file in utbot_run_system.sh, but don't know how to modify.
    Also I use utbotcpp in VM.
    Looking forward to the author's reply.

    # Updating libm.so so that it contains valid path to libmvec_nonshared.a
    echo "/* GNU ld script */
    OUTPUT_FORMAT(elf64-x86-64)
    GROUP ( /$X86_LIBS/libm.so.6  AS_NEEDED ( $UTBOT_ALL/debs-install/usr/$X86_LIBS/libmvec_nonshared.a /$X86_LIBS/libmvec.so.1 ) )" > $UTBOT_ALL/debs-install/usr/$X86_LIBS/libm.so
    
    # Updating libc.so so that it contains valid path to libc_nonshared.a
    echo "/* GNU ld script
     Use the shared library, but some functions are only in
     the static library, so try that secondarily.  */
    OUTPUT_FORMAT(elf64-x86-64)
    GROUP ( /$X86_LIBS/libc.so.6 $UTBOT_ALL/debs-install/usr/$X86_LIBS/libc_nonshared.a  AS_NEEDED ( /$X86_LIBS/ld-linux-x86-64.so.2 ) )" > $UTBOT_ALL/debs-install/usr/$X86_LIBS/libc.so
    
    # Updating libpthread.so so that it contains valid path to libpthread_nonshared.a
    echo "/* GNU ld script
     Use the shared library, but some functions are only in
     the static library, so try that secondarily.  */
    OUTPUT_FORMAT(elf64-x86-64)
    GROUP ( /$X86_LIBS/libpthread.so.0 $UTBOT_ALL/debs-install/usr/$X86_LIBS/libpthread_nonshared.a )" > $UTBOT_ALL/debs-install/usr/$X86_LIBS/libpthread.so
    
  8. rajgideon commented on Oct 9, 2024

    @rajgideon

    I am having the same issue "mkdir: error while loading shared libraries: /lib/x86_64-linux-gnu/libpthread.so.0: invalid ELF header" . I am running a Ubuntu 22.04 docker image in container. after executing the script ./unpack_and_run_utbot.sh. The Ubuntu container crashes and never stays up. It appears the libraries are getting overwritten or destroyed.
    Please let me know if a fix is being planned for this issue.

  9. lancasterJie commented on Jan 19, 2025

    @lancasterJie

    same issue in my ubuntu server, and re-install the OS, so frustrating~~~~~

  10. zhangzhili1112 commented on Oct 11, 2025

    @zhangzhili1112

    same issue in my ubuntu server, and re-install the OS, so frustrating~~~~~

    Hello, has this problem been solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions