On 10.10.2017 09:57, Marek Vasut wrote: > On 10/10/2017 09:20 AM, Thomas Huth wrote: >> Hi Chris, hi Marek, > > Hi, > >> I recently noticed that when I start qemu-system-nios2 (build from the >> very latest git master branch) and then type "quit" at the monitor (or >> simply try to close the GTK window), QEMU does not shut down right and >> hangs somewhere in pause_all_vcpus() forever. >> Do you have any idea what might be wrong here? > > Nope, can you debug it and ev. send patch ?
Backtrace looks like this: #0 0x00007ffff7931945 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0 #1 0x00005555557cf9c5 in qemu_cond_wait (cond=cond@entry=0x555555b5f9c0 <qemu_pause_cond>, mutex=mutex@entry=0x555555b5fa40 <qemu_global_mutex>) at util/qemu-thread-posix.c:161 #2 0x0000555555606ee8 in pause_all_vcpus () at cpus.c:1620 #3 0x00005555555cc43a in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4906 Looks like the CPU does not get stopped right? Unfortunately, I've got no good clue how to debug that further right now... > We're talking about git HEAD, right ? Yes. Thomas