when I install the virtul machine , there is a assertion in taintcheck_opt.c.

33 views
Skip to first unread message

jodie...@gmail.com

unread,
Dec 14, 2018, 12:18:31 AM12/14/18
to decaf-platform-discuss
Hi,
I try to install ubuntu.9.04 on qemu with Decaf, using comands as following:
./qemu-system-i386 -monitor stdio -m 512 -netdev user,id=mynet -device rtl8139,netdev=mynet ./ubuntu904_new.img -cdrom ./ubuntu-9.04-desktop-i386.iso -boot d

However, I meet a error in taintcheck_opt.c:
decaf/shared/tainting/taintcheck_opt.c:105: taintcheck_disk_check: Assertion `offset + size <= 512' failed.
Aborted (core dumped)

If I remove the commands:
-cdrom ./ubuntu-9.04-desktop-i386.iso -boot d
there is not bootable device and I also could not start the guest .

And I can start xp successfully in qemu .

Can you give me some advices about how to solve this problem ? Maybe the ubuntu-9.04-desktop-i386.iso does not match the ubuntu904_new.img?

Heng Yin

unread,
Dec 14, 2018, 1:04:45 AM12/14/18
to decaf-platf...@googlegroups.com
Which version of decaf did you try?

--
You received this message because you are subscribed to the Google Groups "decaf-platform-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-di...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jodie...@gmail.com

unread,
Dec 14, 2018, 3:01:14 AM12/14/18
to decaf-platform-discuss
The version is v1.8 and Bugfix (#56).

在 2018年12月14日星期五 UTC+8下午2:04:45,Heng Yin写道:
To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-discuss+unsub...@googlegroups.com.

Heng Yin

unread,
Dec 14, 2018, 12:24:52 PM12/14/18
to decaf-platf...@googlegroups.com
can you show the back trace from gdb?
>>> To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-di...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "decaf-platform-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-di...@googlegroups.com.

jodie...@gmail.com

unread,
Dec 16, 2018, 8:57:13 PM12/16/18
to decaf-platform-discuss
Hi,
the back trace is as following:
#0  0x00007fffe0c97428 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007fffe0c9902a in __GI_abort () at abort.c:89
#2  0x00007fffe0c8fbd7 in __assert_fail_base (fmt=<optimized out>, 
    assertion=assertion@entry=0x5555558eb9d0 "offset + size <= 512", 
    file=file@entry=0x5555558eb988 "/home/ying/Documents/decaf/DECAF/decaf/shared/tainting/taintcheck_opt.c", line=line@entry=105, 
    function=function@entry=0x5555558eb9f0 <__PRETTY_FUNCTION__.19633> "taintcheck_disk_check") at assert.c:92
#3  0x00007fffe0c8fc82 in __GI___assert_fail (
    assertion=assertion@entry=0x5555558eb9d0 "offset + size <= 512", 
    file=file@entry=0x5555558eb988 "/home/ying/Documents/decaf/DECAF/decaf/shared/tainting/taintcheck_opt.c", line=line@entry=105, 
    function=function@entry=0x5555558eb9f0 <__PRETTY_FUNCTION__.19633> "taintcheck_disk_check") at assert.c:101
#4  0x00005555557cad8d in taintcheck_disk_check (taint=<optimized out>, 
    index=<optimized out>, offset=<optimized out>, size=<optimized out>, 
    bs=<optimized out>)
    at /home/ying/Documents/decaf/DECAF/decaf/shared/tainting/taintcheck_opt.c:105
#5  0x0000555555684aca in ide_data_readw (opaque=<optimized out>, 
    addr=<optimized out>)
    at /home/ying/Documents/decaf/DECAF/decaf/hw/ide/core.c:1690
#6  0x000055555576c14e in memory_region_iorange_read (iorange=0x5555569b3c60, 
    offset=0, width=2, data=0x7ffefb8654d0)
    at /home/ying/Documents/decaf/DECAF/decaf/memory.c:419
#7  0x00005555557687c7 in ioport_readw_thunk (opaque=<optimized out>, 
    addr=<optimized out>)
    at /home/ying/Documents/decaf/DECAF/decaf/ioport.c:194
#8  0x0000555555769063 in ioport_read (address=<optimized out>, index=1)
    at /home/ying/Documents/decaf/DECAF/decaf/ioport.c:69
#9  cpu_inw (addr=<optimized out>)
    at /home/ying/Documents/decaf/DECAF/decaf/ioport.c:303
#10 0x0000555555778a49 in helper_inw (port=<optimized out>)
    at /home/ying/Documents/decaf/DECAF/decaf/target-i386/op_helper.c:685
#11 0x0000000040094092 in ?? ()
#12 0x0000000000000000 in ?? ()



在 2018年12月15日星期六 UTC+8上午1:24:52,Heng Yin写道:
can you show the back trace from gdb?
On Fri, Dec 14, 2018 at 12:01 AM <jodie...@gmail.com> wrote:
>
> The version is v1.8 and Bugfix (#56).
>
> 在 2018年12月14日星期五 UTC+8下午2:04:45,Heng Yin写道:
>>
>> Which version of decaf did you try?
>>
>> On Thu, Dec 13, 2018, 9:18 PM <jodie...@gmail.com> wrote:
>>>
>>> Hi,
>>> I try to install ubuntu.9.04 on qemu with Decaf, using comands as following:
>>> ./qemu-system-i386 -monitor stdio -m 512 -netdev user,id=mynet -device rtl8139,netdev=mynet ./ubuntu904_new.img -cdrom ./ubuntu-9.04-desktop-i386.iso -boot d
>>>
>>> However, I meet a error in taintcheck_opt.c:
>>> decaf/shared/tainting/taintcheck_opt.c:105: taintcheck_disk_check: Assertion `offset + size <= 512' failed.
>>> Aborted (core dumped)
>>>
>>> If I remove the commands:
>>> -cdrom ./ubuntu-9.04-desktop-i386.iso -boot d
>>> there is not bootable device and I also could not start the guest .
>>>
>>> And I can start xp successfully in qemu .
>>>
>>> Can you give me some advices about how to solve this problem ? Maybe the ubuntu-9.04-desktop-i386.iso does not match the ubuntu904_new.img?
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "decaf-platform-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-discuss+unsub...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "decaf-platform-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to decaf-platform-discuss+unsub...@googlegroups.com.

Zhenxiao Qi

unread,
Dec 18, 2018, 12:22:34 AM12/18/18
to decaf-platform-discuss
Hi,
From the command you used, it seems like you are installing Ubuntu on an image using DECAF, not booting an image with DECAF. In this case, if you remove `-cdrom`, there will be no bootable device. Although I did not see that error in taintcheck_opt.c, I would suggest you run the following commands to install ubuntu on the image(you do not have to use DECAF to do this step) and run the image with DECAF.
1. install ubuntu on the image you created using QEMU.
`qemu-system-i386 -m 2048 -enable-kvm ./ubuntu904_new.img -cdrom ./ubuntu-9.04-desktop-i386.iso` 
in this step, I enable kvm to accelerate the install.
2. goto DECAF folder and run the following cmds:
`./i386-softmmu/qemu-system-i386 -m 2048 -hda /path/to/the/image -monitor stdio`

The .iso and .img or .qcow2 are independent. to run a virtual machine with qemu, you need to first create an empty image( .img/.qcow file) and install the .iso on it. I would suggest you run the following cmd to create an empty image if you are using a higher version of qemu.
`qemu-img create -f qcow2 -o compat=0.10 image_name.qcow2 20G`
and then install the ubuntu on the created image.
Reply all
Reply to author
Forward
0 new messages