Squid падает FATAL: Received Segment Violation...dying

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 7:46:30

С примерно 19 августа внезапно, безо всяких на то (видимых) причин стало появлятся вышеуказанное сообщение в логах. После некоторого кол-ва таких сообщений сквид упал с образованием squid.core по указанному в конфиге пути без сообщений в лог и т.д.
Пробовал пересоздавать кэш,делал fsck, не помогло. Поиском на эту проблему ничего не накопал.
Пробовал перейти на 3.0.8 stable, но чего-то он у меня собираться не хочет.

Информация о системе

Код: Выделить всё

FreeBSD 6.2
Squid Cache: Version 3.0.STABLE1

configure options:  '--with-default-user=squid' '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/usr/local/squid' '--sysconfdir=/usr/local/etc/squid' '--enable-removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' '--enable-auth=basic ntlm digest' '--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB squid_radius_auth YP' '--enable-digest-auth-helpers=password' '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group' '--enable-ntlm-auth-helpers=SMB' '--enable-storeio=ufs diskd null' '--enable-delay-pools' '--disable-snmp' '--disable-carp' '--disable-wccp' '--disable-ident-lookups' '--enable-arp-acl' '--enable-icap-client' '--disable-kqueue' '--with-large-files' '--enable-err-languages=Armenian Azerbaijani Bulgarian Catalan Czech Danish  Dutch English Estonian Finnish French German Greek  Hebrew Hungarian Italian Japanese Korean Lithuanian  Polish Portuguese Romanian Russian-1251 Russian-koi8-r  Serbian Simplify_Chinese Slovak Spanish Swedish  Traditional_Chinese Turkish' '--enable-default-err-language=English' '--prefix=/usr/local' 'i386-portbld-freebsd6.2' 'build_alias=i386-portbld-freebsd6.2' 'host_alias=i386-portbld-freebsd6.2' 'target_alias=i386-portbld-freebsd6.2' 'CC=cc' 'CFLAGS=-O2 -fno-strict-aliasing -pipe ' 'LDFLAGS=' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-O2 -fno-strict-aliasing -pipe'
Вот кусок лога, тут сквид не падал, но сообщения те же.

Код: Выделить всё

2008/08/22 12:57:05| Configuring Parent 127.0.0.1/8888/0
2008/08/22 12:57:05| Ready to serve requests.
FATAL: Received Segment Violation...dying.
2008/08/22 12:57:06| Not currently OK to rewrite swap log.
2008/08/22 12:57:06| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.051 seconds = 0.036 user + 0.014 sys
Maximum Resident Size: 12864 KB
Page faults with physical i/o: 0
2008/08/22 12:57:09| Starting Squid Cache version 3.0.STABLE1 for i386-portbld-freebsd6.2...
2008/08/22 12:57:09| Process ID 3507
2008/08/22 12:57:09| With 11072 file descriptors available
2008/08/22 12:57:09| DNS Socket created at 0.0.0.0, port 53216, FD 6
2008/08/22 12:57:09| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/22 12:57:09| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/22 12:57:09| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/22 12:57:09| Unlinkd pipe opened on FD 26
2008/08/22 12:57:09| Swap maxSize 10240000 KB, estimated 787692 objects
2008/08/22 12:57:09| Target number of buckets: 39384
2008/08/22 12:57:09| Using 65536 Store buckets
2008/08/22 12:57:09| Max Mem  size: 32768 KB
2008/08/22 12:57:09| Max Swap size: 10240000 KB
2008/08/22 12:57:09| Version 1 of swap file with LFS support detected...
2008/08/22 12:57:09| Rebuilding storage in /share/squid/cache (DIRTY)
2008/08/22 12:57:09| Using Least Load store dir selection
2008/08/22 12:57:09| Set Current Directory to /share/squid/cache
2008/08/22 12:57:09| Loaded Icons.
2008/08/22 12:57:09| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 28.
2008/08/22 12:57:09| HTCP Disabled.
2008/08/22 12:57:09| Configuring Parent 127.0.0.1/8888/0
2008/08/22 12:57:09| Ready to serve requests.
FATAL: Received Segment Violation...dying.
2008/08/22 12:57:09| Not currently OK to rewrite swap log.
2008/08/22 12:57:09| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.051 seconds = 0.011 user + 0.040 sys
Maximum Resident Size: 12800 KB
Page faults with physical i/o: 0
2008/08/22 12:57:12| Starting Squid Cache version 3.0.STABLE1 for i386-portbld-freebsd6.2...
2008/08/22 12:57:12| Process ID 3525
2008/08/22 12:57:12| With 11072 file descriptors available
2008/08/22 12:57:12| DNS Socket created at 0.0.0.0, port 58114, FD 6
2008/08/22 12:57:12| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/22 12:57:12| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/22 12:57:12| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/22 12:57:13| Unlinkd pipe opened on FD 26
2008/08/22 12:57:13| Swap maxSize 10240000 KB, estimated 787692 objects
2008/08/22 12:57:13| Target number of buckets: 39384
2008/08/22 12:57:13| Using 65536 Store buckets
2008/08/22 12:57:13| Max Mem  size: 32768 KB
2008/08/22 12:57:13| Max Swap size: 10240000 KB
2008/08/22 12:57:13| Version 1 of swap file with LFS support detected...
2008/08/22 12:57:13| Rebuilding storage in /share/squid/cache (DIRTY)
2008/08/22 12:57:13| Using Least Load store dir selection
2008/08/22 12:57:13| Set Current Directory to /share/squid/cache
2008/08/22 12:57:13| Loaded Icons.
2008/08/22 12:57:13| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 28.
2008/08/22 12:57:13| HTCP Disabled.
2008/08/22 12:57:13| Configuring Parent 127.0.0.1/8888/0
2008/08/22 12:57:13| Ready to serve requests.
2008/08/22 12:57:13| Store rebuilding is 48.76% complete
2008/08/22 12:57:14| Done reading /share/squid/cache swaplog (8399 entries)
2008/08/22 12:57:14| Finished rebuilding storage from disk.
2008/08/22 12:57:14|      8399 Entries scanned
2008/08/22 12:57:14|         0 Invalid entries.
2008/08/22 12:57:14|         0 With invalid flags.
2008/08/22 12:57:14|      8396 Objects loaded.
2008/08/22 12:57:14|         0 Objects expired.
2008/08/22 12:57:14|         0 Objects cancelled.
2008/08/22 12:57:14|         0 Duplicate URLs purged.
2008/08/22 12:57:14|         3 Swapfile clashes avoided.
2008/08/22 12:57:14|   Took 1.01 seconds (8342.22 objects/sec).
2008/08/22 12:57:14| Beginning Validation Procedure
2008/08/22 12:57:14|   Completed Validation Procedure
2008/08/22 12:57:14|   Validated 16824 Entries
2008/08/22 12:57:14|   store_swap_size = 79690
2008/08/22 12:57:14| storeLateRelease: released 0 objects
2008/08/22 13:27:46| WARNING: HTTP header contains NULL characters {Accept: */*
Content-Type: application/x-www-form-urlencoded}
2008/08/22 13:27:46| WARNING: HTTP header contains NULL characters {Accept: */*
Content-Type: application/x-www-form-urlencoded}
2008/08/22 13:49:42| Reconfiguring Squid Cache (version 3.0.STABLE1)...
2008/08/22 13:49:42| FD 28 Closing HTTP connection
2008/08/22 13:49:42| DNS Socket created at 0.0.0.0, port 62409, FD 8
2008/08/22 13:49:42| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/22 13:49:42| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/22 13:49:42| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/22 13:49:42| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 25.
2008/08/22 13:49:42| HTCP Disabled.
2008/08/22 13:49:42| Configuring Parent 127.0.0.1/8888/0
2008/08/22 13:49:42| Loaded Icons.
2008/08/22 13:49:42| Ready to serve requests.
2008/08/22 14:03:49| tunnelReadServer: FD 32: read failure: (60) Operation timed out
2008/08/22 14:03:49| clientParseRequestMethod: Unsupported method in request 'CONNECT http://www.google.com:443 HTTP/1.0
User-Agent: Google Talk
Host: http://www.google.com
Content-Length: 0
Proxy-Connection: Keep-Alive

'
2008/08/22 14:03:49| clientProcessRequest: Invalid Request
2008/08/22 14:49:12| tunnelReadServer: FD 38: read failure: (60) Operation timed out
2008/08/22 14:49:12| clientParseRequestMethod: Unsupported method in request 'CONNECT http://www.google.com:443 HTTP/1.0
User-Agent: Google Talk
Host: http://www.google.com
Content-Length: 0
Proxy-Connection: Keep-Alive

'
2008/08/22 14:49:12| clientProcessRequest: Invalid Request
2008/08/22 15:09:09| WARNING: All redirector processes are busy.
2008/08/22 15:09:09| WARNING: 10 pending requests queued
2008/08/22 15:09:09| Consider increasing the number of redirector processes in your config file.
2008/08/22 16:35:48| WARNING: HTTP header contains NULL characters {Accept: */*
Content-Type: application/x-www-form-urlencoded}
2008/08/22 16:35:48| WARNING: HTTP header contains NULL characters {Accept: */*
Content-Type: application/x-www-form-urlencoded}
2008/08/22 16:36:59| client_side_request.cc(825) redirecting body_pipe 0x8de206c*1 from request 0x8b691d8 to 0x8b6f100
2008/08/22 16:37:08| client_side_request.cc(825) redirecting body_pipe 0x8de206c*1 from request 0x8b691d8 to 0x8b6b190
FATAL: Received Segment Violation...dying.
2008/08/22 16:37:52| storeDirWriteCleanLogs: Starting...
2008/08/22 16:37:52| WARNING: Closing open FD   25
2008/08/22 16:37:52|   Finished.  Wrote 14842 entries.
2008/08/22 16:37:52|   Took 0.02 seconds (817245.75 entries/sec).
CPU Usage: 49.915 seconds = 25.528 user + 24.387 sys
Maximum Resident Size: 47508 KB
Page faults with physical i/o: 2
2008/08/22 16:37:56| Starting Squid Cache version 3.0.STABLE1 for i386-portbld-freebsd6.2...
2008/08/22 16:37:56| Process ID 9311
2008/08/22 16:37:56| With 11072 file descriptors available
2008/08/22 16:37:56| DNS Socket created at 0.0.0.0, port 62346, FD 6
2008/08/22 16:37:56| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/22 16:37:56| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/22 16:37:56| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/22 16:37:57| Unlinkd pipe opened on FD 26
2008/08/22 16:37:57| Swap maxSize 10240000 KB, estimated 787692 objects
2008/08/22 16:37:57| Target number of buckets: 39384
2008/08/22 16:37:57| Using 65536 Store buckets
2008/08/22 16:37:57| Max Mem  size: 32768 KB
2008/08/22 16:37:57| Max Swap size: 10240000 KB
2008/08/22 16:37:57| Version 1 of swap file with LFS support detected...
2008/08/22 16:37:57| Rebuilding storage in /share/squid/cache (CLEAN)
2008/08/22 16:37:57| Using Least Load store dir selection
2008/08/22 16:37:57| Set Current Directory to /share/squid/cache
2008/08/22 16:37:57| Loaded Icons.
2008/08/22 16:37:57| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 28.
2008/08/22 16:37:57| HTCP Disabled.
2008/08/22 16:37:57| Configuring Parent 127.0.0.1/8888/0
2008/08/22 16:37:57| Ready to serve requests.
FATAL: Received Segment Violation...dying.
2008/08/22 16:37:57| Not currently OK to rewrite swap log.
2008/08/22 16:37:57| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.059 seconds = 0.018 user + 0.041 sys
Maximum Resident Size: 12836 KB
Page faults with physical i/o: 2
2008/08/22 16:38:00| Starting Squid Cache version 3.0.STABLE1 for i386-portbld-freebsd6.2...
2008/08/22 16:38:00| Process ID 9329
2008/08/22 16:38:00| With 11072 file descriptors available
2008/08/22 16:38:00| DNS Socket created at 0.0.0.0, port 62970, FD 6
2008/08/22 16:38:00| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/22 16:38:00| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/22 16:38:00| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/22 16:38:01| Unlinkd pipe opened on FD 26
2008/08/22 16:38:01| Swap maxSize 10240000 KB, estimated 787692 objects
2008/08/22 16:38:01| Target number of buckets: 39384
2008/08/22 16:38:01| Using 65536 Store buckets
2008/08/22 16:38:01| Max Mem  size: 32768 KB
2008/08/22 16:38:01| Max Swap size: 10240000 KB
2008/08/22 16:38:01| Version 1 of swap file with LFS support detected...
2008/08/22 16:38:01| Rebuilding storage in /share/squid/cache (DIRTY)
2008/08/22 16:38:01| Using Least Load store dir selection
2008/08/22 16:38:01| Set Current Directory to /share/squid/cache
2008/08/22 16:38:01| Loaded Icons.
2008/08/22 16:38:01| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 28.
2008/08/22 16:38:01| HTCP Disabled.
2008/08/22 16:38:01| Configuring Parent 127.0.0.1/8888/0
2008/08/22 16:38:01| Ready to serve requests.
2008/08/22 16:38:01| Store rebuilding is 27.60% complete
FATAL: Received Segment Violation...dying.
2008/08/22 16:38:01| Not currently OK to rewrite swap log.
2008/08/22 16:38:01| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.076 seconds = 0.019 user + 0.057 sys
Maximum Resident Size: 14052 KB
Page faults with physical i/o: 0
2008/08/22 16:38:04| Starting Squid Cache version 3.0.STABLE1 for i386-portbld-freebsd6.2...
2008/08/22 16:38:04| Process ID 9347
2008/08/22 16:38:04| With 11072 file descriptors available
2008/08/22 16:38:04| DNS Socket created at 0.0.0.0, port 53254, FD 6
2008/08/22 16:38:04| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/22 16:38:04| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/22 16:38:04| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/22 16:38:05| Unlinkd pipe opened on FD 26
2008/08/22 16:38:05| Swap maxSize 10240000 KB, estimated 787692 objects
2008/08/22 16:38:05| Target number of buckets: 39384
2008/08/22 16:38:05| Using 65536 Store buckets
2008/08/22 16:38:05| Max Mem  size: 32768 KB
2008/08/22 16:38:05| Max Swap size: 10240000 KB
2008/08/22 16:38:05| Version 1 of swap file with LFS support detected...
2008/08/22 16:38:05| Rebuilding storage in /share/squid/cache (DIRTY)
2008/08/22 16:38:05| Using Least Load store dir selection
2008/08/22 16:38:05| Set Current Directory to /share/squid/cache
2008/08/22 16:38:05| Loaded Icons.
2008/08/22 16:38:05| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 28.
2008/08/22 16:38:05| HTCP Disabled.
2008/08/22 16:38:05| Configuring Parent 127.0.0.1/8888/0
2008/08/22 16:38:05| Ready to serve requests.
2008/08/22 16:38:05| Store rebuilding is 27.60% complete
2008/08/22 16:38:06| Done reading /share/squid/cache swaplog (14842 entries)
2008/08/22 16:38:06| Finished rebuilding storage from disk.
2008/08/22 16:38:06|     14842 Entries scanned
2008/08/22 16:38:06|         0 Invalid entries.
2008/08/22 16:38:06|         0 With invalid flags.
2008/08/22 16:38:06|     14830 Objects loaded.
2008/08/22 16:38:06|         0 Objects expired.
2008/08/22 16:38:06|         0 Objects cancelled.
2008/08/22 16:38:06|         0 Duplicate URLs purged.
2008/08/22 16:38:06|        12 Swapfile clashes avoided.
2008/08/22 16:38:06|   Took 1.03 seconds (14353.02 objects/sec).
2008/08/22 16:38:06| Beginning Validation Procedure
2008/08/22 16:38:06|   Completed Validation Procedure
2008/08/22 16:38:06|   Validated 29701 Entries
2008/08/22 16:38:06|   store_swap_size = 159418
2008/08/22 16:38:06| storeLateRelease: released 16 objects
Последний раз редактировалось BlitzKrieg 2008-08-25 8:14:56, всего редактировалось 1 раз.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 8:02:08

оформи сначала нормально
я такой яростный шо аж пиздеЦ
Изображение

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 8:16:37

Оформление сообщения 2.

Как ты собирал сквид?
Из портов?
Где конфиг ?
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 8:30:40

squid ставился из портов.

Конфиг squid

Код: Выделить всё

http_port 3128
cache_peer 127.0.0.1 parent 8888 0 no-query no-digest no-netdb-exchange default
cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
cache_mgr admin@domain.ru
visible_hostname proxy.domain.ru
cache_effective_user squid
cache_effective_group squid
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir ufs /share/squid/cache 10000 32 256
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf
url_rewrite_children 10
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
mime_table /usr/local/etc/squid/mime.conf
pid_filename /var/log/squid/squid.pid
icon_directory /usr/local/etc/squid/icons
error_directory /usr/local/etc/squid/errors/Russian-1251
coredump_dir /share/squid/cache
log_ip_on_direct off
ftp_user Squid@domain.ru
auth_param basic program /usr/local/libexec/squid/ncsa_auth /usr/local/etc/squid/ACL/passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
authenticate_ip_ttl 20 seconds
request_header_max_size 40 KB
request_body_max_size 0 KB
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
client_lifetime 3 hours
shutdown_lifetime 10 seconds
acl QUERY urlpath_regex cgi_bin \?
cache deny QUERY
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl CONNECT method CONNECT
acl HTTP proto HTTP
acl HTTPS proto HTTPS
acl FTP proto FTP
never_direct allow HTTP
never_direct allow HTTPS
acl mac_address arp "/usr/local/etc/squid/ACL/mac_address"
acl gods proxy_auth "/usr/local/etc/squid/ACL/users/gods.conf"
acl admins proxy_auth "/usr/local/etc/squid/ACL/users/admins.conf"
acl power_users proxy_auth "/usr/local/etc/squid/ACL/users/pusers.conf"
acl users proxy_auth "/usr/local/etc/squid/ACL/users/users.conf"
acl guests proxy_auth "/usr/local/etc/squid/ACL/users/guests.conf"
http_access allow manager localhost
http_access deny manager
http_access deny CONNECT !SSL_ports
http_access deny !Safe_ports
http_access deny to_localhost
http_access deny all !mac_address
http_access allow gods
http_access allow admins
http_access allow power_users
http_access allow users
http_access allow guests
http_access deny all

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 8:39:00

Код: Выделить всё

cache_peer 127.0.0.1 parent 8888 0 no-query no-digest no-netdb-exchange default
ты куда это всё заворачиваешь то ?
я такой яростный шо аж пиздеЦ
Изображение


Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 8:46:50

покажи df -h и top -b
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 8:47:47

С радостью :smile:

Код: Выделить всё

titan1# df -h
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/mirror/gm0s1a    496M     81M    375M    18%    /
devfs                 1.0K    1.0K      0B   100%    /dev
/dev/mirror/gm0s2e    251G    4.0K    231G     0%    /backup
/dev/mirror/gm0s2d    378G    271M    348G     0%    /share
/dev/mirror/gm0s1e    496M    2.2M    454M     0%    /tmp
/dev/mirror/gm0s1f     25G    3.7G     20G    16%    /usr
/dev/mirror/gm0s1d     19G    1.2G     16G     7%    /var
devfs                 1.0K    1.0K      0B   100%    /var/named/dev
titan1# top -b
last pid: 29645;  load averages:  0.00,  0.00,  0.00  up 2+23:33:21    09:46:38
177 processes: 1 running, 176 sleeping

Mem: 326M Active, 407M Inact, 158M Wired, 47M Cache, 111M Buf, 57M Free
Swap: 2020M Total, 180K Used, 2019M Free


  PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
  957 mysql       7  20    0 15604K  8776K kserel 0  30:11  0.00% mysqld
  958 clamav      1   4    0 64480K 62868K accept 0   3:33  0.00% clamd
  524 root        1  96    0  1792K  1160K select 1   1:41  0.00% natd
  617 root        1  96    0  1376K   780K select 1   1:09  0.00% syslogd
  872 root        1  96    0 27844K 26060K select 0   0:22  0.00% perl5.8.8
  679 bind        1  96    0  6620K  4700K select 0   0:20  0.00% named
  832 root        1  96    0  5492K  1628K select 0   0:08  0.00% nmbd
 1022 clamav      1   8    0  4472K  1456K nanslp 0   0:06  0.00% havp
  974 root        1  96    0  1480K   820K select 0   0:04  0.00% dovecot
 1170 dovecot     1  96    0  2580K  1024K select 0   0:04  0.00% pop3-login
 1171 dovecot     1  96    0  2584K  1024K select 0   0:04  0.00% imap-login
 1168 dovecot     1  96    0  2580K  1024K select 0   0:03  0.00% pop3-login
 1169 dovecot     1  96    0  2580K  1024K select 0   0:03  0.00% pop3-login
 1172 dovecot     1  96    0  2584K  1024K select 0   0:03  0.00% imap-login
 1173 dovecot     1  96    0  2584K  1024K select 0   0:03  0.00% imap-login
 1508 root        1  96    0  5340K  2996K select 0   0:03  0.00% mc
  982 root        1 -58    0  3136K  2372K bpf    0   0:03  0.00% arpwatch
  980 root        1  96    0  2212K  1064K select 0   0:03  0.00% dovecot-auth


Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 8:53:06

место вроде есть, памяти хватает.
Скажи почему выбор пал на squid3 ?
Вот тут ребята http://www.opennet.ru/openforum/vsluhfo ... /3528.html решили проблему обновлением.
Может быть баг 3шки ?
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 9:02:04

Выбор пал... даже не знаю почему...
Может и баг, но проработала ведь она как-то примерно с января без подобных сообщений и падений.
От сука только что упал. Причем замечено, что уже не первый раз он падает при открытии http://my.mail.ru/?from_commercial=3
Обратил сначала внимание, что страница это некорректно отображается, практически ни одной картинки неоткрывается.
Вот что в cache.log

Код: Выделить всё

titan1# ps -auxw | grep squid
root     29836  0.0  0.1  1592   872  p1  S+    9:59AM   0:00.00 grep squid

titan1# cat /var/log/squid/cache.log

2008/08/25 09:56:35| Starting Squid Cache version 3.0.STABLE1 for i386-portbld-freebsd6.2...
2008/08/25 09:56:35| Process ID 29777
2008/08/25 09:56:35| With 11072 file descriptors available
2008/08/25 09:56:35| DNS Socket created at 0.0.0.0, port 50776, FD 6
2008/08/25 09:56:35| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/25 09:56:35| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/25 09:56:35| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/25 09:56:36| Unlinkd pipe opened on FD 26
2008/08/25 09:56:36| Swap maxSize 10240000 KB, estimated 787692 objects
2008/08/25 09:56:36| Target number of buckets: 39384
2008/08/25 09:56:36| Using 65536 Store buckets
2008/08/25 09:56:36| Max Mem  size: 32768 KB
2008/08/25 09:56:36| Max Swap size: 10240000 KB
2008/08/25 09:56:36| Version 1 of swap file with LFS support detected...
2008/08/25 09:56:36| Rebuilding storage in /share/squid/cache (DIRTY)
2008/08/25 09:56:36| Using Least Load store dir selection
2008/08/25 09:56:36| Set Current Directory to /share/squid/cache
2008/08/25 09:56:36| Loaded Icons.
2008/08/25 09:56:36| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 28.
2008/08/25 09:56:36| HTCP Disabled.
2008/08/25 09:56:36| Configuring Parent 127.0.0.1/8888/0
2008/08/25 09:56:36| Ready to serve requests.
2008/08/25 09:56:36| Store rebuilding is 22.34% complete
2008/08/25 09:56:37| Done reading /share/squid/cache swaplog (18332 entries)
2008/08/25 09:56:37| Finished rebuilding storage from disk.
2008/08/25 09:56:37|     18332 Entries scanned
2008/08/25 09:56:37|         0 Invalid entries.
2008/08/25 09:56:37|         0 With invalid flags.
2008/08/25 09:56:37|     18329 Objects loaded.
2008/08/25 09:56:37|         0 Objects expired.
2008/08/25 09:56:37|         0 Objects cancelled.
2008/08/25 09:56:37|         0 Duplicate URLs purged.
2008/08/25 09:56:37|         3 Swapfile clashes avoided.
2008/08/25 09:56:37|   Took 1.07 seconds (17189.65 objects/sec).
2008/08/25 09:56:37| Beginning Validation Procedure
2008/08/25 09:56:37|   Completed Validation Procedure
2008/08/25 09:56:37|   Validated 36686 Entries
2008/08/25 09:56:37|   store_swap_size = 205684
2008/08/25 09:56:37| storeLateRelease: released 0 objects
FATAL: Received Segment Violation...dying.
2008/08/25 09:56:39| storeDirWriteCleanLogs: Starting...
2008/08/25 09:56:39|   Finished.  Wrote 18332 entries.
2008/08/25 09:56:39|   Took 0.01 seconds (3124062.71 entries/sec).
CPU Usage: 0.184 seconds = 0.042 user + 0.142 sys
Maximum Resident Size: 15332 KB
Page faults with physical i/o: 0
2008/08/25 09:56:43| Starting Squid Cache version 3.0.STABLE1 for i386-portbld-freebsd6.2...
2008/08/25 09:56:43| Process ID 29795
2008/08/25 09:56:43| With 11072 file descriptors available
2008/08/25 09:56:43| DNS Socket created at 0.0.0.0, port 52284, FD 6
2008/08/25 09:56:43| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/25 09:56:43| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/25 09:56:43| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/25 09:56:43| Unlinkd pipe opened on FD 26
2008/08/25 09:56:43| Swap maxSize 10240000 KB, estimated 787692 objects
2008/08/25 09:56:43| Target number of buckets: 39384
2008/08/25 09:56:43| Using 65536 Store buckets
2008/08/25 09:56:43| Max Mem  size: 32768 KB
2008/08/25 09:56:43| Max Swap size: 10240000 KB
2008/08/25 09:56:43| Version 1 of swap file with LFS support detected...
2008/08/25 09:56:43| Rebuilding storage in /share/squid/cache (CLEAN)
2008/08/25 09:56:43| Using Least Load store dir selection
2008/08/25 09:56:43| Set Current Directory to /share/squid/cache
2008/08/25 09:56:43| Loaded Icons.
2008/08/25 09:56:43| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 28.
2008/08/25 09:56:43| HTCP Disabled.
2008/08/25 09:56:43| Configuring Parent 127.0.0.1/8888/0
2008/08/25 09:56:43| Ready to serve requests.
FATAL: Received Segment Violation...dying.
2008/08/25 09:56:43| Not currently OK to rewrite swap log.
2008/08/25 09:56:43| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.050 seconds = 0.025 user + 0.025 sys
Maximum Resident Size: 11696 KB
Page faults with physical i/o: 0
2008/08/25 09:56:46| Starting Squid Cache version 3.0.STABLE1 for i386-portbld-freebsd6.2...
2008/08/25 09:56:46| Process ID 29813
2008/08/25 09:56:46| With 11072 file descriptors available
2008/08/25 09:56:46| DNS Socket created at 0.0.0.0, port 60644, FD 6
2008/08/25 09:56:46| Adding nameserver 212.57.102.178 from /etc/resolv.conf
2008/08/25 09:56:46| helperOpenServers: Starting 10 'squidGuard' processes
2008/08/25 09:56:46| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/08/25 09:56:46| Unlinkd pipe opened on FD 26
2008/08/25 09:56:46| Swap maxSize 10240000 KB, estimated 787692 objects
2008/08/25 09:56:46| Target number of buckets: 39384
2008/08/25 09:56:46| Using 65536 Store buckets
2008/08/25 09:56:46| Max Mem  size: 32768 KB
2008/08/25 09:56:46| Max Swap size: 10240000 KB
2008/08/25 09:56:46| Version 1 of swap file with LFS support detected...
2008/08/25 09:56:46| Rebuilding storage in /share/squid/cache (DIRTY)
2008/08/25 09:56:46| Using Least Load store dir selection
2008/08/25 09:56:46| Set Current Directory to /share/squid/cache
2008/08/25 09:56:46| Loaded Icons.
2008/08/25 09:56:46| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 28.
2008/08/25 09:56:46| HTCP Disabled.
2008/08/25 09:56:46| Configuring Parent 127.0.0.1/8888/0
2008/08/25 09:56:46| Ready to serve requests.
2008/08/25 09:56:47| Store rebuilding is 22.34% complete
FATAL: Received Segment Violation...dying.
2008/08/25 09:56:47| Not currently OK to rewrite swap log.
2008/08/25 09:56:47| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.081 seconds = 0.029 user + 0.052 sys
Maximum Resident Size: 14296 KB
Page faults with physical i/o: 0
Вот что в access.log

Код: Выделить всё

1219643796.904    181 192.168.2.143 TCP_MISS/200 5758 GET http://avt.foto.mail.ru/mail/shir0nin/_avatar90? lebensgefahr NONE/- image/jpeg
1219643799.924    567 192.168.2.143 TCP_MISS/200 66164 GET http://my.mail.ru/? lebensgefahr NONE/- text/html
1219643807.304    231 192.168.2.143 TCP_CLIENT_REFRESH_MISS/304 274 GET http://img.mail.ru/mail/ru/images/blogs/once_a_leader.gif lebensgefahr DEFAULT_PARENT/127.0.0.1 -
1219643807.304    231 192.168.2.143 TCP_CLIENT_REFRESH_MISS/304 274 GET http://img.mail.ru/mail/ru/images/my/ico_best.gif lebensgefahr DEFAULT_PARENT/127.0.0.1 -
1219643807.311    238 192.168.2.143 TCP_CLIENT_REFRESH_MISS/304 274 GET http://img.mail.ru/r/foto2/ico_show_foto.gif lebensgefahr DEFAULT_PARENT/127.0.0.1 -
1219643807.389     84 192.168.2.143 TCP_CLIENT_REFRESH_MISS/304 274 GET http://img.mail.ru/r/my/institute_rating.gif lebensgefahr DEFAULT_PARENT/127.0.0.1 -
1219643807.402     89 192.168.2.143 TCP_MISS/304 274 GET http://img.mail.ru/r/js/rb_flash.js lebensgefahr DEFAULT_PARENT/127.0.0.1 -
1219643807.403    330 192.168.2.143 TCP_CLIENT_REFRESH_MISS/200 677 GET http://img.mail.ru/mail/ru/images/blogs/community.gif lebensgefahr DEFAULT_PARENT/127.0.0.1 image/gif
1219643807.404     97 192.168.2.143 TCP_CLIENT_REFRESH_MISS/302 1240 GET http://r.mail.ru/cln5153/img.mail.ru/1.gif lebensgefahr DEFAULT_PARENT/127.0.0.1 text/html
1219643807.436     25 192.168.2.143 TCP_MISS/304 274 GET http://img.mail.ru/1.gif lebensgefahr NONE/- -

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 10:53:01

грохни кэш и попробуй создать его по новому
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 11:51:23

Я это делал уже несколько раз, в первом посте это писал.
Последний раз редактировалось BlitzKrieg 2008-08-25 11:53:50, всего редактировалось 1 раз.

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 11:53:09

Squid 3.0.8 не собирался пока не отметил в make config SQUID_CARP.
Попробую обновить до 3.0.8 и посмотреть чего будет.

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 11:57:37

сделай ход конем.
поставь monitord пусть в случае падения перезапускает squid
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 12:06:26

Нееее, енто мне так религия не позволяет. Вот если других вариантов не будет, то тогда буду лошадью ходить, век воли не видать.

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 12:14:55

не знаю, вот стоит у меня 2.6 и никаких нареканий.
вот выйдет 3.1 тогда посмотрим.
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 12:19:21

У мну тож не было нареканий более чем 6 мес.

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 12:22:06

Для страждущих выложу, мож тоже бут такая ошибка.
Собираю Squid 3.0.8 - выпадает.

Код: Выделить всё

neighbors.cc: In function `void dump_peer_options(StoreEntry*, peer*)':
neighbors.cc:1612: error: 'struct _peer::<anonymous>' has no member named 'carp'
*** Error code 1
Решается путем отметки в make config опции SQUID_CARP

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 12:28:21

пиши багрепорт.
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 12:45:12

Обновил до 3.0.8 тоже самое происходит :cry:

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 15:52:20

Вобщем немного локализовал проблему :-)
Сквид падает тут же после попытки получить страничку http://my.mail.ru/?from_commercial=3, например mail.ru открывает норм. А при открытии этой падает, появляется squid.core и т.д.
Есть на виртуальной машине сквид с тем же конфигом и всем остальным, там такой беды нет.

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-25 17:11:40

отключи havp и попробуй зайти на эту страничку еще раз.
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-25 21:20:44

Без havp эта страница вообще не открывается. Ехплорер пишет "Готово" а страница не открывается. ПРичем это касается только mail.ru

Аватара пользователя
manefesto
Группенфюррер
Сообщения: 6934
Зарегистрирован: 2007-07-20 8:27:30
Откуда: Пермь
Контактная информация:

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение manefesto » 2008-08-26 6:55:39

кстати тема поднималась что havp ловит на mail.ru и еще где то вирусы.
попробуй кстати перезапустить havp && clamd, он по идее у тебя должен сругаться что надо обновить версию
я такой яростный шо аж пиздеЦ
Изображение

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: Squid падает FATAL: Received Segment Violation...dying

Непрочитанное сообщение BlitzKrieg » 2008-08-26 7:07:32

Я держу clamd up to date. Ругается если запускать freshclam, но это только когда clamd не up to date.
Последний раз редактировалось BlitzKrieg 2008-08-26 7:12:48, всего редактировалось 1 раз.