Hot Topic (More than 10 Replies) segmentation fault (Read 2122 times)
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
segmentation fault
Aug 12th, 2004 at 6:17pm
Print Post Print Post  
Red Hat 8
I can start server ok. server shows 0 connections.
when i try to connect client i get a "too many connections" error.
the server crashes with a "segmentation fault" error.  any help appreciated. thanks! joe
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: segmentation fault
Reply #1 - Aug 12th, 2004 at 6:21pm
Print Post Print Post  
Joe,

Which version of Sesame do you have?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: segmentation fault
Reply #2 - Aug 12th, 2004 at 6:46pm
Print Post Print Post  
sesame version 1.03
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: segmentation fault
Reply #3 - Aug 12th, 2004 at 6:53pm
Print Post Print Post  
Are you using a sesame_allow or sesame_deny file?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: segmentation fault
Reply #4 - Aug 12th, 2004 at 7:03pm
Print Post Print Post  
no I am not. thought that was optional?
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: segmentation fault
Reply #5 - Aug 12th, 2004 at 7:20pm
Print Post Print Post  
They are optional. You do not have to use them. I am asking because there was a bug in the Unix version in association with these files that I recently fixed.

Can you tell me a little bit about the client and the server? First - are they the same computer? If not, are they running the same OS? If not, can you identify which OSs are being run? Also, on the Linux server are you using a "hosts" file (/etc/hosts) or are you using DNS, or other name server, or both? When you connect, are you using the name of the server or its IP address? I.E.:

sesame -client MyServer:20020:20021

or

sesame -client 192.168.0.20:20020:20021

I am asking because, crashing just as a client connects on a Linux computer is usually caused by a bug (since found and fixed) in name resolution, when the server side of sesame is trying to determine the human readable name of the client computer from its IP address.

In any case, have you considered upgrading to 1.0.4?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: segmentation fault
Reply #6 - Aug 12th, 2004 at 7:34pm
Print Post Print Post  
thanks--here are the answers.
server is running red hat 8
client is running windows 2000
I am not using a hosts file.
Am using dns service is on a dedicated Name Server here.....
on the client I was using the sesame server ip address in the startup script.
and yes, i suppose I should upgrade! I was just getting my feet wet so far...Joe
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: segmentation fault
Reply #7 - Aug 12th, 2004 at 8:15pm
Print Post Print Post  
I just tried it with Sesame 1.0.4 running on Red Hat 7.3 with a Sesame client running in Win2000 running Sesame 1.0.3 - using the default ports (20000 and 20001). It connected and ran well.

Tomorrow I will try Sesame 1.0.3 on the server. I will also try it on the latest version of Suse Linux with 1.0.3.

Ray brought up an interesting point - is there a gatekeeper of any kind (such as IP chaining) on the ports you are using?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: segmentation faultnope
Reply #8 - Aug 12th, 2004 at 8:27pm
Print Post Print Post  
thanks.
no ipchains etc. this is a standalone server behind the firewall.
i guess i will dl the upgrade. i am curious about what is heppenning however. joe
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: segmentation fault
Reply #9 - Aug 12th, 2004 at 8:57pm
Print Post Print Post  
What *may* be happening has to do with the sequence of events that occur when a client connects. The server issues a challenge to the client to make sure that it is a Sesame client. Soon afterwards the server resolves the client name from the connecting IP address. In the code that resolves the IP address there was a possibility that the OS would return a failure the first time it was asked because the communication is asynchronous. The code was not prepared for this failure and was using the now incorrect return value. I put in a error check to determine if that failure occurred. It only occurs if the timing is just so. So, to test it, I have to force the connection timing, it does not occur on most boxes or OSs. It was first seen on WinXP, as is noted in the 1.0.4 change log. But the fix applies to all OSs.

  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: segmentation fault
Reply #10 - Aug 13th, 2004 at 12:13pm
Print Post Print Post  
I just tried running client / server with sesame 1.0.3 on Suse Linux 8.0 and all is well. Maybe this is peculiar to Red Hat 8.0, or your specific configuration.

Are you having a problem if you run client / server where the client and the server are both on the same computer?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged