Author: mvidner
Date: Fri Aug 5 10:55:11 2011
New Revision: 65234
URL: http://svn.opensuse.org/viewcvs/yast?rev=65234&view=rev
Log:
Prevent YaST hanging when threads are used (bnc#708367), backport:
- Log the C backtrace when receiving a signal (FATE#302167).
- avoid y2log in both signal handler and forked children
(bnc#493152)
- Resurrected logging in the signal handler, into
/var/log/YaST2/signal (or ./y2signal.log) (bnc#493152#c33).
- /var/log/YaST2/signal: do not make it executable
Modified:
branches/SuSE-SLE-10-SP3-Branch/core/VERSION
branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc
branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/Y2ProgramComponent.cc
branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/genericfrontend.cc
branches/SuSE-SLE-10-SP3-Branch/core/package/yast2-core.changes
Modified: branches/SuSE-SLE-10-SP3-Branch/core/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/core/VERSION?rev=65234&r1=65233&r2=65234&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP3-Branch/core/VERSION (original)
+++ branches/SuSE-SLE-10-SP3-Branch/core/VERSION Fri Aug 5 10:55:11 2011
@@ -1 +1 @@
-2.13.45
+2.13.45.1
Modified: branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc?rev=65234&r1=65233&r2=65234&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc (original)
+++ branches/SuSE-SLE-10-SP3-Branch/core/agent-system/src/ShellCommand.cc Fri Aug 5 10:55:11 2011
@@ -117,7 +117,7 @@
FILE *stream2 = fdopen (pipe2[0], "r");
if (stream2 == 0)
{
- y2error ("stream2 fdopen error");
+ y2error ("stream2 fdopen error");
_exit (1);
}
close (pipe2[1]);
@@ -126,7 +126,8 @@
{
if (out)
fputs (s2, out);
- y2debug ("%s", s2);
+ //bnc#493152#c24
+ //y2debug ("%s", s2);
}
fclose (stream2);
@@ -154,7 +155,7 @@
else
ret = WTERMSIG (ret) + 128;
- y2debug ("Exit status is %d", ret);
+ //y2debug ("Exit status is %d", ret);
if (!tempdir.empty ())
{
Modified: branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/Y2ProgramComponent.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/Y2ProgramComponent.cc?rev=65234&r1=65233&r2=65234&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/Y2ProgramComponent.cc (original)
+++ branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/Y2ProgramComponent.cc Fri Aug 5 10:55:11 2011
@@ -291,13 +291,14 @@
// Call chroot if desired.
if (chroot_path == "" || chroot_path == "/") {
- y2debug ("Going to execute %s", bin_file.c_str ());
+ //bnc#493152#c24
+ //y2debug ("Going to execute %s", bin_file.c_str ());
} else {
- y2debug ("Going to execute %s with chroot %s", bin_file.c_str (),
- chroot_path.c_str ());
+ /*y2debug ("Going to execute %s with chroot %s", bin_file.c_str (),
+ chroot_path.c_str ());*/
if (chroot (chroot_path.c_str ()) != 0) {
- y2error ("Cannot chroot to %s: %s", chroot_path.c_str (),
- strerror (errno));
+ /*y2error ("Cannot chroot to %s: %s", chroot_path.c_str (),
+ strerror (errno));*/
_exit (5);
}
@@ -307,7 +308,7 @@
execv (bin_file.c_str (), argv); // execute program
// this code is only reached if exec failed
- y2error ("Cannot execute external program %s", bin_file.c_str ());
+ //y2error ("Cannot execute external program %s", bin_file.c_str ());
_exit (5); // No sense in returning! I am forked away!!
}
Modified: branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/genericfrontend.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/genericfrontend.cc?rev=65234&r1=65233&r2=65234&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/genericfrontend.cc (original)
+++ branches/SuSE-SLE-10-SP3-Branch/core/liby2/src/genericfrontend.cc Fri Aug 5 10:55:11 2011
@@ -28,6 +28,10 @@
#include