<div dir="ltr"><div>Ilya,</div><div><br></div><div>do you still interested in build logs?</div><div><br></div><div>I've collected them.</div><div><br></div><div>\\wbr</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jul 11, 2014 at 12:29 PM, Ilya Palachev <span dir="ltr"><<a href="mailto:i.palachev@samsung.com" target="_blank">i.palachev@samsung.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi, Vitaly.<br>
Maybe your backtrace information will be somehow more useful if
you download and unrpm<br>
"debuginfo" and "debugsource" rpm packages from the repository
that you use as default repository in your ~/.gbs.conf<br>
<br>
If you use native gdb (not in chroot) these RPMs should be
unrpm'ed inside root (/) directory, so that new files<br>
will appear in directories /usr/lib/debug and /usr/src/debug.<br>
<br>
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.<br>
<br>
Also the output log of cmake will be useful. Does cmake hangs
during the search of some libraries?<br>
<br>
Best regards,<br>
Ilya Palachev<br>
<hr><br>
<b>From:</b> Vitaly Chernooky
<a href="mailto:vitalii.chernookyi@globallogic.com" target="_blank"><vitalii.chernookyi@globallogic.com></a><br>
<b>Sent:</b> Friday, July 11, 2014 1:15PM<br>
<b>To:</b> <a href="mailto:cmake-developers@cmake.org" target="_blank">cmake-developers@cmake.org</a>, <a href="mailto:dev@lists.tizen.org" target="_blank">dev@lists.tizen.org</a>
<a href="mailto:dev@lists.tizen.org" target="_blank"><dev@lists.tizen.org></a><br>
<b>Cc:</b> Andrii Anisov <a href="mailto:andrii.anisov@globallogic.com" target="_blank"><andrii.anisov@globallogic.com></a><br>
<b>Subject:</b> [Dev] Random hang of building process: deedlock in
cmake.<br>
<br>
</div><div><div class="h5">
<div dir="ltr">Hi all!
<div><br>
</div>
<div>Today I caught again a hang of local building process.</div>
<div><br>
</div>
<div>I used debugger and strace in steps to catch a bug.</div>
<div><br>
</div>
<div>so:</div>
<div><br>
</div>
<div><font face="courier new, monospace" size="1">$ pstree</font></div>
<div><font face="courier new, monospace" size="1">... </font></div>
<div><font face="courier new, monospace" size="1">
<div> | |
└─gbs───sh───depanneur─┬─sh───sudo───build─┬─perl</div>
<div> │ │ │
└─su───rpmbuild───sh───cmake───gmake</div>
<div>...</div>
<div>$ ps ax | grep gmake</div>
<div>...</div>
<div>1105 ? Z 0:00 [gmake] <defunct><br>
</div>
<div>...</div>
<div>$ ps ax | grep cmake</div>
<div>...</div>
<div> 760 ? S 0:01 /usr/bin/cmake ...<br>
</div>
<div>...</div>
<div>$ sudo strace -p 760</div>
<div>
<div>[sudo] password for vitalii.chernookyi:
</div>
<div>Process 760 attached - interrupt to quit</div>
<div>select(4, [3], NULL, NULL, NULL^C <unfinished
...>
</div>
<div>Process 760 detached</div>
<div>$ ls -l /proc/760/fd/3
</div>
<div>lr-x------ 1 vitalii.chernookyi tizendev 64 Jul 11
11:41 /proc/760/fd/3 -> pipe:[1670438]</div>
</div>
<div>$ ls -l /proc/*/fd/* | grep 'pipe:\[1670438\]'</div>
<div>
<div>lr-x------ 1 vitalii.chernookyi tizendev 64 Jul 11
11:41 /proc/760/fd/3 -> pipe:[1670438]</div>
<div>l-wx------ 1 vitalii.chernookyi tizendev 64 Jul 11
11:42 /proc/760/fd/4 -> pipe:[1670438]
</div>
</div>
<div>$ sudo gdb -p 760</div>
<div>...</div>
<div>
<div>0x0000000060138543 in ?? ()
</div>
<div>(gdb) bt</div>
<div>#0 0x0000000060138543 in ?? ()
</div>
<div>#1 0x000000006004a4ce in ?? ()</div>
<div>#2 0x000000006004e2fe in ?? ()
</div>
<div>#3 0x0000000060040309 in ?? ()</div>
<div>
#4 0x00000000600039ee in ?? ()
</div>
<div>#5 0x00000000600d9584 in ?? ()</div>
<div>#6 0x0000000060003f41 in ?? ()
</div>
<div>#7 0x00007fff61dc5e88 in ?? ()</div>
<div>#8 0x0000000000000000 in ?? ()
</div>
<div>
(gdb) quit
<br>
</div>
</div>
<div>...</div>
<div>$</div>
</font></div>
<div>
<font face="courier new, monospace" size="1"><br>
</font></div>
<div><font face="courier new, monospace" size="1"><br>
</font></div>
<div>So we caught a deedlock.<br>
<br>
Do anyone have any idea how to fix it?</div>
<div><br>
<div>
<div><br>
</div>
-- <br>
<div dir="ltr">
<div><b><font color="#000000">Vitaly Chernooky | Senior
Developer - Product Engineering and Development</font></b></div>
<div>GlobalLogic</div>
<div>P <font color="#0000ff"><u><a href="tel:%2B380.44.4929695%20ext.1136" value="+380444929695" target="_blank">+380.44.4929695 ext.1136</a></u></font>
M <font color="#0000ff"><u><a href="tel:%2B380.98.7920568" value="+380987920568" target="_blank">+380.98.7920568</a></u></font> S
cvv_2k</div>
<div><a href="http://www.globallogic.com" target="_blank">www.globallogic.com</a></div>
<div><br>
</div>
<div><a href="http://www.globallogic.com/email_disclaimer.txt" target="_blank">http://www.globallogic.com/email_disclaimer.txt</a></div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Dev mailing list
<a href="mailto:Dev@lists.tizen.org" target="_blank">Dev@lists.tizen.org</a>
<a href="https://lists.tizen.org/listinfo/dev" target="_blank">https://lists.tizen.org/listinfo/dev</a>
</pre>
<br>
<br>
<div> </div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><b><font color="#000000">Vitaly Chernooky | Senior Developer - Product Engineering and Development</font></b></div><div>GlobalLogic</div><div>
P <font color="#0000ff"><u>+380.44.4929695 ext.1136</u></font> M <font color="#0000ff"><u>+380.98.7920568</u></font> S cvv_2k</div><div><a href="http://www.globallogic.com" target="_blank">www.globallogic.com</a></div><div>
<br></div><div><a href="http://www.globallogic.com/email_disclaimer.txt" target="_blank">http://www.globallogic.com/email_disclaimer.txt</a></div></div>
</div>