Re: radrelay crashes when I try to run it

2002-10-02 Thread Alan DeKok

Simon [EMAIL PROTECTED] wrote:
 Blah, radrelay was infact segfaulting on any A/V pair that
 valuepair.c:userparse was having trouble with due to a stupid bug on my
 part. Tiny patch included below to fix this.

  Added, thanks.

 Now radrelay will silently ignore any cruft that may have ended up in
 the detail file for some reason, which is good.
 The bad part is that attributes which don't have a dictionary entry when
 they're added to the detail file (eg. Attr-X = stuff mentioned above)
 will also be ignored since userparse doesn't seem to like those.

  Yes, that's a minor problem.  We can probably hack pairmake() to
check for those, and create attributes by hand.  The problem with that
is you don't know what type they are, so maybe they should all be set
to 'octets'.

 Is there any easy way included in lib/* to deal with those?

  It should be fixed in pairmake().  Something like:

  if found in dictionary
do stuff it does now to make the VP
  else
create VP
vp-attribute = atoi()
vp-name = strcopy ATTR-nn
vp-type = octets
  ...

  Alan DeKok.



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: radrelay crashes when I try to run it

2002-09-30 Thread Alan DeKok

Kevin Bonner [EMAIL PROTECTED] wrote:
 I had a problem with radrelay where it segfaulted when it reached an
 attribute of the type 'Attr-X', where X is an integer.  I could have
 played with the dictionary file(s) to figure out what attribute it
 was, but the information contained was not important to me.
 Creating a patch where it skips all attributes beginning with
 'Attr-' fixed the problem.  I can post the patch if interested.

  I would rather figure out WHY it crashes on those attributes, and
then fix the underlying problem, so that the attributes can be relayed
properly.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: radrelay crashes when I try to run it

2002-09-19 Thread Mark Hennessy

Unfortunately, I don't see any .work file around.

--
 Mark P. Hennessy [EMAIL PROTECTED]

On Thu, 29 Aug 2002, Simon wrote:

 Date: Thu, 29 Aug 2002 00:28:56 +0200
 From: Simon [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: radrelay crashes when I try to run it

 On Wed, Aug 28, 2002 at 11:26:07AM -0400, Mark Hennessy wrote:
  I get a segmentation fault each time I try to restart radrelay.  I was
  able to get it to run initially, but after it died, I would not be able to
  restart it.

 That sounds like it might be hitting some odd accounting record that
 it's having problems handling. Is there a detailfile.work laying
 around in the same directory as the detailfile you're running radrelay
 on? If there is could you try removing the detailfile.work and
 re-running radrelay to see if it crashes? If it does work I'd appreciate
 a copy of the detailfile.work to figure out what in it is making
 radrelay die.

 --
 Simon


 -
 List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: radrelay crashes when I try to run it

2002-09-19 Thread Kevin Bonner

I had a problem with radrelay where it segfaulted when it reached an attribute 
of the type 'Attr-X', where X is an integer.  I could have played with the 
dictionary file(s) to figure out what attribute it was, but the information 
contained was not important to me.  Creating a patch where it skips all 
attributes beginning with 'Attr-' fixed the problem.  I can post the patch if 
interested.

Kevin

On Thursday 19 September 2002 15:52, Mark Hennessy wrote:
 Unfortunately, I don't see any .work file around.
 Mark P. Hennessy [EMAIL PROTECTED]

On Thu, 29 Aug 2002, Simon wrote:

 Date: Thu, 29 Aug 2002 00:28:56 +0200
 From: Simon [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: radrelay crashes when I try to run it

 On Wed, Aug 28, 2002 at 11:26:07AM -0400, Mark Hennessy wrote:
  I get a segmentation fault each time I try to restart radrelay.  I was
  able to get it to run initially, but after it died, I would not be able to
  restart it.

 That sounds like it might be hitting some odd accounting record that
 it's having problems handling. Is there a detailfile.work laying
 around in the same directory as the detailfile you're running radrelay
 on? If there is could you try removing the detailfile.work and
 re-running radrelay to see if it crashes? If it does work I'd appreciate
 a copy of the detailfile.work to figure out what in it is making
 radrelay die.

 --
 Simon

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: radrelay crashes when I try to run it

2002-08-28 Thread Alan DeKok

Mark Hennessy [EMAIL PROTECTED] wrote:
 I get a segmentation fault each time I try to restart radrelay.  I was
 able to get it to run initially, but after it died, I would not be able to
 restart it.

  Have you looked at the core file?

  Also, there's a small patch in the latest CVS to prevent it from
core dumping, when you don't supply enough command-line arguments.

 Does radrelay use IPC semaphores in its operation?

  No.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: radrelay crashes when I try to run it

2002-08-28 Thread Alan DeKok

Mark Hennessy [EMAIL PROTECTED] wrote:
 OK, now when I try to run radrelay with too few parameters, it doesn't
 dump core, but it does dump core if I try to run it as a foreground
 process with debugging enabled.  I can't figure out why it's crashing.
 Also, I can't seem to find the core file.

  ulimit -c unlimited

  gdb radrelay args...

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: radrelay crashes when I try to run it

2002-08-28 Thread Simon

On Wed, Aug 28, 2002 at 11:53:53AM -0400, Mark Hennessy wrote:
 OK, now when I try to run radrelay with too few parameters, it doesn't
 dump core, but it does dump core if I try to run it as a foreground
 process with debugging enabled.  I can't figure out why it's crashing.
 Also, I can't seem to find the core file.

Exactly what arguments are you using to start radrelay?
Is it dieing as soon as you start it or does it run for a while?
What platform?

And, like Alan said, a backtrace would help.

-- 
Simon


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html