From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHc2t-0000iz-K3 for qemu-devel@nongnu.org; Mon, 18 Mar 2013 11:32:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHc2i-0000hs-QF for qemu-devel@nongnu.org; Mon, 18 Mar 2013 11:32:19 -0400 Received: from ssl.dlhnet.de ([91.198.192.8]:35663 helo=ssl.dlh.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHc2i-0000hO-Hs for qemu-devel@nongnu.org; Mon, 18 Mar 2013 11:32:08 -0400 Message-ID: <5147337C.8030000@dlhnet.de> Date: Mon, 18 Mar 2013 16:32:12 +0100 From: Peter Lieven MIME-Version: 1.0 References: <5146F57E.9010502@dlhnet.de> <8738vs50qb.fsf@blackfin.pond.sub.org> In-Reply-To: <8738vs50qb.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu segfault parsing iscsi options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: "qemu-devel@nongnu.org" , ronnie sahlberg On 18.03.2013 13:52, Markus Armbruster wrote: > Peter Lieven writes: > >> Hi, >> >> with recent qemu from git qemu segfaults with the following commandline: >> >> x86_64-softmmu/qemu-system-x86_64 -iscsi test >> >> qemu-system-x86_64: -iscsi test: There is no option group 'iscsi' >> Speicherzugriffsfehler (Speicherabzug geschrieben) >> >> It seems that there is something missing regarding the iscsi options >> in qemu-option.hx. >> >> This was working with qemu-kvm-1.2.0. > > Works for me with current master 225dc991. > for me it doesn't... ~/git/qemu$ git log -1 --oneline 225dc99 s390: Fix cpu refactoring fallout. there is definetly missing some parts in qemu-options.hx for -iscsi ~/git/qemu$ gdb x86_64-softmmu/qemu-system-x86_64 GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/lieven/git/qemu/x86_64-softmmu/qemu-system-x86_64...done. (gdb) r -iscsi bla Starting program: /home/lieven/git/qemu/x86_64-softmmu/qemu-system-x86_64 -iscsi bla [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". qemu-system-x86_64: -iscsi bla: There is no option group 'iscsi' Program received signal SIGSEGV, Segmentation fault. 0x000055555591066f in qemu_opts_create (list=0x0, id=0x0, fail_if_exists=1, errp=0x7fffffffd968) at util/qemu-option.c:790 790 } else if (list->merge_lists) { (gdb) bt full #0 0x000055555591066f in qemu_opts_create (list=0x0, id=0x0, fail_if_exists=1, errp=0x7fffffffd968) at util/qemu-option.c:790 opts = 0x0 #1 0x0000555555911048 in opts_parse (list=0x0, params=0x7fffffffe50d "bla", permit_abbrev=0, defaults=false) at util/qemu-option.c:958 firstname = 0x0 value = "\000\333\377\377\377\177\000\000H\352\375\367\377\177\000\000\330H'\366\377\177\000\000\256\022\217\367\377\177\000\000\000\000\000\000\000\000\000\000H\352\375\367\377\177\000\000\300\031\376\367\377\177\000\000\065\367\216\367\377\177\000\000\370I'\366\377\177\000\000h\002\216\367\377\177\000\000\000\000\000\000\001\000\000\000\202\b\000\000\001\000\000\000H\352\375\367\377\177\000\000\b\255\377\367\377\177\000\000p\333\377\377\377\177\000\000\207\360\226|\000\000\000\000H\352\375\367\377\177\000\000\220\333\377\377\377\177\000\000\260\251\377\367\377\177\000\000#E\336\367\377\177\000\000\000\000\000\000\000\000\000\000H\352\375\367\377\177\000\000\001\000\000\000\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\260\251\377\367\377\177\000\000\000\000\000\000\000\000\000\000P", '\000' , "\b\255\377\367\377\177\000\000[\000\000\000\001\000\000\000w\000\000\000|", '\000' , "\b\255\377\367\377\177\000\000!\000\000\000\001", '\000' , "(*\226UUU"... id = 0x0 p = 0x0 opts = 0xffffffff local_err = 0x0 __PRETTY_FUNCTION__ = "opts_parse" #2 0x0000555555911126 in qemu_opts_parse (list=0x0, params=0x7fffffffe50d "bla", permit_abbrev=0) at util/qemu-option.c:979 No locals. #3 0x00005555557d83a8 in main (argc=3, argv=0x7fffffffe218, envp=0x7fffffffe238) at vl.c:3204 popt = 0x555555c9ae58 i = 64 snapshot = 0 linux_boot = 0 icount_option = 0x0 initrd_filename = 0x7fff00000001
kernel_filename = 0x0 kernel_cmdline = 0x7fff00000001
boot_devices = '\000' ds = 0x7ffff7ffa9b0 cyls = 0 heads = 0 secs = 0 translation = 0 hda_opts = 0x0 opts = 0x7fff00000001 machine_opts = 0x7fffffffe0a0 olist = 0x0 optind = 3 optarg = 0x7fffffffe50d "bla" loadvm = 0x0 machine = 0x555555cf1bc0 cpu_model = 0x0 vga_model = 0x555555945fd6 "none" pid_file = 0x0 incoming = 0x0 show_vnc_port = 0 defconfig = true userconfig = true log_mask = 0x0 log_file = 0x0 mem_trace = {malloc = 0x5555557d710f , realloc = 0x5555557d7167 , free = 0x5555557d71ce , calloc = 0, try_malloc = 0, try_realloc = 0} trace_events = 0x0 trace_file = 0x0 args = {ram_size = 19, boot_device = 0x7ffff7ffad08 "\200\345\377\367\377\177", kernel_filename = 0x7fffffffdfd0 "", kernel_cmdline = 0xf5e616f3
, initrd_filename = 0x7ffff7fdea48 "\227*\217\367\377\177", cpu_model = 0x7fffffffdff0 "["}