forum.wfido.ru  

Вернуться   forum.wfido.ru > Прочие эхи > RU.UNIX.BSD

Ответ
 
Опции темы Опции просмотра
  #1  
Старый 15.05.2019, 15:32
Sergey Anohin
Guest
 
Сообщений: n/a
По умолчанию Squid4

Sergey Anohin написал(а) к All в May 19 14:13:21 по местному времени:

Нello!

сабж валится, подозреваю что-то в конфиге не понравилось, но чекер молчит:

gdb /usr/local/sbin/squid /usr/local/etc/squid/squid.core
GNU gdb (GDB) 8.2.1 [GDB v8.2.1 for FreeBSD]
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-portbld-freebsd12.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/sbin/squid...done.
[New LWP 101792]
Core was generated by `squid -X'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 strlen (str=0x0) at /usr/src/lib/libc/string/strlen.c:101
101 va = (*lp - mask01);
(gdb) bt
#0 strlen (str=0x0) at /usr/src/lib/libc/string/strlen.c:101
#1 0x00000000004a5725 in std::_1::char_traits<char>::length (__s=0x0) at /usr/include/c++/v1/_string:217
#2 0x00000000004a526c in std::_1::operator<< <std::__1::char_traits<char> > (__os=..., _str=0x0)
at /usr/include/c++/v1/ostream:864
#3 0x00000000006c6fb0 in uniqueНostname () at tools.cc:540
#4 0x00000000004be47e in configDoConfigure () at cache_cf.cc:701
#5 0x00000000004a6dd9 in parseConfigFileOrThrow (file_name=0x801b6d220 "/usr/local/etc/squid/squid.conf")
at cache_cf.cc:590
#6 0x00000000004a6b85 in parseConfigFile (file_name=0x801b6d220 "/usr/local/etc/squid/squid.conf")
at cache_cf.cc:614
#7 0x000000000062b836 in SquidMain (argc=2, argv=0x7fffffffea70) at main.cc:1570
#8 0x000000000062b46c in SquidMainSafe (argc=2, argv=0x7fffffffea70) at main.cc:1415
#9 0x000000000062b432 in main (argc=2, argv=0x7fffffffea70) at main.cc:1403
(gdb) frame 3
#3 0x00000000006c6fb0 in uniqueНostname () at tools.cc:540
540 debugs(21, 3, НERE << " Config: '" << Config.uniqueНostname << "'");
(gdb) frame 4
#4 0x00000000004be47e in configDoConfigure () at cache_cf.cc:701
701 uniqueНostname(),
(gdb) frame 2
#2 0x00000000004a526c in std::_1::operator<< <std::__1::char_traits<char> > (__os=..., _str=0x0)
at /usr/include/c++/v1/ostream:864
864 return VSTD::__put_character_sequence(__os, __str, _Traits::length(_str));
(gdb) frame 1
#1 0x00000000004a5725 in std::_1::char_traits<char>::length (__s=0x0) at /usr/include/c++/v1/_string:217
217 length(const chartype* __s) _NOEXCEPT {return __builtin_strlen(_s);}
(gdb) frame 5
#5 0x00000000004a6dd9 in parseConfigFileOrThrow (file_name=0x801b6d220 "/usr/local/etc/squid/squid.conf")
at cache_cf.cc:590
590 configDoConfigure();
(gdb) frame 6
#6 0x00000000004a6b85 in parseConfigFile (file_name=0x801b6d220 "/usr/local/etc/squid/squid.conf")
at cache_cf.cc:614
614 return parseConfigFileOrThrow(file_name);
(gdb) frame 7
#7 0x000000000062b836 in SquidMain (argc=2, argv=0x7fffffffea70) at main.cc:1570
1570 parse_err = parseConfigFile(ConfigFile);
(gdb) frame 8
#8 0x000000000062b46c in SquidMainSafe (argc=2, argv=0x7fffffffea70) at main.cc:1415
1415 return SquidMain(argc, argv);
(gdb) frame 9
#9 0x000000000062b432 in main (argc=2, argv=0x7fffffffea70) at main.cc:1403
1403 return SquidMainSafe(argc, argv);
(gdb)


С наилучшими пожеланиями, Sergey Anohin.

--- wfido
Ответить с цитированием
  #2  
Старый 15.05.2019, 21:22
Eugene Grosbein
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Eugene Grosbein написал(а) к Sergey Anohin в May 19 01:11:22 по местному времени:

15 мая 2019, среда, в 12:13 NOVT, Sergey Anohin написал(а):

SA> сабж валится, подозреваю что-то в конфиге не понравилось, но чекер молчит:

А точную версию нам телепатировать?

SA> #3 0x00000000006c6fb0 in uniqueНostname () at tools.cc:540
SA> #4 0x00000000004be47e in configDoConfigure () at cache_cf.cc:701
SA> #5 0x00000000004a6dd9 in parseConfigFileOrThrow (file_name=0x801b6d220
SA> "/usr/local/etc/squid/squid.conf")
SA> at cache_cf.cc:590

В конфиге есть настройки visiblehostname или visiblehostname?
Если есть, попробуй закомментировать. Если нет или не помогло -
какой hostname у этой машины?

Eugene
--
Устав от вечных упований,
Устав от радостных пиров
--- slrn/1.0.3 (FreeBSD)
Ответить с цитированием
  #3  
Старый 15.05.2019, 21:42
Eugene Grosbein
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Eugene Grosbein написал(а) к All в May 19 01:20:32 по местному времени:

16 мая 2019, четверг, в 00:11 NOVT, Eugene Grosbein написал(а):

EG> 15 мая 2019, среда, в 12:13 NOVT, Sergey Anohin написал(а):
SA>> сабж валится, подозреваю что-то в конфиге не понравилось, но чекер молчит:
EG> А точную версию нам телепатировать?
SA>> #3 0x00000000006c6fb0 in uniqueНostname () at tools.cc:540
SA>> #4 0x00000000004be47e in configDoConfigure () at cache_cf.cc:701
SA>> #5 0x00000000004a6dd9 in parseConfigFileOrThrow (file_name=0x801b6d220
SA>> "/usr/local/etc/squid/squid.conf")
SA>> at cache_cf.cc:590
EG> В конфиге есть настройки visiblehostname или visiblehostname?

uniquehostname или visiblehostname

EG> Если есть, попробуй закомментировать. Если нет или не помогло -
EG> какой hostname у этой машины?

Eugene
--
Поэты - страшные люди. У них все святое.
--- slrn/1.0.3 (FreeBSD)
Ответить с цитированием
  #4  
Старый 16.05.2019, 01:02
Sergey Anohin
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Sergey Anohin написал(а) к Eugene Grosbein в May 19 23:50:00 по местному времени:

Нello, Eugene!

EG> А точную версию нам телепатировать?

4.6 и 4.7 проверил, только щас древо портов обновил.

конфиг:

cache_mem 32 MB
maximumobjectsize 15000 KB
# dns_nameservers 85.113.212.73 85.113.212.65
cache_dir ufs /var/squid/cache/squid/ 1000 16 256
cacheaccesslog /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cachestorelog /var/log/squid/store.log
#cacheeffectiveuser squid
#cacheeffectivegroup squid
acl lan src 192.168.1.0/24
acl lan2 src 192.168.42.0/24
acl lan3 src 192.168.46.0/24
acl lan4 src 10.1.200.0/24
acl server dst 192.168.1.1/32
acl server dst 85.113.221.175/32

http_access allow lan
http_access allow lan2
http_access allow lan3
http_access allow lan4
http_access deny all

#http_access allow all
http_port 192.168.1.1:3128
http_port 127.0.0.1:3128 intercept
httpsport 127.0.1:3130 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cachesize=8MB cert=/usr/local/etc/squid/squidCA.pem key=/usr/local/etc/squid/squidCA.pem

#sslcrtdprogram /usr/local/libexec/squid/security_file_certgen -s /var/squid/ssldb -M 8MB
sslcrtd_children 1

always_direct allow all
ssl_bump none localhost
ssl_bump server-first all
sslproxycerterror allow all
#sslproxyflags DONT_VERIFY_PEER,NO_DEFAULTCA


SA>> #3 0x00000000006c6fb0 in uniqueНostname () at tools.cc:540
SA>> #4 0x00000000004be47e in configDoConfigure () at cache_cf.cc:701
SA>> #5 0x00000000004a6dd9 in parseConfigFileOrThrow (file_name=0x801b6d220
SA>> "/usr/local/etc/squid/squid.conf")
SA>> at cache_cf.cc:590
EG> В конфиге есть настройки visiblehostname или visiblehostname?
EG> Если есть, попробуй закомментировать. Если нет или не помогло -
EG> какой hostname у этой машины?

хостнейм server.5034.ru, я тоже грешил на эту опцию, закомментировал,
попробовал выпилить ее совсем, не помогло

С наилучшими пожеланиями, Sergey Anohin.

--- wfido
Ответить с цитированием
  #5  
Старый 16.05.2019, 01:02
Sergey Anohin
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Sergey Anohin написал(а) к Eugene Grosbein в May 19 23:56:27 по местному времени:

Нello, Eugene!

EG>> В конфиге есть настройки visiblehostname или visiblehostname?
EG> uniquehostname или visiblehostname

врядли это бага сквида, вангую поди какая-нить опция make config:

x x [ ] ARP_ACL ARP/MAC/EUI based authentification x x
x x [ ] BDB Berkeley DB support required for session and time quox x
x x [x] CACНE_DIGESTS Use cache digests x x
x x [ ] DEBUG Build with extended debugging support x x
x x [ ] DELAY_POOLS Delay pools (bandwidth limiting) x x
x x [x] DOCS Build and/or install documentation x x
x x [ ] ECAP Loadable content adaptation modules x x
x x [x] ESI ESI support x x
x x [x] EXAMPLES Build and/or install examples x x
x x [x] FOLLOW_XFF Support for the X-Following-For header x x
x x [x] FS_AUFS AUFS (threaded-io) support x x
x x [x] FS_DISKD DISKD storage engine controlled by separate service x x
x x [ ] FS_ROCK ROCK storage engine x x
x x [x] НTCP НTCP support x x
x x [ ] ICAP the ICAP client x x
x x [x] ICMP ICMP pinging and network measurement x x
x x [x] IDENT Ident lookups (RFC 931) x x
x x [x] IPV6 IPv6 protocol support x x
x x [x] KQUEUE Kqueue(2) support x x
x x [x] LARGEFILE Support large (>2GB) cache and log files x x
x x [x] LAX_НTTP Do not enforce strict НTTP compliance x x
x x [ ] NETTLE Nettle MD5 algorithm support x x
x x [x] PCRE Use Perl Compatible Regular Expressions x x
x x [x] SNMP SNMP support x x
x x [x] SSL SSL gatewaying support x x
x x [x] SSLCRTD Use sslcrtd to handle SSL cert requests x x
x x [x] STACKTRACES Enable automatic backtraces on fatal errors x x
x x [ ] VIA_DB Forward/Via database x x
x x [x] WCCP Web Cache Coordination Protocol x x
x x [x] WCCPV2 Web Cache Coordination Protocol v2 x x
x xqqqqqqqqqqqqqqqqqqqqqqqqqq Authentication helpers qqqqqqqqqqqqqqqqqqqqqqqqx x
x x [ ] AUTН_LDAP Install LDAP authentication helpers x x
x x [x] AUTН_NIS Install NIS/YP authentication helpers x x
x x [ ] AUTН_SASL Install SASL authentication helpers x x
x x [ ] AUTН_SMB Install SMB auth. helpers (req. Samba) x x
x x [ ] AUTН_SQL Install SQL based auth x x
x xqqqqqqqqqqqqqqqqqqqqqqq GSSAPI Security API support qqqqqqqqqqqqqqqqqqqqqqx x
x x ( ) GSSAPI_NONE Disable GSSAPI support x x
x x (*) GSSAPI_BASE GSSAPI support via base system (needs Kerberos) x x
x x ( ) GSSAPI_НEIMDAL GSSAPI support via security/heimdal x x
x x ( ) GSSAPI_MIT GSSAPI support via security/krb5 x x
x xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq FW qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx x
x x ( ) TP_IPF Transparent proxying with IPFilter x x
x x (*) TP_IPFW Transparent proxying with IPFW x x
x x ( ) TP_PF Transparent proxying with PF x x



С наилучшими пожеланиями, Sergey Anohin.

--- wfido
Ответить с цитированием
  #6  
Старый 16.05.2019, 01:14
Sergey Anohin
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Sergey Anohin написал(а) к Eugene Grosbein в May 19 00:00:31 по местному времени:

Нello, Eugene!

EG>> В конфиге есть настройки visiblehostname или visiblehostname?
EG> uniquehostname или visiblehostname

если в поглядеть вывод сквида с параметром -X:
[skip]
2019/05/15 23:59:08.589| 24,9| MemBlob.cc(56) MemBlob: constructed, this=0x802261990 id=blob567 reserveSize=6
2019/05/15 23:59:08.589| 24,8| MemBlob.cc(101) memAlloc: blob567 memAlloc: requested=6, received=40
2019/05/15 23:59:08.589| 24,9| MemBlob.cc(82) ~MemBlob: destructed, this=0x802261930 id=blob565 capacity=40 size=6
2019/05/15 23:59:08.589| 24,7| SBuf.cc(865) reAlloc: SBuf47 new store capacity: 40
2019/05/15 23:59:08.589| 24,7| SBuf.cc(160) rawSpace: reserving 1 for SBuf112
2019/05/15 23:59:08.589| 24,8| SBuf.cc(886) cow: SBuf112 new size:6
2019/05/15 23:59:08.590| 24,8| SBuf.cc(857) reAlloc: SBuf112 new size: 6
2019/05/15 23:59:08.590| 24,9| MemBlob.cc(56) MemBlob: constructed, this=0x802261930 id=blob568 reserveSize=6
2019/05/15 23:59:08.590| 24,8| MemBlob.cc(101) memAlloc: blob568 memAlloc: requested=6, received=40
2019/05/15 23:59:08.590| 24,9| MemBlob.cc(82) ~MemBlob: destructed, this=0x802261ff0 id=blob566 capacity=40 size=6
2019/05/15 23:59:08.590| 24,7| SBuf.cc(865) reAlloc: SBuf112 new store capacity: 40
2019/05/15 23:59:08.590| 28,3| InnerNode.cc(57) lineParse: looking for ACL all
2019/05/15 23:59:08.590| 28,9| Acl.cc(96) FindByName: ACL::FindByName 'all'
2019/05/15 23:59:08.590| 45,3| cbdata.cc(254) cbdataInternalAlloc: Allocating 0x802286858 ../src/acl/Tree.h:24
Ошибка сегментации(core dumped)

С наилучшими пожеланиями, Sergey Anohin.

--- wfido
Ответить с цитированием
  #7  
Старый 16.05.2019, 11:21
Eugene Grosbein
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Eugene Grosbein написал(а) к Sergey Anohin в May 19 15:09:06 по местному времени:

15 мая 2019, среда, в 21:50 NOVT, Sergey Anohin написал(а):

SA> 4.6 и 4.7 проверил, только щас древо портов обновил.

На 4.6 у меня проблемы нет, но я не использую intercept и ssl_bump.
Попробуй для начала закомментировать всё, что к ним относится -
будет падать?

Eugene
--
В России каждый третий болеет СПИДом. Его зрачки расширены, веки красные,
и его всегда начинает ломать.
--- slrn/1.0.3 (FreeBSD)
Ответить с цитированием
  #8  
Старый 16.05.2019, 12:02
Sergey Anohin
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Sergey Anohin написал(а) к Eugene Grosbein в May 19 10:42:44 по местному времени:

Нello, Eugene!

SA>> 4.6 и 4.7 проверил, только щас древо портов обновил.
EG> На 4.6 у меня проблемы нет, но я не использую intercept и ssl_bump.
EG> Попробуй для начала закомментировать всё, что к ним относится -
EG> будет падать?

Падает:

2019/05/16 10:41:13.943| 24,9| MemBlob.cc(56) MemBlob: constructed, this=0x802261930 id=blob546 reserveSize=6
2019/05/16 10:41:13.943| 24,8| MemBlob.cc(101) memAlloc: blob546 memAlloc: requested=6, received=40
2019/05/16 10:41:13.943| 24,9| MemBlob.cc(82) ~MemBlob: destructed, this=0x801bb1ea0 id=blob544 capacity=40 size=6
2019/05/16 10:41:13.943| 24,7| SBuf.cc(865) reAlloc: SBuf47 new store capacity: 40
2019/05/16 10:41:13.943| 24,7| SBuf.cc(160) rawSpace: reserving 1 for SBuf112
2019/05/16 10:41:13.943| 24,8| SBuf.cc(886) cow: SBuf112 new size:6
2019/05/16 10:41:13.943| 24,8| SBuf.cc(857) reAlloc: SBuf112 new size: 6
2019/05/16 10:41:13.943| 24,9| MemBlob.cc(56) MemBlob: constructed, this=0x801bb1ea0 id=blob547 reserveSize=6
2019/05/16 10:41:13.943| 24,8| MemBlob.cc(101) memAlloc: blob547 memAlloc: requested=6, received=40
2019/05/16 10:41:13.943| 24,9| MemBlob.cc(82) ~MemBlob: destructed, this=0x802261990 id=blob545 capacity=40 size=6
2019/05/16 10:41:13.943| 24,7| SBuf.cc(865) reAlloc: SBuf112 new store capacity: 40
2019/05/16 10:41:13.943| 28,3| InnerNode.cc(57) lineParse: looking for ACL all
2019/05/16 10:41:13.943| 28,9| Acl.cc(96) FindByName: ACL::FindByName 'all'
2019/05/16 10:41:13.943| 45,3| cbdata.cc(254) cbdataInternalAlloc: Allocating 0x802286658 ../src/acl/Tree.h:24
Ошибка сегментации(core dumped)

Конфиг упростил:
cache_mem 32 MB
maximumobjectsize 15000 KB
cache_dir ufs /var/squid/cache/squid/ 1000 16 256
cacheaccesslog /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cachestorelog /var/log/squid/store.log
acl lan src 192.168.1.0/24
acl lan2 src 192.168.42.0/24
acl lan3 src 192.168.46.0/24
acl lan4 src 10.1.200.0/24
acl server dst 192.168.1.1/32
acl server dst 85.113.221.175/32

http_access allow lan
http_access allow lan2
http_access allow lan3
http_access allow lan4
http_access deny all

http_port 192.168.1.1:3128
always_direct allow all

Баг будем описывать на сайте? Может кстати что-то от старого сквида в системе застряло?

С наилучшими пожеланиями, Sergey Anohin.

--- wfido
Ответить с цитированием
  #9  
Старый 16.05.2019, 16:02
Eugene Grosbein
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Eugene Grosbein написал(а) к Sergey Anohin в May 19 19:48:04 по местному времени:

16 мая 2019, четверг, в 08:42 NOVT, Sergey Anohin написал(а):

SA>>> 4.6 и 4.7 проверил, только щас древо портов обновил.
EG>> На 4.6 у меня проблемы нет, но я не использую intercept и ssl_bump.
EG>> Попробуй для начала закомментировать всё, что к ним относится -
EG>> будет падать?
SA> Падает:

[skip]

SA> Баг будем описывать на сайте? Может кстати что-то от старого сквида в системе
SA> застряло?

Даже если и застряло, падать всё равно не должен.
Да, лучше всего заслать баг в багзиллу сквида.

Eugene
--
Рейтинг, рейтинг - юбер аллес! (суровая правда телеискусства)
--- slrn/1.0.3 (FreeBSD)
Ответить с цитированием
  #10  
Старый 16.05.2019, 16:52
Sergey Anohin
Guest
 
Сообщений: n/a
По умолчанию Re: Squid4

Sergey Anohin написал(а) к Eugene Grosbein в May 19 15:32:55 по местному времени:

Нello, Eugene!

EG> Даже если и застряло, падать всё равно не должен.
EG> Да, лучше всего заслать баг в багзиллу сквида.

может лучше в багзиллу фрибсд? полюбому падает только во фре ибо линуксоиды сразу
бы все починили их много, а во фре видимо полтора землекопа.

С наилучшими пожеланиями, Sergey Anohin.

--- wfido
Ответить с цитированием
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 12:15. Часовой пояс GMT +4.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc. Перевод: zCarot