﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-垃圾回收站</title><link>http://www.cppblog.com/zeropool/</link><description>少壮不努力，一辈子在内地。。。</description><language>zh-cn</language><lastBuildDate>Thu, 09 Apr 2026 12:53:56 GMT</lastBuildDate><pubDate>Thu, 09 Apr 2026 12:53:56 GMT</pubDate><ttl>60</ttl><item><title>Memory for crash kernel (0x0 to 0x0) notwithin permissible range</title><link>http://www.cppblog.com/zeropool/archive/2011/08/06/152613.html</link><dc:creator>zeropool</dc:creator><author>zeropool</author><pubDate>Sat, 06 Aug 2011 00:51:00 GMT</pubDate><guid>http://www.cppblog.com/zeropool/archive/2011/08/06/152613.html</guid><wfw:comment>http://www.cppblog.com/zeropool/comments/152613.html</wfw:comment><comments>http://www.cppblog.com/zeropool/archive/2011/08/06/152613.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zeropool/comments/commentRss/152613.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zeropool/services/trackbacks/152613.html</trackback:ping><description><![CDATA[<div id="blog_text" class="cnt">在vmware上创建了虚拟机，操作系统是Red Hat Enterprise Linux <a href="http://hi.baidu.com/wuxind/blog/item/:;" target="_self" onxxxxx="javascript:tagshow(event, 'Server');"><u><strong><font color="#5fa207">Server</font></strong></u></a> release 5.3，当启动虚拟机时出现下面信息： 
<p>Memory for crash kernel (0x0 to 0x0) notwithin permissible range</p>
<p><strong>解决办法：</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这个信息由于没有配置<a href="http://hi.baidu.com/wuxind/blog/item/:;" target="_self" onxxxxx="javascript:tagshow(event, 'kdump');"><u><strong><font color="#5fa207">kdump</font></strong></u></a>服务的原因，并没有什么危害可以忽略。<font size="2">kdump是一个新的，而且非常可信赖的内核崩溃转储机制。我们可以采用下面的图形界面进行配置和启用，步骤如下：</font></p>
<p><font size="2">（1）配置kdump。</font></p>
<p><font size="2">选择菜单&#8220;Applications&#8221;&#8212;&#8212;&#8220;system tools&#8221;&#8212;&#8212;&#8220;kdump&#8221;，弹出&#8220;Kernel Dump Configuration&#8221;窗口，选中Enable kdump，设置New kdump Memory(MB): 128MB（推荐大小），location:file:///var/crash(也可以设置其他位置，用来存放当系统崩溃时的转储镜像)。</font></p>
<p><font size="2">（2）重新启动系统，错误消失。</font></p></div><img src ="http://www.cppblog.com/zeropool/aggbug/152613.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zeropool/" target="_blank">zeropool</a> 2011-08-06 08:51 <a href="http://www.cppblog.com/zeropool/archive/2011/08/06/152613.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>gcc与glibc的关系及glibc版本查看</title><link>http://www.cppblog.com/zeropool/archive/2011/08/05/152584.html</link><dc:creator>zeropool</dc:creator><author>zeropool</author><pubDate>Fri, 05 Aug 2011 13:33:00 GMT</pubDate><guid>http://www.cppblog.com/zeropool/archive/2011/08/05/152584.html</guid><wfw:comment>http://www.cppblog.com/zeropool/comments/152584.html</wfw:comment><comments>http://www.cppblog.com/zeropool/archive/2011/08/05/152584.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zeropool/comments/commentRss/152584.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zeropool/services/trackbacks/152584.html</trackback:ping><description><![CDATA[<p>glibc是什么,以及与gcc的关系？<br />glibc是gnu发布的libc库，也即c运行库。glibc是linux 系统中最底层的api（应用程序开发接口），几乎其它任何的运行库都会倚赖于glibc。glibc除了封装linux操作系统所提供的系统服务外，它本 身也提供了许多其它一些必要功能服务的实现，主要的如下：<br />（1）string，字符串处理<br />（2）signal，信号处理<br />（3）dlfcn，管理共享库的动态加载<br />（4）direct，文件目录操作<br />（5）elf，共享库的动态加载器，也即interpreter<br />（6）iconv，不同字符集的编码转换<br />（7）inet，socket接口的实现<br />（8）intl，国际化，也即gettext的实现<br />（9）io<br />（10）linuxthreads<br />（11）locale，本地化<br />（12）login，虚拟终端设备的管理，及系统的安全访问<br />（13）malloc，动态内存的分配与管理<br />（14）nis<br />（15）stdlib，其它基本功能<br />gcc 是编译器，基本上 Linux 下所有的程序（包括内核）都是 gcc 编译的，libc 当然也是。<br />gcc 和 libc 是互相依赖的两个软件，它们合作的方式类似 Linux 系统的 自举。先在一个可以运行的带有老 libc 和 gcc 的系统上，用老 gcc 编译出一个新版本的 gcc + 老 libc，再用这个新 gcc 编译出一个新 gcc + 新 libc，再用这套东东编译整个新系统。</p>
<p><br /></p>
<p>glibc版本查看</p><pre>4.9.	How can I find out which version of glibc I am using in the moment?

{UD} If you want to find out about the version from the command line simply
run the libc binary.  This is probably not possible on all platforms but
where it is simply locate the libc DSO and start it as an application.  On
Linux like

	/lib/libc.so.6

This will produce all the information you need.

What always will work is to use the API glibc provides.  Compile and run the
following little program to get the version information:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include &lt;stdio.h&gt;
#include &lt;gnu/libc-version.h&gt;
int main (void) { puts (gnu_get_libc_version ()); return 0; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This intece can also obviously be used to perform tests at runtime if
this should be necessary.</pre>
<p><br /></p>Just execute:<br /><br />ldd --version<br /><br />which comes with glibc package<img src ="http://www.cppblog.com/zeropool/aggbug/152584.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zeropool/" target="_blank">zeropool</a> 2011-08-05 21:33 <a href="http://www.cppblog.com/zeropool/archive/2011/08/05/152584.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>编程&amp;人生</title><link>http://www.cppblog.com/zeropool/archive/2011/08/05/152536.html</link><dc:creator>zeropool</dc:creator><author>zeropool</author><pubDate>Fri, 05 Aug 2011 04:30:00 GMT</pubDate><guid>http://www.cppblog.com/zeropool/archive/2011/08/05/152536.html</guid><wfw:comment>http://www.cppblog.com/zeropool/comments/152536.html</wfw:comment><comments>http://www.cppblog.com/zeropool/archive/2011/08/05/152536.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/zeropool/comments/commentRss/152536.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zeropool/services/trackbacks/152536.html</trackback:ping><description><![CDATA[随便叽歪几句：<br />人生就像程序中的loop，纵然可以while,但也是do {} while (0); 只有一次机会，while的时候，随时可能break..然后exit, 所以不要老玩try..catch这些玩火的事,玩的多了，一个exception<br />你就挂掉了，连exit最后一个可以操作的函数你都没办法表白,所以, 少一些global variables这些牵绊你人生的阻碍，<br />多一些if..else来做计划，合适的用goto来做果断的判断，弄个timer thread来定时检查反省自己，再来个memory pool来管理自己的财产，还要个performance moniter来及时爱护自己的身体，多一些idel sleep来让自己放松一下, 多一些test..demo让自己在做大的规划前小小的测试一下，最后，完美的用exit来诠释你的人生。exit之前，好好检查一下以上这些thread、<br />pool有没有完美释放，不要给人生留下遗憾，要不然，纵然你exit了，你的运行环境environment相当于家庭也会来一个exception，搞不好让你的家也受牵连，你说你纠结不。。。<img src ="http://www.cppblog.com/zeropool/aggbug/152536.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zeropool/" target="_blank">zeropool</a> 2011-08-05 12:30 <a href="http://www.cppblog.com/zeropool/archive/2011/08/05/152536.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>