so calling an ioctl seems to clear the global argc in klibc built with gcc-9
163 if(ioctl (fd, LOOP_GET_STATUS, &loopinfo) == 0) (gdb) bt #0 find_unused_loop_device () at usr/utils/losetup.c:163 #1 0x0000000000401135 in main (argc=2, argv=0x7fffffffe618) at usr/utils/losetup.c:454 (gdb) n 164 someloop++; /* in use */ (gdb) bt #0 find_unused_loop_device () at usr/utils/losetup.c:164 #1 0x0000000000401135 in main (argc=0, argv=0x7fffffffe618) at usr/utils/losetup.c:454 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1850184 Title: losetup -f broken in 2.0.6-1ubuntu2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1850184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs