failed to start qemu

25 views
Skip to first unread message

fin

unread,
Mar 26, 2025, 5:05:29 AM3/26/25
to syzkaller

make TARGETARCH=arm64

error log:
executor.cc:(.text.ZN10Connection7ConnectEPKcS1[ZN10Connection7ConnectEPKcS1]+0xd8): Warning : Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/wwqq/download/gcc-linaro-14.0.0-2023.06-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/14.0.0/../../../../aarch64-linux-gnu/bin/ld: read-only segment has dynamic relocations

I delete the compile flag "-static" and solve the problem.

Then I start the qemu by "./bin/syz-manager -config=/home/wwqq/desktop/my.cfg"
Unfortunately,there is a failure as below:
VM 0: crash: lost connection to test machine

there is the error log as below:
Warning: Permanently added '[localhost]:10480' (ED25519) to the list of known hosts.
/syz-executor: /lib/libc.so.6: version GLIBC_2.38' not found (required by /syz-executor) /syz-executor: /lib/libc.so.6: version GLIBC_2.33' not found (required by /syz-executor)
/syz-executor: /lib/libc.so.6: version GLIBC_2.27' not found (required by /syz-executor) /syz-executor: /lib/libc.so.6: version GLIBC_2.34' not found (required by /syz-executor)
/syz-executor: /lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /syz-executor)

thanks for your help!

Aleksandr Nogikh

unread,
Mar 26, 2025, 11:21:08 AM3/26/25
to fin, syzkaller
Hi,

On Wed, Mar 26, 2025 at 2:05 AM 'fin' via syzkaller
<syzk...@googlegroups.com> wrote:
>
> make TARGETARCH=arm64
>
> error log:
> executor.cc:(.text.ZN10Connection7ConnectEPKcS1[ZN10Connection7ConnectEPKcS1]+0xd8): Warning : Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

This one is expected.

> /home/wwqq/download/gcc-linaro-14.0.0-2023.06-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/14.0.0/../../../../aarch64-linux-gnu/bin/ld: read-only segment has dynamic relocations

This is interesting. I've tried to run it locally and it worked well
on "aarch64-linux-gnu-g++ (Debian 14.2.0-3+build4) 14.2.0". I wonder
if it has to do with the compiler version.

If you have Docker, you may try to build syzkaller using
$ ./tools/syz-env make TARGETARCH=arm64

>
> I delete the compile flag "-static" and solve the problem.

We use `-static` specifically to avoid the problems you described
below because glibc on the host and inside the VM will very likely be
different.

>
> Then I start the qemu by "./bin/syz-manager -config=/home/wwqq/desktop/my.cfg"
> Unfortunately,there is a failure as below:
> VM 0: crash: lost connection to test machine
>
> there is the error log as below:
> Warning: Permanently added '[localhost]:10480' (ED25519) to the list of known hosts.
> /syz-executor: /lib/libc.so.6: version GLIBC_2.38' not found (required by /syz-executor) /syz-executor: /lib/libc.so.6: version GLIBC_2.33' not found (required by /syz-executor)
> /syz-executor: /lib/libc.so.6: version GLIBC_2.27' not found (required by /syz-executor) /syz-executor: /lib/libc.so.6: version GLIBC_2.34' not found (required by /syz-executor)
> /syz-executor: /lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /syz-executor)
>

--
Aleksandr

> thanks for your help!
>

fin

unread,
Mar 28, 2025, 12:10:29 AM3/28/25
to syzkaller

make TARGETARCH=arm64

error log:
executor.cc:(.text.ZN10Connection7ConnectEPKcS1[ZN10Connection7ConnectEPKcS1]+0xd8): Warning : Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

/home/wwqq/download/gcc-linaro-14.0.0-2023.06-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/14.0.0/../../../../aarch64-linux-gnu/bin/ld: read-only segment has dynamic relocations

I delete the compile flag "-static" and solve the problem.


Then I start the qemu by "./bin/syz-manager -config=/home/wwqq/desktop/my.cfg"
Unfortunately,there is a failure as below:
VM 0: crash: lost connection to test machine

there is the error log as below:
Warning: Permanently added '[localhost]:10480' (ED25519) to the list of known hosts.
/syz-executor: /lib/libc.so.6: version GLIBC_2.38' not found (required by /syz-executor) /syz-executor: /lib/libc.so.6: version GLIBC_2.33' not found (required by /syz-executor)
/syz-executor: /lib/libc.so.6: version GLIBC_2.27' not found (required by /syz-executor) /syz-executor: /lib/libc.so.6: version GLIBC_2.34' not found (required by /syz-executor)
/syz-executor: /lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /syz-executor)

thanks for your help!


Other information:

VMware

Ubuntu 24.04.1 LTS

qemu 6.2.0

ldd (Ubuntu GLIBC 2.39-0ubuntu8.4) 2.39


Taras Madan

unread,
Mar 28, 2025, 10:29:10 AM3/28/25
to fin, syzkaller
> I delete the compile flag "-static" and solve the problem.

You changed the problem. Syz-executor now requires libraries you don't have on the target platform. It is better to keep "-static" and check what was missing.

--
You received this message because you are subscribed to the Google Groups "syzkaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/syzkaller/tencent_5C8A0DE57C78CA8F3A1451BCD51A60BCF108%40qq.com.

Taras Madan

unread,
Mar 31, 2025, 11:19:12 AM3/31/25
to fin, syzkaller
Could you please try it with the latest syzkaller?
We extended the error message a bit since Mar 26. I hope your error message was extended too.

Taras.

On Sun, Mar 30, 2025 at 5:32 PM fin <11733...@qq.com> wrote:
I don't know how to solve the problem as below if I  keep "-static".Now,I just can't solve two problems at the same time.

make TARGETARCH=arm64

error log:
executor.cc:(.text.ZN10Connection7ConnectEPKcS1[ZN10Connection7ConnectEPKcS1]+0xd8): Warning : Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/wwqq/download/gcc-linaro-14.0.0-2023.06-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/14.0.0/../../../../aarch64-linux-gnu/bin/ld: read-only segment has dynamic relocations

I would appreciate it if you could do me a favour.


------------------ 原始邮件 ------------------
发件人: "Taras Madan" <taras...@google.com>;
发送时间: 2025年3月28日(星期五) 晚上10:28
收件人: "fin"<11733...@qq.com>;
抄送: "syzkaller"<syzk...@googlegroups.com>;
主题: Re: failed to start qemu
Reply all
Reply to author
Forward
0 new messages