[cmake-developers] Random hang of building process: deedlock in cmake.
Hi all! Today I caught again a hang of local building process. I used debugger and strace in steps to catch a bug. so: $ pstree ... | | └─gbs───sh───depanneur─┬─sh───sudo───build─┬─perl │ │ │ └─su───rpmbuild───sh───cmake───gmake ... $ ps ax | grep gmake ... 1105 ?Z 0:00 [gmake] defunct ... $ ps ax | grep cmake ... 760 ?S 0:01 /usr/bin/cmake ... ... $ sudo strace -p 760 [sudo] password for vitalii.chernookyi: Process 760 attached - interrupt to quit select(4, [3], NULL, NULL, NULL^C unfinished ... Process 760 detached $ ls -l /proc/760/fd/3 lr-x-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:41 /proc/760/fd/3 - pipe:[1670438] $ ls -l /proc/*/fd/* | grep 'pipe:\[1670438\]' lr-x-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:41 /proc/760/fd/3 - pipe:[1670438] l-wx-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:42 /proc/760/fd/4 - pipe:[1670438] $ sudo gdb -p 760 ... 0x60138543 in ?? () (gdb) bt #0 0x60138543 in ?? () #1 0x6004a4ce in ?? () #2 0x6004e2fe in ?? () #3 0x60040309 in ?? () #4 0x600039ee in ?? () #5 0x600d9584 in ?? () #6 0x60003f41 in ?? () #7 0x7fff61dc5e88 in ?? () #8 0x in ?? () (gdb) quit ... $ So we caught a deedlock. Do anyone have any idea how to fix it? -- *Vitaly Chernooky | Senior Developer - Product Engineering and Development* GlobalLogic P *+380.44.4929695 ext.1136* M *+380.98.7920568* S cvv_2k www.globallogic.com http://www.globallogic.com/email_disclaimer.txt -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] [Dev] Random hang of building process: deedlock in cmake.
Alexander, Yes - you are right. It's just excellent illustration why I hate pipes. So CMake guys can remove this crap from their code and use socketpair() or like instead. \\wbr On Fri, Jul 11, 2014 at 12:33 PM, Kanevskiy, Alexander alexander.kanevs...@intel.com wrote: On 11/07/14 12:15 , Vitaly Chernooky vitalii.chernoo...@globallogic.com wrote: This looks like old “good” bug in qemu that sometimes re-appear in certain combination of host environment and sources you’re building: https://bugs.launchpad.net/qemu/+bug/955379 Hi all! Today I caught again a hang of local building process. I used debugger and strace in steps to catch a bug. so: $ pstree ... | | └─gbs───sh───depanneur─┬─sh───sudo───build─┬─perl │ │ │ └─su───rpmbuild───sh───cmake───gmake ... $ ps ax | grep gmake ... 1105 ?Z 0:00 [gmake] defunct ... $ ps ax | grep cmake ... 760 ?S 0:01 /usr/bin/cmake ... ... $ sudo strace -p 760 [sudo] password for vitalii.chernookyi: Process 760 attached - interrupt to quit select(4, [3], NULL, NULL, NULL^C unfinished ... Process 760 detached $ ls -l /proc/760/fd/3 lr-x-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:41 /proc/760/fd/3 - pipe:[1670438] $ ls -l /proc/*/fd/* | grep 'pipe:\[1670438\]' lr-x-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:41 /proc/760/fd/3 - pipe:[1670438] l-wx-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:42 /proc/760/fd/4 - pipe:[1670438] $ sudo gdb -p 760 ... 0x60138543 in ?? () (gdb) bt #0 0x60138543 in ?? () #1 0x6004a4ce in ?? () #2 0x6004e2fe in ?? () #3 0x60040309 in ?? () #4 0x600039ee in ?? () #5 0x600d9584 in ?? () #6 0x60003f41 in ?? () #7 0x7fff61dc5e88 in ?? () #8 0x in ?? () (gdb) quit ... $ So we caught a deedlock. Do anyone have any idea how to fix it? -- Vitaly Chernooky | Senior Developer - Product Engineering and Development GlobalLogic P +380.44.4929695 ext.1136 M +380.98.7920568 S cvv_2k www.globallogic.com http://www.globallogic.com http://www.globallogic.com/email_disclaimer.txt -- Best regards, Alexander Kanevskiy. - Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- *Vitaly Chernooky | Senior Developer - Product Engineering and Development* GlobalLogic P *+380.44.4929695 ext.1136* M *+380.98.7920568* S cvv_2k www.globallogic.com http://www.globallogic.com/email_disclaimer.txt -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] [Dev] Random hang of building process: deedlock in cmake.
Also it will be good if every body from us will vote for that bug on launchpad. On Fri, Jul 11, 2014 at 12:54 PM, Vitaly Chernooky vitalii.chernoo...@globallogic.com wrote: Alexander, Yes - you are right. It's just excellent illustration why I hate pipes. So CMake guys can remove this crap from their code and use socketpair() or like instead. \\wbr On Fri, Jul 11, 2014 at 12:33 PM, Kanevskiy, Alexander alexander.kanevs...@intel.com wrote: On 11/07/14 12:15 , Vitaly Chernooky vitalii.chernoo...@globallogic.com wrote: This looks like old “good” bug in qemu that sometimes re-appear in certain combination of host environment and sources you’re building: https://bugs.launchpad.net/qemu/+bug/955379 Hi all! Today I caught again a hang of local building process. I used debugger and strace in steps to catch a bug. so: $ pstree ... | | └─gbs───sh───depanneur─┬─sh───sudo───build─┬─perl │ │ │ └─su───rpmbuild───sh───cmake───gmake ... $ ps ax | grep gmake ... 1105 ?Z 0:00 [gmake] defunct ... $ ps ax | grep cmake ... 760 ?S 0:01 /usr/bin/cmake ... ... $ sudo strace -p 760 [sudo] password for vitalii.chernookyi: Process 760 attached - interrupt to quit select(4, [3], NULL, NULL, NULL^C unfinished ... Process 760 detached $ ls -l /proc/760/fd/3 lr-x-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:41 /proc/760/fd/3 - pipe:[1670438] $ ls -l /proc/*/fd/* | grep 'pipe:\[1670438\]' lr-x-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:41 /proc/760/fd/3 - pipe:[1670438] l-wx-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:42 /proc/760/fd/4 - pipe:[1670438] $ sudo gdb -p 760 ... 0x60138543 in ?? () (gdb) bt #0 0x60138543 in ?? () #1 0x6004a4ce in ?? () #2 0x6004e2fe in ?? () #3 0x60040309 in ?? () #4 0x600039ee in ?? () #5 0x600d9584 in ?? () #6 0x60003f41 in ?? () #7 0x7fff61dc5e88 in ?? () #8 0x in ?? () (gdb) quit ... $ So we caught a deedlock. Do anyone have any idea how to fix it? -- Vitaly Chernooky | Senior Developer - Product Engineering and Development GlobalLogic P +380.44.4929695 ext.1136 M +380.98.7920568 S cvv_2k www.globallogic.com http://www.globallogic.com http://www.globallogic.com/email_disclaimer.txt -- Best regards, Alexander Kanevskiy. - Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- *Vitaly Chernooky | Senior Developer - Product Engineering and Development* GlobalLogic P *+380.44.4929695 ext.1136 %2B380.44.4929695%20ext.1136* M *+380.98.7920568 %2B380.98.7920568* S cvv_2k www.globallogic.com http://www.globallogic.com/email_disclaimer.txt -- *Vitaly Chernooky | Senior Developer - Product Engineering and Development* GlobalLogic P *+380.44.4929695 ext.1136* M *+380.98.7920568* S cvv_2k www.globallogic.com http://www.globallogic.com/email_disclaimer.txt -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] [Dev] Random hang of building process: deedlock in cmake.
Ilya, do you still interested in build logs? I've collected them. \\wbr On Fri, Jul 11, 2014 at 12:29 PM, Ilya Palachev i.palac...@samsung.com wrote: Hi, Vitaly. Maybe your backtrace information will be somehow more useful if you download and unrpm debuginfo and debugsource rpm packages from the repository that you use as default repository in your ~/.gbs.conf If you use native gdb (not in chroot) these RPMs should be unrpm'ed inside root (/) directory, so that new files will appear in directories /usr/lib/debug and /usr/src/debug. I have already noticed cmake's hanging in our build system for many times about 2 yours ago. Maybe it's specific for our environment. Also the output log of cmake will be useful. Does cmake hangs during the search of some libraries? Best regards, Ilya Palachev -- *From:* Vitaly Chernooky vitalii.chernoo...@globallogic.com vitalii.chernoo...@globallogic.com *Sent:* Friday, July 11, 2014 1:15PM *To:* cmake-developers@cmake.org, d...@lists.tizen.org d...@lists.tizen.org d...@lists.tizen.org *Cc:* Andrii Anisov andrii.ani...@globallogic.com andrii.ani...@globallogic.com *Subject:* [Dev] Random hang of building process: deedlock in cmake. Hi all! Today I caught again a hang of local building process. I used debugger and strace in steps to catch a bug. so: $ pstree ... | | └─gbs───sh───depanneur─┬─sh───sudo───build─┬─perl │ │ │ └─su───rpmbuild───sh───cmake───gmake ... $ ps ax | grep gmake ... 1105 ?Z 0:00 [gmake] defunct ... $ ps ax | grep cmake ... 760 ?S 0:01 /usr/bin/cmake ... ... $ sudo strace -p 760 [sudo] password for vitalii.chernookyi: Process 760 attached - interrupt to quit select(4, [3], NULL, NULL, NULL^C unfinished ... Process 760 detached $ ls -l /proc/760/fd/3 lr-x-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:41 /proc/760/fd/3 - pipe:[1670438] $ ls -l /proc/*/fd/* | grep 'pipe:\[1670438\]' lr-x-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:41 /proc/760/fd/3 - pipe:[1670438] l-wx-- 1 vitalii.chernookyi tizendev 64 Jul 11 11:42 /proc/760/fd/4 - pipe:[1670438] $ sudo gdb -p 760 ... 0x60138543 in ?? () (gdb) bt #0 0x60138543 in ?? () #1 0x6004a4ce in ?? () #2 0x6004e2fe in ?? () #3 0x60040309 in ?? () #4 0x600039ee in ?? () #5 0x600d9584 in ?? () #6 0x60003f41 in ?? () #7 0x7fff61dc5e88 in ?? () #8 0x in ?? () (gdb) quit ... $ So we caught a deedlock. Do anyone have any idea how to fix it? -- *Vitaly Chernooky | Senior Developer - Product Engineering and Development* GlobalLogic P *+380.44.4929695 ext.1136 %2B380.44.4929695%20ext.1136* M *+380.98.7920568 %2B380.98.7920568* S cvv_2k www.globallogic.com http://www.globallogic.com/email_disclaimer.txt ___ Dev mailing listDev@lists.tizen.orghttps://lists.tizen.org/listinfo/dev -- *Vitaly Chernooky | Senior Developer - Product Engineering and Development* GlobalLogic P *+380.44.4929695 ext.1136* M *+380.98.7920568* S cvv_2k www.globallogic.com http://www.globallogic.com/email_disclaimer.txt -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers