Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | pembed2012 <once@was.enough.invalid> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Segmentation Fault |
| Date | 2012-05-16 19:56 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jp10qa$kjf$1@speranza.aioe.org> (permalink) |
| References | (1 earlier) <4FB14026.1070005@verizon.net> <jorrpp$hrp$1@speranza.aioe.org> <jort5t$cuo$1@reader1.panix.com> <jouanj$jhq$1@speranza.aioe.org> <joubkf$4av$1@dont-email.me> |
On Tue, 15 May 2012 20:38:05 +0100, BartC wrote: > "pembed2012" <once@was.enough.invalid> wrote in message > news:jouanj$jhq$1@speranza.aioe.org... > > >> The code was by a "genius programmer" who has gone away, his code was >> superefficient but maybe the variable names were not helpful and the >> documentation was minimal :-) >> >> What conditions do I need on atm and ctm when they get passed into >> ensure no segfaults? Basically the function should be doing a kind of >> job queue, I think qu=queue, wt=wait, tarnd=turn-around, wt=wait etc. > > In that case just rewrite it. That will be more reliable in the long > term. And you can take the opportunity to add some comments. > > But you will need a specification, or know how it fits into the bigger > picture. Those hard-coded array bounds are a bit worrying, and confusing > too with one set of arrays having a length of 11, and an upper bound of > 10, and another set having a length of 10, and an upper bound of 9... I will do this if someone can explain me in simple terms what this function is doing. The documentation just say it implements a work queue, 11 is the max wait. Also John Gordon is correct that -1 is considered a sentinal value. However I would like to know exactly what input arrays are acceptable and lead to no segfault. Thanks for you're interest.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Segmentation Fault pembed2012 <once@was.enough.invalid> - 2012-05-14 16:45 +0000
Re: Segmentation Fault John Gordon <gordon@panix.com> - 2012-05-14 17:00 +0000
Re: Segmentation Fault Keith Thompson <kst-u@mib.org> - 2012-05-14 13:44 -0700
Re: Segmentation Fault Edward Rutherford <edward.p.rutherford79@REMOVETHIS.gmail.com> - 2012-05-14 21:07 +0000
Re: Segmentation Fault John Gordon <gordon@panix.com> - 2012-05-14 21:10 +0000
Re: Segmentation Fault James Kuyper <jameskuyper@verizon.net> - 2012-05-14 13:25 -0400
Re: Segmentation Fault pembed2012 <once@was.enough.invalid> - 2012-05-14 21:00 +0000
Re: Segmentation Fault James Kuyper <jameskuyper@verizon.net> - 2012-05-14 17:21 -0400
Re: Segmentation Fault John Gordon <gordon@panix.com> - 2012-05-14 21:24 +0000
Re: Segmentation Fault John Gordon <gordon@panix.com> - 2012-05-14 21:35 +0000
Re: Segmentation Fault pembed2012 <once@was.enough.invalid> - 2012-05-15 19:27 +0000
Re: Segmentation Fault "BartC" <bc@freeuk.com> - 2012-05-15 20:38 +0100
Re: Segmentation Fault pembed2012 <once@was.enough.invalid> - 2012-05-16 19:56 +0000
Re: Segmentation Fault James Kuyper <jameskuyper@verizon.net> - 2012-05-16 16:17 -0400
Re: Segmentation Fault James Kuyper <jameskuyper@verizon.net> - 2012-05-16 16:17 -0400
Re: Segmentation Fault John Gordon <gordon@panix.com> - 2012-05-15 19:56 +0000
Re: Segmentation Fault James Kuyper <jameskuyper@verizon.net> - 2012-05-15 15:58 -0400
Re: Segmentation Fault Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-05-18 01:02 +0000
Re: Segmentation Fault Kaz Kylheku <kaz@kylheku.com> - 2012-05-15 20:10 +0000
Re: Segmentation Fault lawrence.jones@siemens.com - 2012-05-15 17:43 -0400
Re: Segmentation Fault James Kuyper <jameskuyper@verizon.net> - 2012-05-15 18:27 -0400
Re: Segmentation Fault gordonb.dxbbb@burditt.org (Gordon Burditt) - 2012-05-19 02:37 -0500
Re: Segmentation Fault "BartC" <bc@freeuk.com> - 2012-05-14 22:17 +0100
Re: Segmentation Fault Fred K <fred.l.kleinschmidt@gmail.com> - 2012-05-14 10:02 -0700
Re: Segmentation Fault Fred K <fred.l.kleinschmidt@gmail.com> - 2012-05-14 11:33 -0700
Re: Segmentation Fault Ike Naar <ike@sverige.freeshell.org> - 2012-05-16 20:17 +0000
Re: Segmentation Fault nick_keighley_nospam@hotmail.com - 2012-05-17 03:05 -0700
Re: Segmentation Fault Ike Naar <ike@iceland.freeshell.org> - 2012-05-17 11:07 +0000
Re: Segmentation Fault pembed2012 <once@was.enough.invalid> - 2012-05-17 19:50 +0000
Re: Segmentation Fault James Kuyper <jameskuyper@verizon.net> - 2012-05-17 16:59 -0400
Re: Segmentation Fault Ike Naar <ike@sverige.freeshell.org> - 2012-05-18 07:22 +0000
csiph-web