Public bug reported: Dear gbutils developers,
Thank you very much for such excellent set of tools! I would like to supply a bug in ARM architecture. I found the bug in gblreg program, but I think, that it affects all the utils. Step to reproduce: Ubuntu 16.04 ARM. Run gblreg program on any dataset with any options (except -h) and the program hangs. The origin of the bug: ARM architecture, by default treat char as unsigned variable, so loop while((opt=getopt_long(argc,argv,"v:hF:M:O:w",gb_long_options, &gb_option_index))!=EOF) will be infinite as EOF is -1 and opt is not negative value by the definition. Possible solution. 1) add -fsigned-char option to compiler. The easiest way, but can affect the rest of the code possibly creates new bugs. 2) Change char opt to signed char opt. 3) The best way from my point of view is to change char opt to int, as getopt function returns native. Sincerely yours, Kirill Okhotnikov. ** Affects: gbutils (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1752835 Title: gbutils ARM bug (programs freezes) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gbutils/+bug/1752835/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs