ecap_clamav_adapter-0.2.1 - Segment Violation when loading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCAP |
Fix Released
|
Undecided
|
Alex Rousskov |
Bug Description
Hi,
I could not find a better place for this bug report about the clamav ecap adapter from http://
I compiled squid 3.2.0.18 on my Ubuntu 12.04 (KVM host with 1GB RAM, 8 virtual CPUs):
Linux test 3.2.0-25-virtual #40-Ubuntu SMP Wed May 23 22:20:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
, with following options:
root@test:~# squid -v
Squid Cache: Version 3.2.0.18
configure options: '--enable-ssl' '--enable-
Everytime I try to start my Squid, it dies with following message:
2012/07/17 10:16:36.889| Loading Squid module from '/usr/local/
FATAL: Received Segment Violation...dying.
2012/07/17 10:16:36.889| Closing HTTP port [::]:3128
the squid config part looks like that:
ecap_enable on
adaptation_
loadable_modules /usr/local/
ecap_service eservice_req reqmod_precache uri=ecap:
ecap_service eservice_resp respmod_precache uri=ecap:
adaptation_
adaptation_
Other ecap-Adapters (I tried http://
root@test:
/usr/local/
/usr/local/
/usr/local/
root@test:
612K -rw-r--r-- 1 root root 610K Jul 16 14:40 /usr/local/
4.0K -rwxr-xr-x 1 root root 935 Jul 16 14:40 /usr/local/
0 lrwxrwxrwx 1 root root 16 Jul 16 14:40 /usr/local/
0 lrwxrwxrwx 1 root root 16 Jul 16 14:40 /usr/local/
284K -rwxr-xr-x 1 root root 281K Jul 16 14:40 /usr/local/
My gdb backtrace:
root@test:
GNU gdb (Ubuntu/Linaro 7.4-2012.
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://
Reading symbols from /opt/squid/
[New LWP 10173]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
Core was generated by `squid -X -N'.
Program terminated with signal 6, Aborted.
#0 0x00007fdb06189445 in __GI_raise (sig=<optimized out>) at ../nptl/
64 ../nptl/
(gdb)
(gdb) bt
#0 0x00007fdb06189445 in __GI_raise (sig=<optimized out>) at ../nptl/
#1 0x00007fdb0618cbab in __GI_abort () at abort.c:91
#2 0x00000000005c8d5b in death (sig=<optimized out>) at tools.cc:388
#3 <signal handler called>
#4 0x00007fdb06abff2b in std::basic_
#5 0x00007fdb054f83c6 in Adapter:
#6 0x00007fdb054f7cdd in Register (mode=...) at Adapter.cc:12
#7 0x00007fdb054f7d29 in __static_
#8 _GLOBAL_
#9 0x00007fdb07b86306 in call_init (l=<optimized out>, argc=3, argv=0x7fff52e7
#10 0x00007fdb07b863df in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:52
#11 _dl_init (main_map=
#12 0x00007fdb07b8aada in dl_open_worker (a=0x7fff52e75500) at dl-open.c:549
#13 0x00007fdb07b86176 in _dl_catch_error (objname=
#14 0x00007fdb07b8a31a in _dl_open (file=0x26092f0 "/usr/local/
#15 0x00007fdb06d20f26 in dlopen_doit (a=0x7fff52e75720) at dlopen.c:67
#16 0x00007fdb07b86176 in _dl_catch_error (objname=0x26093f0, errstring=
#17 0x00007fdb06d2152f in _dlerror_run (operate=
#18 0x00007fdb06d20fc1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:88
#19 0x00000000006e5857 in vm_open (loader_
#20 0x00000000006e2f3a in tryall_dlopen (phandle=<optimized out>, filename=0x26092f0 "/usr/local/
#21 0x00000000006e43f9 in try_dlopen (phandle=
#22 0x00000000006e4be4 in lt_dlopenadvise (filename=0x24c51e0 "/usr/local/
#23 0x00000000005dc251 in openModule (mode=<optimized out>, this=0x25a5580) at LoadableModule.
#24 LoadableModule:
#25 0x00000000005dc513 in LoadModule (fname=0x2163430 "/usr/local/
#26 LoadableModules
#27 0x0000000000581e12 in mainInitialize () at main.cc:1141
#28 SquidMain (argc=<optimized out>, argv=<optimized out>) at main.cc:1459
#29 0x00000000004d0416 in SquidMainSafe (argv=<optimized out>, argc=<optimized out>) at main.cc:1215
#30 main (argc=<optimized out>, argv=<optimized out>) at main.cc:1207
Any ideas anyone?
thanks and best regards,
Peter
summary: |
- ecap_clamav_adapter-0.2.1 - Segment Violation + ecap_clamav_adapter-0.2.1 - Segment Violation when loading |
Changed in ecap: | |
status: | In Progress → Fix Committed |
Changed in ecap: | |
milestone: | none → 1.0.0 |
tags: | added: clamav |
Changed in ecap: | |
status: | Fix Committed → Fix Released |
Please try the attached eCAP ClamAV adapter patch and let me know whether it solves the problem. The patch compiles but I have not tested it as I cannot easily reproduce the bug in my environment anyway.