[Openh323gk-users] Segmentation fault using RadAliasAuth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Sirs,

I know you are very busy people but I would like to ask you for help.

-My system is RedHat 7.3 and I compiled PwLib 1.5.0, OpenH323 1.12.0,
gnugk2.0.5.
and freeradius 0.8.1.


-I'm using RadAliasAuth for RRQ and ARQ. The Radius server is configured to
Accept all the requirements (just for the tests).


-For the first RRQ, the GK works fine but for the second one (RRQ or ARQ) it
always calls "segmentation fault" after the Radius message is sent.
(Please check the attached configuration file and Log file generated
with -ttttt)


-I've found some related mails but I'm not sure what could be the solution:

1. " try with 1.4.11 and 1.11.7 libraries" (Jul 18th)
2. "to uninstall pwlib and openh323 headers from /usr/include directory,
unpack pwlib and openh323 sources to some local directory, setup
PWLIBDIR and OPENH323DIR variable, compile both libraries
(without issuing 'make install') and then compile gnugk." (Aug 1st)



Thanks for your time,



Humberto


=======================================================
The gnugk.ini file:


[Gatekeeper::Auth]
RadAliasAuth=required;RRQ,ARQ


[RadAliasAuth]
Servers=192.168.0.101
DefaultAuthPort=1812
SharedSecret=gnugk2
RequestTimeout=4000
IdCacheTimeout=9000
SocketDeleteTimeout=60000
RequestRetransmissions=2
RoundRobinServers=1
AppendCiscoAttributes=0
IncludeEndpointIP=0



2003/08/19 10:03:16.756	1	          gk.cxx(119)	GK	Trace logging restarted.
2003/08/19 10:03:16.756	5	   singleton.cxx(25)	Create instance: 1
2003/08/19 10:03:16.756	5	     Toolkit.cxx(380)	Try name /tmp/gnugk.ini-7242
2003/08/19 10:03:16.757	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 9 Thread unblock pipe
2003/08/19 10:03:16.757	5	    tlibthrd.cxx(688)	PWLib	Created thread 0x813c500 PXConfigWriteThread
2003/08/19 10:03:16.758	4	    tlibthrd.cxx(1194)	PWLib	Thread high water mark set: 2
2003/08/19 10:03:16.758	5	    tlibthrd.cxx(1199)	PWLib	Started thread 0x813c500 PXConfigWriteThread
2003/08/19 10:03:16.758	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 12 PTextFile
2003/08/19 10:03:16.798	4	     Toolkit.cxx(120)	InterfaceTable:
127.0.0.1 <00-00-00-00-00-00> (lo)
192.168.0.101 <00-40-F4-28-6C-4F> (eth0)

2003/08/19 10:03:16.799	2	     Toolkit.cxx(89)	Network=192.168.0.0/255.255.255.0, IP=192.168.0.101
2003/08/19 10:03:16.799	2	     Toolkit.cxx(89)	Network=127.0.0.0/255.0.0.0, IP=127.0.0.1
2003/08/19 10:03:16.799	2	     Toolkit.cxx(91)	Default IP=192.168.0.101
2003/08/19 10:03:16.800	2	     Toolkit.cxx(158)	GK	H.323 Proxy enabled
2003/08/19 10:03:16.803	1	          gk.cxx(422)	OpenH323 Gatekeeper - The GNU Gatekeeper with ID 'dxmGk02' started on 0.0.0.0
Gatekeeper(GNU) Version(2.0.5) Ext(pthreads=1) Build(Aug 19 2003, 01:25:28) Sys(Linux i686 2.4.18-3)

2003/08/19 10:03:16.804	5	   singleton.cxx(25)	Create instance: 2
2003/08/19 10:03:16.804	2	          gk.cxx(454)	GK	TimeToLive for Registrations: -1
2003/08/19 10:03:16.804	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 13 Thread unblock pipe
2003/08/19 10:03:16.804	5	    tlibthrd.cxx(688)	PWLib	Created thread 0x81468f0 
2003/08/19 10:03:16.804	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 14 PUDPSocket
2003/08/19 10:03:16.804	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 15 PUDPSocket
2003/08/19 10:03:16.805	5	   singleton.cxx(25)	Create instance: 3
2003/08/19 10:03:16.811	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 17 Thread unblock pipe
2003/08/19 10:03:16.811	5	    tlibthrd.cxx(688)	PWLib	Created thread 0x8152460 
2003/08/19 10:03:16.811	5	   singleton.cxx(25)	Create instance: 4
2003/08/19 10:03:16.812	4	    tlibthrd.cxx(1194)	PWLib	Thread high water mark set: 3
2003/08/19 10:03:16.812	5	    tlibthrd.cxx(1199)	PWLib	Started thread 0x8152460 GkStatus:08152460
2003/08/19 10:03:16.812	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 18 PTCPSocket
2003/08/19 10:03:16.813	1	      gkauth.cxx(266)	GkAuth	Add default rule with flag ff
2003/08/19 10:03:16.814	1	      gkauth.cxx(266)	GkAuth	Add RadAliasAuth rule with flag a
2003/08/19 10:03:16.815	4	    radproto.cxx(1684)	RADIUS	Created instance of RADIUS client (local if: 0.0.0.0, default ports: 1812,1813) for RADIUS servers group:
        192.168.0.101
2003/08/19 10:03:16.815	5	   singleton.cxx(25)	Create instance: 5
2003/08/19 10:03:16.815	2	      RasSrv.cxx(487)	GK	ccQueueName VirtualQueue and CTI time out=10
2003/08/19 10:03:16.815	2	ProxyChannel.cxx(72)	RTPPortRange: 10000-59999
2003/08/19 10:03:16.816	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 20 Thread unblock pipe
2003/08/19 10:03:16.816	5	    tlibthrd.cxx(688)	PWLib	Created thread 0x81536a0 
2003/08/19 10:03:16.816	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 21 PTCPSocket
2003/08/19 10:03:16.816	2	 ProxyThread.cxx(477)	ProxyL	Listen to 0.0.0.0:1720
2003/08/19 10:03:16.816	4	    tlibthrd.cxx(1194)	PWLib	Thread high water mark set: 4
2003/08/19 10:03:16.816	5	    tlibthrd.cxx(1199)	PWLib	Started thread 0x81536a0 ProxyListener:081536a0
2003/08/19 10:03:16.817	2	      thread.cxx(28)	ProxyListener 1219 started
2003/08/19 10:03:16.817	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 23 Thread unblock pipe
2003/08/19 10:03:16.817	5	    tlibthrd.cxx(688)	PWLib	Created thread 0x814bb30 
2003/08/19 10:03:16.817	4	    tlibthrd.cxx(1194)	PWLib	Thread high water mark set: 5
2003/08/19 10:03:16.817	5	    tlibthrd.cxx(1199)	PWLib	Started thread 0x814bb30 ProxyHandleThread:0814bb30
2003/08/19 10:03:16.817	2	      thread.cxx(28)	ProxyHandleThread 1220 started
2003/08/19 10:03:16.818	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 25 Thread unblock pipe
2003/08/19 10:03:16.818	3	 ProxyThread.cxx(647)	ProxyH(0) waiting...
2003/08/19 10:03:16.818	5	    tlibthrd.cxx(688)	PWLib	Created thread 0x8158ac8 
2003/08/19 10:03:16.818	4	    tlibthrd.cxx(1194)	PWLib	Thread high water mark set: 6
2003/08/19 10:03:16.818	5	    tlibthrd.cxx(1199)	PWLib	Started thread 0x8158ac8 ProxyHandleThread:08158ac8
2003/08/19 10:03:16.818	2	      thread.cxx(28)	ProxyHandleThread 1221 started
2003/08/19 10:03:16.819	2	      RasSrv.cxx(551)	GK	Using Routed Signalling
2003/08/19 10:03:16.819	3	 ProxyThread.cxx(647)	ProxyLC(0) waiting...
2003/08/19 10:03:16.819	2	      RasSrv.cxx(552)	GK	H.245 Routed Enabled
2003/08/19 10:03:16.819	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 27 Thread unblock pipe
2003/08/19 10:03:16.819	5	    tlibthrd.cxx(688)	PWLib	Created thread 0x8152230 
2003/08/19 10:03:16.819	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 28 PUDPSocket
2003/08/19 10:03:16.819	4	    tlibthrd.cxx(1194)	PWLib	Thread high water mark set: 7
2003/08/19 10:03:16.820	5	    tlibthrd.cxx(1199)	PWLib	Started thread 0x8152230 MulticastGRQ:08152230
2003/08/19 10:03:16.820	1	MulticastGRQ.cxx(52)	GK	Multicast listener started
2003/08/19 10:03:16.820	4	    tlibthrd.cxx(1194)	PWLib	Thread high water mark set: 8
2003/08/19 10:03:16.820	5	    tlibthrd.cxx(1199)	PWLib	Started thread 0x81468f0 H323RasSrv:081468f0
2003/08/19 10:03:16.821	1	      RasSrv.cxx(2099)	GK	RasThread 1223 started
2003/08/19 10:03:16.821	2	      RasSrv.cxx(2102)	GK	Entering connection handling loop
2003/08/19 10:03:40.195	2	      RasSrv.cxx(2132)	GK	Read from 192.168.0.100:1463
2003/08/19 10:03:40.196	3	      RasSrv.cxx(2145)	GK
registrationRequest {
    requestSeqNum = 1
    protocolIdentifier = 0.0.8.2250.0.2
    discoveryComplete = FALSE
    callSignalAddress = 1 entries {
      [0]=ipAddress {
        ip =  4 octets {
          c0 a8 00 64                                        ...d
        }
        port = 1720
      }
    }
    rasAddress = 1 entries {
      [0]=ipAddress {
        ip =  4 octets {
          c0 a8 00 64                                        ...d
        }
        port = 1463
      }
    }
    terminalType = {
      terminal = {
      }
      mc = FALSE
      undefinedNode = FALSE
    }
    terminalAlias = 1 entries {
      [0]=h323_ID  3 characters {
        0068 0075 006d                            hum
      }
    }
    endpointVendor = {
      vendor = {
        t35CountryCode = 181
        t35Extension = 0
        manufacturerCode = 21324
      }
      productId =  23 octets {
        4d 69 63 72 6f 73 6f 66  74 ae 20 4e 65 74 4d 65   Microsoft. NetMe
        65 74 69 6e 67 ae 00                               eting..
      }
      versionId =  4 octets {
        33 2e 30 00                                        3.0.
      }
    }
    keepAlive = FALSE
    willSupplyUUIEs = FALSE
    maintainConnection = FALSE
  }
2003/08/19 10:03:40.197	1	      RasSrv.cxx(927)	GK	RRQ Received
2003/08/19 10:03:40.197	4	      osutil.cxx(319)	PWLib	File handle high water mark set: 29 PUDPSocket
2003/08/19 10:03:40.198	5	    radproto.cxx(2261)	RADIUS	Created new socket for RADIUS client: port:11434:[0,37-37]
2003/08/19 10:03:40.198	5	    radproto.cxx(1897)	RADIUS	Sending PDU to RADIUS server 192.168.0.101 (192.168.0.101:1812) from port:11434:[0,37-38], PDU: {
      code = 1 (Access-Request)
      id = 38
      length = 61 octets
      authenticator = 16 octets {
        aa dc cd 9e f6 13 8b 19  4b d5 0f 56 3e e7 a0 db   ........K..V>...
      }
      attributes = 5 elements {
        [0]= {
          type = 1 (User-Name)
          length = 5 octets
          value = 3 octets {
            68 75 6d                                           hum
          }
        }
        [1]= {
          type = 2 (User-Password)
          length = 18 octets
          value = 16 octets {
            e1 8b 79 61 86 cc f4 eb  83 bf 3d 6b 64 e6 80 36   ..ya......=kd..6
          }
        }
        [2]= {
          type = 4 (NAS-IP-Address)
          length = 6 octets
          value = 4 octets {
            c0 a8 00 65                                        ...e
          }
        }
        [3]= {
          type = 61 (NAS-Port-Type)
          length = 6 octets
          value = 4 octets {
            00 00 00 05                                        ....
          }
        }
        [4]= {
          type = 6 (Service-Type)
          length = 6 octets
          value = 4 octets {
            00 00 00 01                                        ....
          }
        }
      }
   }

2003/08/19 10:03:40.199	5	    radproto.cxx(1915)	RADIUS	Received PDU from RADIUS server 192.168.0.101 (192.168.0.101:1812) by socket port:11434:[0,37-38], PDU: {
      code = 2 (Access-Accept)
      id = 38
      length = 20 octets
      authenticator = 16 octets {
        27 aa 46 3e 51 9c f1 9a  67 00 52 47 40 e4 ca 9b   '.F>Q...g.RG@...
      }
      attributes = <<null>>
   }

2003/08/19 10:03:40.200	4	        gkauth.h(80)	GkAuth	RadAliasAuth check ok
2003/08/19 10:03:40.200	4	        gkauth.h(80)	GkAuth	default check ok
2003/08/19 10:03:40.201	1	      RasTbl.cxx(51)	New EP|192.168.0.100:1720|hum:h323_ID|terminal|1569_endp

2003/08/19 10:03:40.202	2	      RasSrv.cxx(1144)	RCF|192.168.0.100:1720|hum:h323_ID|terminal|1569_endp;

2003/08/19 10:03:40.202	3	      RasSrv.cxx(2072)	GK	Send to 192.168.0.100:1463
registrationConfirm {
    requestSeqNum = 1
    protocolIdentifier = 0.0.8.2250.0.2
    callSignalAddress = 1 entries {
      [0]=ipAddress {
        ip =  4 octets {
          c0 a8 00 65                                        ...e
        }
        port = 1720
      }
    }
    terminalAlias = 1 entries {
      [0]=h323_ID  3 characters {
        0068 0075 006d                            hum
      }
    }
    gatekeeperIdentifier =  7 characters {
      0064 0078 006d 0047 006b 0030 0032        dxmGk02
    }
    endpointIdentifier =  9 characters {
      0031 0035 0036 0039 005f 0065 006e 0064   1569_end
      0070                                      p
    }
    willRespondToIRR = FALSE
    maintainConnection = FALSE
  }
2003/08/19 10:03:40.203	5	      RasSrv.cxx(2086)	GK	Sent Successful
2003/08/19 10:03:48.766	2	      RasSrv.cxx(2132)	GK	Read from 192.168.0.100:1463
2003/08/19 10:03:48.767	3	      RasSrv.cxx(2145)	GK
admissionRequest {
    requestSeqNum = 2
    callType = pointToPoint <<null>>
    endpointIdentifier =  9 characters {
      0031 0035 0036 0039 005f 0065 006e 0064   1569_end
      0070                                      p
    }
    destinationInfo = 1 entries {
      [0]=dialedDigits "1003"
    }
    srcInfo = 2 entries {
      [0]=h323_ID  3 characters {
        0068 0075 006d                            hum
      }
      [1]=h323_ID  3 characters {
        0068 0075 006d                            hum
      }
    }
    bandWidth = 1
    callReferenceValue = 24330
    conferenceID =  16 octets {
      a5 4f 7c 6d 2a 55 5e 44  b5 b2 72 7f 58 2e 78 77   .O|m*U^D..r.X.xw
    }
    activeMC = FALSE
    answerCall = FALSE
    canMapAlias = FALSE
    callIdentifier = {
      guid =  16 octets {
        17 83 af e5 a2 3c 60 44  a0 f2 5e e2 99 67 5f de   .....<`D..^..g_.
      }
    }
    willSupplyUUIEs = FALSE
  }
2003/08/19 10:03:48.767	1	      RasSrv.cxx(1298)	GK	ARQ Received
2003/08/19 10:03:48.768	2	     Toolkit.cxx(285)		RewritePString: 1003 to 1003
2003/08/19 10:03:48.768	5	    radproto.cxx(1897)	RADIUS	Sending PDU to RADIUS server 192.168.0.101 (192.168.0.101:1812) from port:11434:[0,37-39], PDU: {
      code = 1 (Access-Request)
      id = 39
      length = 72 octets
      authenticator = 16 octets {
        c6 29 7b 1b 43 98 79 4b  02 33 35 06 f8 41 74 f5   .){.C.yK.35..At.
      }
      attributes = 7 elements {
        [0]= {
          type = 1 (User-Name)
          length = 5 octets
          value = 3 octets {
            68 75 6d                                           hum
          }
        }
        [1]= {
          type = 2 (User-Password)
          length = 18 octets
          value = 16 octets {
            a8 f0 d8 31 3a 25 62 e1  cb f3 07 00 35 65 15 e7   ...1:%b.....5e..
          }
        }
        [2]= {
          type = 4 (NAS-IP-Address)
          length = 6 octets
          value = 4 octets {
            c0 a8 00 65                                        ...e
          }
        }
        [3]= {
          type = 61 (NAS-Port-Type)
          length = 6 octets
          value = 4 octets {
            00 00 00 05                                        ....
          }
        }
        [4]= {
          type = 6 (Service-Type)
          length = 6 octets
          value = 4 octets {
            00 00 00 01                                        ....
          }
        }
        [5]= {
          type = 31 (Calling-Station-Id)
          length = 5 octets
          value = 3 octets {
            68 75 6d                                           hum
          }
        }
        [6]= {
          type = 30 (Called-Station-Id)
          length = 6 octets
          value = 4 octets {
            31 30 30 33                                        1003
          }
        }
      }
   }


[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux