# What is "ERRLOG ch\_tcp\_server.c:104: Assertion Failure:"

**URL:** <https://forum.sierrawireless.com/t/what-is-errlog-ch-tcp-server-c-104-assertion-failure/3390>\
**Category:** Open AT\
**Created:** [July 2, 2009, 5:11am UTC](https://forum.sierrawireless.com/t/what-is-errlog-ch-tcp-server-c-104-assertion-failure/3390 "2009-07-02T05:11:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanthsoma](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@srikanthsoma](https://forum.sierrawireless.com/u/srikanthsoma)\
**Post date:** [July 2, 2009, 5:11am UTC](https://forum.sierrawireless.com/t/what-is-errlog-ch-tcp-server-c-104-assertion-failure/3390/1 "2009-07-02T05:11:00Z")

</div>

Hi all,  
I am using Q24+(657e) as my wireless module. when i try to create a server using “wip\_TCPServerCreate(SERVER\_PORT,evHandler,NULL)()”, where SERVER\_PORT = 8888 m getting the message in trace “ERRLOG ch\_tcp\_server.c:104: Assertion Failure:” what does it mean.  
One the above TRACE starts coming I am not able to connect to the created server from client.Please help me in solving it.

The trace is as follows

Trace CUS4 1 Got missed call  
Trace CUS4 1 [GPRS]: open: -\> DISCONNECTED  
Trace CUS4 27 Call subs 00238201 : 0  
Trace CUS4 31 Gprs subs 0022B845 : 0  
Trace CUS4 30 [ADL port] IsAvailable(80) : 1  
Trace CUS4 31 Gprs setup 1 : 0  
Trace CUS4 1 [GPRS]: start: -\> CONNECTING  
Trace CUS4 21 Get Mem 01079328  
Trace CUS4 1 [GPRS]: GPRS EVENT SETUP OK (cid=1): GPRS activate  
Trace CUS4 30 [ADL port] IsAvailable(80) : 1  
Trace CUS4 21 Get Mem 01079418  
Trace CUS4 21 Get Mem 01079538  
Trace CUS4 21 Get Mem 01079508  
Trace CUS4 1 [GPRS]: GPRS EVENT ACTIVATE OK (cid=1): FCM open  
Trace CUS4 25 Is Available 60 : 1  
Trace CUS4 25 FCM subs 96 : 11  
Trace CUS4 1 [GPRS]: FCM subscribe: 11  
Trace CUS4 1 [GPRS]: FCM EVENT FLOW OPENNED: -\> CONNECTED  
Trace CUS4 21 Get Mem 01079550  
Trace CUS4 1 ERRLOG ch\_tcp\_server.c:104: Assertion Failure:  
Trace CUS4 1 \> FALSE  
Trace CUS4 1   
Trace CUS4 1   
Trace CUS4 2 117.97.104.58  
Trace CUS4 26 SMS send : 0

Thanks in advance,  
Chethu

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [July 2, 2009, 6:52am UTC](https://forum.sierrawireless.com/t/what-is-errlog-ch-tcp-server-c-104-assertion-failure/3390/2 "2009-07-02T06:52:15Z")

</div>

An Assertion is a standard programming technique for catching errors in programs: [en.wikipedia.org/wiki/Assertion\_(computing](http://en.wikipedia.org/wiki/Assertion_(computing))

This one looks like some internal Wavecom message - you will need to contact your distributor or FAE about it.

---

<div class="post-metadata">

**Author:** ![srikanthsoma](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@srikanthsoma](https://forum.sierrawireless.com/u/srikanthsoma)\
**Post date:** [July 3, 2009, 10:22am UTC](https://forum.sierrawireless.com/t/what-is-errlog-ch-tcp-server-c-104-assertion-failure/3390/3 "2009-07-03T10:22:33Z")

</div>

Dats rite awneil but our distributr is fargo… fargo is totally useless… till now i dont remember any problem getting solved by them… and they dont giv direct contact of wavecom i donno y its like dis… I informed reg this to fargo 3 days back and they are still working on it they say… i really donno wat to do for this… as awork around m restarting the module on error condition but i don like to do it. pls provide some solution

Thanks ,  
Chethu

---

<div class="post-metadata">

**Author:** ![paruthiv](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@paruthiv](https://forum.sierrawireless.com/u/paruthiv)\
**Post date:** [July 8, 2009, 8:00am UTC](https://forum.sierrawireless.com/t/what-is-errlog-ch-tcp-server-c-104-assertion-failure/3390/4 "2009-07-08T08:00:37Z")

</div>

Hii

As you must be knowing , If an assertion evaluates to false at run-time, an “assertion failure” results, which typically causes execution to abort.

> [@](#):
>
> This one looks like some internal Wavecom message - you will need to contact your distributor or FAE about it.

Exactly…!!! This message would be received once the condition evaluates to false at run time. Since , the code is running first time and the error is received second time , i feel the opening and closing of the server socket is not done correctly. The problem seems to be with the Code itself.

Hope it is of some help to you… 🙂

Regards, Paruthiv

---

<div class="post-metadata">

**Author:** ![srikanthsoma](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@srikanthsoma](https://forum.sierrawireless.com/u/srikanthsoma)\
**Post date:** [July 23, 2009, 4:02am UTC](https://forum.sierrawireless.com/t/what-is-errlog-ch-tcp-server-c-104-assertion-failure/3390/5 "2009-07-23T04:02:01Z")

</div>

S ur absolutely correct I was not closing the server channel at all. because of which i used to get this after 7 connection and disconnection.Thnx for the solution…
