| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>ACEDB User Group Newsletter - December 2001</TITLE> |
| 5 |
|
| 6 |
<!-- you won't pick up the style sheet if you view this template file, it works OK |
| 7 |
for the newsletters which are in the directory above. --> |
| 8 |
|
| 9 |
<LINK rel=stylesheet type="text/css" |
| 10 |
href="../newsletter.css" |
| 11 |
title="Style sheet for Acedb newsletters"> |
| 12 |
|
| 13 |
</HEAD> |
| 14 |
|
| 15 |
|
| 16 |
<BODY> |
| 17 |
|
| 18 |
<HR> |
| 19 |
<HR> |
| 20 |
|
| 21 |
<!-- Don't change this name unless you change mkindex.pl. --> |
| 22 |
<a name="Top"></a> |
| 23 |
|
| 24 |
<H1>ACEDB User Group Newsletter - December 2001</H1> |
| 25 |
|
| 26 |
|
| 27 |
<!-- ******************************************************************** --> |
| 28 |
<P>If you want to have this newsletter mailed to you <B>or</B> you want to |
| 29 |
make comments/suggestions about the format/content then |
| 30 |
send an email to <A HREF="mailto:[email protected]">[email protected]</A>. |
| 31 |
|
| 32 |
|
| 33 |
<!-- ******************************************************************** --> |
| 34 |
<P><hr width="62%" align=left> |
| 35 |
<a name="General_News"></a><H2>General News</H2> |
| 36 |
|
| 37 |
<a name="ftp_http"></a><H3>Downloading acedb</H3> |
| 38 |
|
| 39 |
<P>The Sanger Centre has had to tighten up security on its ftp and web sites. |
| 40 |
This has meant that some users have had trouble downloading via ftp because |
| 41 |
their own ftp is not configured to use passive mode which is the only supported |
| 42 |
mode at the Sanger Centre now. |
| 43 |
|
| 44 |
<P>Do please remember that you can download everything from our |
| 45 |
<A HREF="http://www.acedb.org/Software/Downloads/">web page for downloads</A> |
| 46 |
using either ftp or http protocols, the latter will avoid |
| 47 |
any problems you may have with ftp. |
| 48 |
|
| 49 |
|
| 50 |
<!-- ******************************************************************** --> |
| 51 |
<P><hr width="62%" align=left> |
| 52 |
<a name="New_Features"></a><H2>New Features</H2> |
| 53 |
|
| 54 |
<a name="silent_option"></a><H3>New "-silent" command line for Socket Server</H3> |
| 55 |
|
| 56 |
<P>The server can now be run in the foreground in "silent" mode, i.e. no |
| 57 |
messages are sent to the terminal. Specify the "-silent" option when starting |
| 58 |
the server. This option was requested to make it possible to run the server |
| 59 |
for extended periods of time in an xterm without huge numbers of messages |
| 60 |
being output to the terminal. |
| 61 |
|
| 62 |
<!-- ******************************************************************** --> |
| 63 |
<P><hr width="62%" align=left> |
| 64 |
<a name="Articles"></a><H2>Articles</H2> |
| 65 |
|
| 66 |
<a name="port_numbers"></a><H3>The Socket Server and port numbers.</H3> |
| 67 |
|
| 68 |
<P>There has been some confusion over the valid range of port numbers for the |
| 69 |
socket server. IANA (Internet Assigned Numbers Authority) has set aside certain ranges of port |
| 70 |
numbers for certain uses with sockets: |
| 71 |
|
| 72 |
<PRE><CODE> |
| 73 |
|
| 74 |
Port No. range Usage |
| 75 |
-------------- ----- |
| 76 |
|
| 77 |
0 - 1023 "well-known" ports, you need super user authority |
| 78 |
to use these and they are reserved for ftp, http, |
| 79 |
X windows and basic operating system services. |
| 80 |
<b>DO NOT USE THESE</b>. |
| 81 |
|
| 82 |
1024 - 49151 "registered" ports, if you setting up the server to |
| 83 |
be run by inetd you should use one of these. |
| 84 |
<B>But</B> you will need to check in /etc/services |
| 85 |
that your number does not clash with one already there. |
| 86 |
|
| 87 |
49152 - 65535 "dynamic" ports, are for dynamically assigned/ephemeral |
| 88 |
use. You should use one of these if you are just trying |
| 89 |
out the server from an xterm in the foreground. |
| 90 |
|
| 91 |
</CODE></PRE> |
| 92 |
|
| 93 |
<P>You should <b>not</b> choose a port larger than 65535. If you do, the port |
| 94 |
number may be truncated in a way that leaves it in the range 0 - 1023 which are |
| 95 |
reserved for superuser use for well-known services. Numbers larger than 65535 are |
| 96 |
generally reserved for RPC and not available for sockets. |
| 97 |
|
| 98 |
|
| 99 |
<a name="core_dump"></a><H3>Change in behaviour when acedb crashes.</H3> |
| 100 |
|
| 101 |
<P>In the past when acedb crashed it produced a core dump. Unfortunately this |
| 102 |
dump is often useless because acedb attempts to clean up the database before |
| 103 |
the core dump by setting up a special routine called a signal catcher. |
| 104 |
This means that the core dump records what was going on when |
| 105 |
acedb was cleaning up, not what caused the crash. |
| 106 |
|
| 107 |
<P>Now, by default, no core dump will be produced. Instead, if acedb crashes in |
| 108 |
a way that you can reproduce, |
| 109 |
you should restart it with the "-nosigcatch" command line option, e.g.: |
| 110 |
|
| 111 |
<pre><code>tace -nosigcatch your_database |
| 112 |
</code></pre> |
| 113 |
|
| 114 |
<P>This will tell acedb not to try to clear up when it crashes and the operating |
| 115 |
system will then produce a useful core dump when the problem reoccurs. You should |
| 116 |
keep this core dump and let the |
| 117 |
<A HREF="mailto:[email protected]">acedb developers</A> |
| 118 |
know about it. |
| 119 |
|
| 120 |
<P>If you are using xace, you can also turn signal catching on and off from the |
| 121 |
Admin menu on the main window. |
| 122 |
|
| 123 |
|
| 124 |
<!-- ******************************************************************** --> |
| 125 |
<P><hr width="62%" align=left> |
| 126 |
<a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2> |
| 127 |
|
| 128 |
<a name="grey_ramp"></a><H3>Greyramp speed improved.</H3> |
| 129 |
|
| 130 |
<P>The grey ramp printing code was preforming a function call per pixel, this |
| 131 |
has now been fixed which should speed things up a lot. |
| 132 |
|
| 133 |
<a name="aceout_print"></a><H3>The last of the aceOutPrint() bugs ?</H3> |
| 134 |
|
| 135 |
<P>When the aceOut package was introduced it unfortunately encouraged some |
| 136 |
erroneous use of the aceOutPrint() call (which should really be called aceOutPrint<b>f</b>()). |
| 137 |
The problem occurs when programmers do this: |
| 138 |
<pre><code>char *some_string = "blah, blah, resulting in a large % gain, blah, blah" ; |
| 139 |
|
| 140 |
aceOutPrint(some_string) ; |
| 141 |
</code></pre> |
| 142 |
What they should really do is this: |
| 143 |
<pre><code>char *some_string = "blah, blah, resulting in a large % gain, blah, blah" ; |
| 144 |
|
| 145 |
aceOutPrint("%s", some_string) ; |
| 146 |
</code></pre> |
| 147 |
In the former, the "%" in some_string is taken as a formatting character and the code |
| 148 |
looks in probably undefined memory to get the data to be formatted. |
| 149 |
|
| 150 |
<P>All occurences of this in acedb code have now been fixed and the header for the |
| 151 |
aceOut package updated to warn programmers about this problem. A longer term fix |
| 152 |
will be to introduce an aceOutPrintf() function to take the place of the aceOutPrint() |
| 153 |
call, which will become a routine to print simple strings. |
| 154 |
|
| 155 |
<a name="dotter"></a><H3>Dotter bug.</H3> |
| 156 |
|
| 157 |
<P>Dotter was crashing periodically, this was because of a problem passing |
| 158 |
the data over to the forked off dotter via a pipe. This should now be fixed. |
| 159 |
|
| 160 |
<a name="alias"></a><H3>Serious alias bug</H3> |
| 161 |
|
| 162 |
<P>Jean Thierry-Mieg discovered a serious bug which affected the use of aliases |
| 163 |
with acedbs cache of the tags present in an object. The cache is used to speed |
| 164 |
up queries since it makes it possible to see if an object contains a particular |
| 165 |
tag without actually having to load the object. |
| 166 |
|
| 167 |
<P>The code was not de-aliasing names and so would report a tag missing from |
| 168 |
an object because it did not look up the true object underlying the alias in |
| 169 |
the cache. This should make aliases much more reliable to use. |
| 170 |
|
| 171 |
<!-- ******************************************************************** --> |
| 172 |
<P><hr width="62%" align=left> |
| 173 |
<a name="Developers_Corner"></a><H2>Developers Corner</H2> |
| 174 |
|
| 175 |
<a name="libgif_renamed"></a><H3>libgif.a renamed to libgd.a</H3> |
| 176 |
|
| 177 |
<P>The library that contains the GD package for producing acedb images used to |
| 178 |
be called libgif.a, it has now been renamed to libgd.a because of a name clash |
| 179 |
with a library on the new Mac OS-X system. This more accurately reflects the |
| 180 |
library's contents in any case since it is based on the GD package. |
| 181 |
|
| 182 |
|
| 183 |
<!-- ******************************************************************** --> |
| 184 |
<P><hr width="62%" align=left> |
| 185 |
<H2>No December monthly build</H2> |
| 186 |
|
| 187 |
<P>Due to problems with our build system and some large scale and unfinished |
| 188 |
changes to introduce Smap (see January issue) we were not able to produce |
| 189 |
a December monthly build. Sorry ! |
| 190 |
|
| 191 |
|
| 192 |
<!-- ******************************************************************** --> |
| 193 |
<P><hr width="62%" align=left> |
| 194 |
<H2>December User Group Meeting - was cancelled</H2> |
| 195 |
|
| 196 |
<!-- ******************************************************************** --> |
| 197 |
<HR> |
| 198 |
<HR> |
| 199 |
|
| 200 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 201 |
<!-- hhmts start --> |
| 202 |
Last modified: Wed Feb 13 11:22:22 GMT 2002 |
| 203 |
<!-- hhmts end --> |
| 204 |
|
| 205 |
</BODY> |
| 206 |
</HTML> |