Update Question 14.20:

- Unfold and mark up error message in the question
- Use the .Nm scheme for ppp(8) and mark up with <application>
- Rework and mark up ppp(8) sources installation description
- Remove &amp; from last sentence of the answer

Reviewed by:  trhodes
Approved by:  gabor
This commit is contained in:
Gabor Pali 2008-07-05 02:32:30 +00:00
parent bc860607a3
commit ed351a7940
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32443

View file

@ -8952,30 +8952,26 @@ ATDT1234567</programlisting>
<qandaentry>
<question id="ppp-segfault-nocore">
<para>Why does &man.ppp.8; get a seg-fault, but I see no
<para>Why does &man.ppp.8; get a <errorname>Segmentation fault</errorname>, but I see no
<filename>ppp.core</filename> file?</para>
</question>
<answer>
<para>Ppp (or any other program for that matter) should
<para>The <application>ppp</application> utility (or any other program for that matter) should
never dump core. Because &man.ppp.8; runs with an
effective user id of 0, the operating system will not
write &man.ppp.8;'s core image to disk before terminating
effective user&nbsp;ID of <literal>0</literal>, the operating system will not
write core image of &man.ppp.8; to disk before terminating
it. If, however &man.ppp.8; is actually terminating due
to a segmentation violation or some other signal that
normally causes core to be dumped,
<emphasis>and</emphasis> you are sure you are using the
latest version (see the start of this section), then you
should do the following:</para>
should install the system sources and do the following:</para>
<screen>&prompt.user; <userinput>tar xfz ppp-*.src.tar.gz</userinput>
&prompt.user; <userinput>cd ppp*/ppp</userinput>
&prompt.user; <userinput>echo STRIP= &gt;&gt;Makefile</userinput>
&prompt.user; <userinput>echo CFLAGS+=-g &gt;&gt;Makefile</userinput>
&prompt.user; <userinput>make clean all</userinput>
&prompt.user; <userinput>su</userinput>
&prompt.root; <userinput>make install</userinput>
&prompt.root; <userinput>chmod 555 /usr/sbin/ppp</userinput></screen>
<screen>&prompt.root; <userinput><command>cd</command> <filename role="directory">/usr/src/usr.sbin/ppp</filename></userinput>
&prompt.root; <userinput><command>echo</command> <makevar>STRIP</makevar>= &gt;&gt; <filename>/etc/make.conf</filename></userinput>
&prompt.root; <userinput><command>echo</command> <makevar>CFLAGS</makevar>+=<option>-g</option> &gt;&gt; <filename>/etc/make.conf</filename></userinput>
&prompt.root; <userinput><command>make</command> <maketarget>install</maketarget> <maketarget>clean</maketarget></userinput></screen>
<para>You will now have a debuggable version of &man.ppp.8;
installed. You will have to be <username>root</username>
@ -9003,8 +8999,8 @@ ATDT1234567</programlisting>
question, making it possible to diagnose the problem.</para>
<para>If you are familiar with &man.gdb.1;, you may wish to find out some
other bits and pieces such as what actually caused the dump and
the addresses &amp; values of the relevant variables.</para>
other bits and pieces such as what actually caused the dump or
the addresses and values of the relevant variables.</para>
</answer>
</qandaentry>