[Serusers] ser crashes

Klaus Darilion darilion at ict.tuwien.ac.at
Thu Feb 6 17:10:52 CET 2003


Hi!

I'm really very sorry that I have wasted your time - I've made a really
stupid mistake.

Now I fixed the proper line (103) and everything works fine. No messages
in the log file, no crashes.

Thanks a lot!
Klaus

> -----Original Message-----
> From: Jan Janak [mailto:J.Janak at sh.cvut.cz] 
> Sent: Thursday, February 06, 2003 4:45 PM
> To: Klaus Darilion
> Cc: serusers at lists.iptel.org
> Subject: Re: [Serusers] ser crashes
> 
> 
> On 06-02 16:25, Klaus Darilion wrote:
> > My experience is the following:
> > 
> > Line 109 in t_msgbuilder.c:
> > 
> > 		len += USER_AGENT_LEN + CRLF_LEN;
> > ==> ser crashes when I send the special invite!
> > 
> > 		*len += USER_AGENT_LEN + CRLF_LEN;
> > ==> ser doesn't crash but logs this in /val/log/messages:
> > Feb  6 15:48:24 obelix /usr/local/sbin/ser[6985]: ERROR:
> > t_build_and_send_CANCEL: cannot allocate memory
> > 
> > 
> > hope my explanation is a little bit clearer now:
> > i also downloaded 
> > ftp://ftp.berlios.de/pub/ser/0.8.10/src/ser-0.8.10_src.tar.gz
> > and this tarball contains: *len += USER_AGENT_LEN + CRLF_LEN;
> > 
> 
>  That's another line, look at line 103:
>  
>      len+=((hdr->body.s+hdr->body.len ) - hdr->name.s ) +
>              CRLF_LEN;
> 									
>  This should be changed to:
>  
>     *len+=((hdr->body.s+hdr->body.len ) - hdr->name.s ) +
>                  CRLF_LEN;
> 		 
>    regards, Jan.
> 
> 



More information about the sr-users mailing list