wapbox restart (Kannel wapbox version cvs-20030917)

2004-03-09 Thread Yury Mikhienko
Hi all!


I again paste my question about of wapbox restart reason.

Some time of time I get wapbox restart.
In DEBUG trace I see the following:

...
2004-03-09 11:04:50 [7] DEBUG: Octet string dump ends.
2004-03-09 11:04:50 [2] DEBUG: WSP (UNIT): event arrived
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `application/vnd.wap.wmlc', WSP 
version 1.2 to binary representation `0x0014'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Server', WSP version 1.3 to binary 
representation `0x0026'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Date', WSP version 1.3 to binary 
representation `0x0012'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Last-Modified', WSP version 1.3 to 
binary representation `0x001d'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Accept-Ranges', WSP version 1.3 to 
binary representation `0x0004'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Age', WSP version 1.3 to binary 
representation `0x0005'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `X-Cache', WSP version 1.3 to 
binary representation `0x'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `X-Cache-Lookup', WSP version 1.3 
to binary representation `0x'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Proxy-Connection', WSP version 1.3 
to binary representation `0x'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Content-Length', WSP version 1.3 
to binary representation `0x000d'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Content-Type', WSP version 1.3 to 
binary representation `0x0011'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `X-WAP.TOD', WSP version 1.3 to 
binary representation `0x'.
2004-03-09 11:04:50 [2] DEBUG: WSP: Mapping string `Encoding-Version', WSP version 1.3 
to binary representation `0x0043'.
2004-03-09 11:04:50 [5] DEBUG: WTP: Created WTPRespMachine 0x8178d48 (211)
2004-03-09 11:04:50 [5] DEBUG: WTP: resp_machine 211, state LISTEN, event RcvInvoke.
2004-03-09 11:04:50 [1] DEBUG: WSP: machine 0x8176898, state CONNECTED, event 
TR-Invoke.ind
2004-03-09 11:04:50 [1] DEBUG: WSP: method 211, state NULL_METHOD, event TR-Invoke.ind
2004-03-09 11:04:50 [1] DEBUG: WSP: decoding headers:
2004-03-09 11:04:50 [1] DEBUG: Octet string at 0x8198418:
2004-03-09 11:04:50 [1] DEBUG:   len:  112
2004-03-09 11:04:50 [1] DEBUG:   size: 113
2004-03-09 11:04:50 [1] DEBUG:   immutable: 0
2004-03-09 11:04:50 [1] DEBUG:   data: c2 1f 6d 31 00 6a 4a 53 45 53 53 49 4f 4e 49 44 
  ..m1.jJSESSIONID
2004-03-09 11:04:50 [1] DEBUG:   data: 00 41 4e 36 61 48 54 63 5a 6d 48 66 4b 79 39 49 
  .AN6aHTcZmHfKy9I
2004-03-09 11:04:50 [1] DEBUG:   data: 62 36 37 6a 72 7a 65 45 34 64 6c 31 50 66 30 50 
  b67jrzeE4dl1Pf0P
2004-03-09 11:04:50 [1] DEBUG:   data: 38 21 34 35 39 37 35 31 30 34 35 21 2d 31 30 31 
  8!459751045!-101
2004-03-09 11:04:50 [1] DEBUG:   data: 35 31 38 38 35 38 39 21 31 31 30 30 31 21 2d 31 
  5188589!11001!-1
2004-03-09 11:04:50 [1] DEBUG:   data: 00 2f 00 77 61 70 2e 65 75 72 6f 70 65 2e 73 61 
  ./.wap.europe.sa
2004-03-09 11:04:50 [1] DEBUG:   data: 6d 73 75 6e 67 6d 6f 62 69 6c 65 2e 63 6f 6d 00 
  msungmobile.com.
2004-03-09 11:04:50 [1] DEBUG: Octet string dump ends.
2004-03-09 11:04:50 [1] WARNING: Did not expect value-length with 'Cookie' header, 
skipping.
2004-03-09 11:04:50 [1] WARNING: WSP: Cookie: skipping 109 trailing octets.
2004-03-09 11:04:50 [1] WARNING: Skipping faulty header.
2004-03-09 11:04:50 [1] DEBUG: WSP 23/211: New method state HOLDING
2004-03-09 11:04:50 [1] DEBUG: WSP: method 211, state HOLDING, event Release
2004-03-09 11:04:50 [1] DEBUG: WSP 23/211: New method state REQUESTING
2004-03-09 11:04:50 [1] DEBUG: WSP 23: New state CONNECTED
2004-03-09 11:04:50 [1] DEBUG: WSP: machine 0x8176898, state CONNECTED, event 
S-MethodInvoke.res
2004-03-09 11:04:50 [1] DEBUG: WSP: method 211, state REQUESTING, event 
S-MethodInvoke.res
2004-03-09 11:04:50 [1] DEBUG: WSP 23/211: New method state PROCESSING
2004-03-09 11:04:50 [1] DEBUG: WSP 23: New state CONNECTED
2004-03-09 11:04:50 [6] INFO: Fetching 

2004-03-09 11:04:50 [6] DEBUG: WSP: Mapping url 

2004-03-09 11:04:50 [6] DEBUG: expire_cookies: Cookies in cache
2004-03-09 11:04:50 [6] DEBUG: set_cookies: Cookies in cache
2004-03-09 11:04:50 [6] DEBUG: set_cookies: Added (Cookie: 
JSESSIONID=AN6aHTcZmHfKy9Ib67jrzeE4dl1Pf0P8!459751045!-1015188589!11001!-1;$path=/)
2004-03-09 11:04:50 [10] DEBUG: Parsing URL 
`http://wap.europe.samsungmobile.com/eng/ga/JavagameCategoryList.jsp?diu=&cs=&op=&free=Y':
2004-03-09 11:04:50 [10] DEBUG:   Scheme: http://
2004-03-09 11:04:50 [10] DEBUG:   Host: wap.europe.samsungmobile.com
2004-03-09 11:04:50 [10] DEBUG:   Port: 80
2004-03-09 11:04:50 [10] DEBUG:   Username: (null)
2004-03-09 11:04:50 [10] DEBUG:   Password: (null)
2004-03-09 11:04:50 [10] DEBUG:

Re: wapbox restart (Kannel wapbox version cvs-20030917)

2004-03-10 Thread Yury Mikhienko
On Tue, 9 Mar 2004 11:47:21 +0300
Yury Mikhienko <[EMAIL PROTECTED]> wrote:

> Hi all!
> 
> 
> I again paste my question about of wapbox restart reason.
> 
> Some time of time I get wapbox restart.
> In DEBUG trace I see the following:
> 
> 2004-03-09 11:04:50 [9] DEBUG:   data: 6c 3d 22 55 50 22 3e 0d 0a 09 09 3c 67 6f 20 
> 68   l="UP"> 2004-03-09 11:04:50 [9] DEBUG:   data: 72 65 66 3d 22 2f 65 6e 67 2f 67 61 2f 4a 61 
> 76   ref="/eng/ga/Jav
> 2004-03-09 11:04:50 [9] DEBUG:   data: 61 67 61 6d 65 44 65 66 61 75 6c 74 2e 6a 73 
> 70   agameDefault.jsp
> 2004-03-09 11:04:50 [9] DEBUG:   data: 3f 64 69 75 3d 26 61 6d 70 3b 63 73 3d 26 61 
> 6d   ?diu=&cs=&am
> 2004-03-09 11:04:50 [9] DEBUG:   data: 70 3b 6f 70 3d 22 2f 3e 0d 0a 09 3c 2f 64 6f 
> 3e   p;op="/>...
> 2004-03-09 11:04:50 [9] DEBUG:   data: 0d 0a 3c 2f 63 61 72 64 3e 0d 0a 3c 2f 77 6d 
> 6c    2004-03-09 11:04:50 [9] DEBUG:   data: 3e 0d 0a  
> >..
> 2004-03-09 11:04:50 [9] DEBUG: Octet string dump ends.
> 2004-03-09 11:04:50 [7] DEBUG: Caching cookie (Set-Cookie: JSESSIONID=; 
> expires=Thursday, 01-Jan-1970 01:00:00 GMT)
> 2004-03-09 11:04:50 [7] DEBUG: get_header_value: Value (JSESSIONID=; 
> expires=Thursday, 01-Jan-1970 01:00:00 GMT)
> 2004-03-09 11:04:50 [7] DEBUG: Parsed date (Thursday, 01-Jan-1970 01:00:00 GMT) as: 
> Thu Jan  1 01:00:00 1970
> 
> 2004-03-09 11:04:50 [7] ERROR: parse_http_date () Expiry time (Thu Jan  1 01:00:00 
> 1970
> ) (delta=-1078826690) is in the past !
> 2004-03-09 11:04:50 [7] DEBUG: have_cookie: Comparing name (JSESSIONID:JSESSIONID), 
> path (NULL:$path=/), domain (NULL:NULL)
> 
> And wapbox restart :(((
> 
> I seen problem in "Cookie" element, but can I solve that?
> 
> Help please.
> 
> 

Hi again!

What about my question?
Any suggestions?

I need help :(((

-- 
 
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188



Re: wapbox restart (Kannel wapbox version cvs-20030917)

2004-03-10 Thread Paul P Komkoff Jr
Replying to Yury Mikhienko:
> Hi again!
> 
> What about my question?
> Any suggestions?
> 
> I need help :(((


can you instead of yelling and screaming provide us backtrace of yours
situation?

if it dumps core when crashes load it into gdb and do a bt full
?

-- 
Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key
 This message represents the official view of the voices in my head


pgp0.pgp
Description: PGP signature


Re: wapbox restart (Kannel wapbox version cvs-20030917)

2004-03-11 Thread Stipe Tolj
Yury Mikhienko wrote:
> 
> Hi all!
> 
> I again paste my question about of wapbox restart reason.
> 
> Some time of time I get wapbox restart.
> In DEBUG trace I see the following:
> 
> I seen problem in "Cookie" element, but can I solve that?

this is BUG#95 and has been fixed in cvs. See URL

 
http://www.kannel.org/cgi-bin/viewcvs.cgi/gateway/wap/cookies.c.diff?r1=1.4&r2=1.5

for details and a diff.

Please update your running system to current cvs head.

Stipe

mailto:[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf, NRW, Germany

phone: +49.211.74845.0
fax: +49.211.74845.299

mailto:[EMAIL PROTECTED]
http://www.wapme-systems.de/
---

-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.2.2 (Cygwin)

mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
g2HyLAEKQIp30Q==
=aYCI
-END PGP PUBLIC KEY BLOCK-



Re: wapbox restart (Kannel wapbox version cvs-20030917)

2004-03-11 Thread Yury Mikhienko
On Thu, 11 Mar 2004 17:51:48 +0100
Stipe Tolj <[EMAIL PROTECTED]> wrote:

> http://www.kannel.org/cgi-bin/viewcvs.cgi/gateway/wap/cookies.c.diff?r1=1.4&r2=1.5

Many thanks Stipe!

I already fixed that.

(But, in first time, set the safe NULL octstr_compare)

Thank you again.

-- 
 
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188



Re: wapbox restart (Kannel wapbox version cvs-20030917) SOLVED

2004-03-10 Thread Yury Mikhienko
On Wed, 10 Mar 2004 13:34:32 +0300
Paul P Komkoff Jr <[EMAIL PROTECTED]> wrote:

> Replying to Yury Mikhienko:
> > Hi again!
> > 
> > What about my question?
> > Any suggestions?
> > 
> > I need help :(((
> 
> 
> can you instead of yelling and screaming provide us backtrace of yours
> situation?
> 
> if it dumps core when crashes load it into gdb and do a bt full
> ?
> 

I solve the problem by add the following lines into octstr_compare function (add NULL 
check):

seems_valid(ostr1);
seems_valid(ostr2);

+if ((ostr1 == NULL) && (ostr2 == NULL))
+return 0;
+
+if ((ostr1 != NULL) && (ostr2 == NULL))
+return 1;
+
+if ((ostr1 == NULL) && (ostr2 != NULL))
+return -1;

It very dirty way, but fast and effective in my case.

-- 
 
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188



Re: wapbox restart (Kannel wapbox version cvs-20030917) SOLVED

2004-03-10 Thread Aarno Syvänen
Less dirtier way IMHO is define semantics:
either NULL is equal to NULL
or NULL is unequal to everything, including NULL
or NULL is equal to everything
Problem is that if you compare something to NULL,
you have one (or two) unhandled NULL pointers
earlier. NULL is Kannel means quite often "no
configuration variable supplied"
Aarno

On 10.3.2004, at 14:06, Yury Mikhienko wrote:

On Wed, 10 Mar 2004 13:34:32 +0300
Paul P Komkoff Jr <[EMAIL PROTECTED]> wrote:
Replying to Yury Mikhienko:
Hi again!

What about my question?
Any suggestions?
I need help :(((


can you instead of yelling and screaming provide us backtrace of yours
situation?
if it dumps core when crashes load it into gdb and do a bt full
?
I solve the problem by add the following lines into octstr_compare 
function (add NULL check):

seems_valid(ostr1);
seems_valid(ostr2);
+if ((ostr1 == NULL) && (ostr2 == NULL))
+return 0;
+
+if ((ostr1 != NULL) && (ostr2 == NULL))
+return 1;
+
+if ((ostr1 == NULL) && (ostr2 != NULL))
+return -1;
It very dirty way, but fast and effective in my case.

--

Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188