libecap::adapter::Service::start(): Assertion `false' failed

Bug #408091 reported by Alex Rousskov
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
eCAP
Fix Released
High
Alex Rousskov

Bug Description

I'm getting this error:

virtual void libecap::adapter::Service::start(): Assertion `false' failed

using the samples.

Tags: lib
Revision history for this message
Alex Rousskov (rousskov) wrote :

Future libecap code will not have this assertion. Until the next libecap release, your options are:

1) Remove the assertion from libecap::adapter::Service::start().

2) Remove the call to libecap::adapter::Service::start() from the sample Service class.

When writing your own Service, you do want to call libecap::adapter::Service::start(), so option #1 is better from future compatibility point of view, but it does require you to rebuild the ecap library.

Changed in ecap:
assignee: nobody → Alex Rousskov (rousskov)
importance: Undecided → High
status: New → Triaged
description: updated
tags: added: lib
Revision history for this message
Quentin HESS (hessquentin) wrote :

Hi,

I meet this problem with Squid 3.1.0.13.
When is there a new release of libecap ?

regards,

Revision history for this message
Alex Rousskov (rousskov) wrote :

The new libecap release should happen ASAP, hopefully by October 19, 2009.

Revision history for this message
Ealireza (ealireza) wrote :

dear sir
hi

i have same problem
im noob in linux
is possible help me and told me how can i run this service ? :D

i try it on Squid 3.1 st 14 , 09 but both of them get same error on starting ..

squid: adapter.cc:17: virtual void libecap::adapter::Service::start(): Assertion `false' failed.

thanks

Revision history for this message
Ealireza (ealireza) wrote :

sorry for my new reply :

i have tried compile Squid with No libecap::adapter::Service::start() Procedure from adapter.cc

after compiling libecap
i try compile squid

i get this error :

/usr/local/lib/libecap.so: undefined reference to `libecap::adapter::Service::start()'
collect2: ld returned 1 exit status

now i confused.

please kindly release new version of `libecap'

regards

Revision history for this message
KspR (laurent-ksperis) wrote :

Hello,

The same problem :

Squid Cache: Version 3.1.0.14
libecap : 0.0.2
gzip-adapter : 1.1.0

2009/10/30 11:27:39| loading Squid module from '/usr/local/lib/ecap_adapter_gzip.so'
2009/10/30 11:27:39| Squid modules loaded: 1
2009/10/30 11:27:39| Adaptation support is on
(squid): adapter.cc:17: virtual void libecap::adapter::Service::start(): Assertion `false' failed.

Revision history for this message
KspR (laurent-ksperis) wrote :

Squid start when remove assert() in libecap :

vim src/libecap/adapter/adapter.cc
Line 16 :

void libecap::adapter::Service::start() {
        //assert(false);
}

Log :
2009/10/30 11:43:30| loading Squid module from '/usr/local/lib/ecap_adapter_gzip.so'
2009/10/30 11:43:30| Squid modules loaded: 1
2009/10/30 11:43:30| Adaptation support is on
2009/10/30 11:43:30| Ready to serve requests.

regards

Revision history for this message
Ealireza (ealireza) wrote :

i have edited some part of gzip adapter .

i edited : vigos adapter_gzip.cc

now it compress web's with my rule .

but i have question
is possible force Vigos to Compress with Chunked Model ?

regards .

Revision history for this message
Alex Rousskov (rousskov) wrote :

Please direct Vigos adapter questions to Vigos adapter authors. They are not related to this bug.

In general, please note that if the host application supports HTTP/1.1 chunked encoding, the eCAP adapter will probably receive virgin content dechunked, and should produce content without chunked encoding, leaving chunking decisions up to the proxy. If you want to discuss these general chunking issues further, please open a new Question.

Revision history for this message
JP (johnupeterson) wrote :

When I removed the assertion from libecap::adapter::Service::start()

and try and run squid I get:

/usr/local/squid/sbin/squid: symbol lookup error: /lib/libecap.so.0: undefined symbol: _ZN7libecap7adapter7Service5startEv

Any ideas?

Revision history for this message
Sandeep Kuttal (skuttal) wrote :

I am also getting the same problem and when i removed assert the browser took forever to load

Alex Rousskov (rousskov)
Changed in ecap:
status: Triaged → Fix Committed
Alex Rousskov (rousskov)
Changed in ecap:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.