Discussion:
[squid-users] FATAL: xcalloc: Unable to allocate 18446744073487757627 blocks of 1 bytes!
HackXBack
2015-03-08 23:19:20 UTC
Permalink
2015/03/09 03:27:28 kid1| cannot change current directory to
/var/spool/squid/cache/squid: (2) No such file or directory
2015/03/09 03:27:28 kid1| Current Directory is /
2015/03/09 03:27:28 kid1| Starting Squid Cache version 3.4.12 for
x86_64-unknown-linux-gnu...
2015/03/09 03:27:28 kid1| Process ID 2993
2015/03/09 03:27:28 kid1| Process Roles: worker
2015/03/09 03:27:28 kid1| With 65536 file descriptors available
2015/03/09 03:27:28 kid1| Initializing IP Cache...
2015/03/09 03:27:28 kid1| DNS Socket created at 0.0.0.0, FD 7
2015/03/09 03:27:28 kid1| Adding nameserver 127.0.0.1 from squid.conf
2015/03/09 03:27:28 kid1| helperOpenServers: Starting 40/50 'ssl_crtd'
processes
2015/03/09 03:27:28 kid1| helperOpenServers: Starting 1/1 'storeid.pl'
processes
2015/03/09 03:27:28 kid1| Logfile: opening log /var/log/squid/access.log
2015/03/09 03:27:28 kid1| WARNING: log name now starts with a module name.
Use 'stdio:/var/log/squid/access.log'
FATAL: xcalloc: Unable to allocate 18446744073487757627 blocks of 1 bytes!

Squid Cache (Version 3.4.12): Terminated abnormally.
CPU Usage: 0.036 seconds = 0.016 user + 0.020 sys
Maximum Resident Size: 78368 KB
Page faults with physical i/o: 0





when i remove hard drive it work !! why ??




--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/FATAL-xcalloc-Unable-to-allocate-18446744073487757627-blocks-of-1-bytes-tp4670271.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Amos Jeffries
2015-03-09 03:57:00 UTC
Permalink
Post by HackXBack
2015/03/09 03:27:28 kid1| cannot change current directory to
/var/spool/squid/cache/squid: (2) No such file or directory
2015/03/09 03:27:28 kid1| Current Directory is /
2015/03/09 03:27:28 kid1| Starting Squid Cache version 3.4.12 for
x86_64-unknown-linux-gnu...
2015/03/09 03:27:28 kid1| Process ID 2993
2015/03/09 03:27:28 kid1| Process Roles: worker
2015/03/09 03:27:28 kid1| With 65536 file descriptors available
2015/03/09 03:27:28 kid1| Initializing IP Cache...
2015/03/09 03:27:28 kid1| DNS Socket created at 0.0.0.0, FD 7
2015/03/09 03:27:28 kid1| Adding nameserver 127.0.0.1 from squid.conf
2015/03/09 03:27:28 kid1| helperOpenServers: Starting 40/50 'ssl_crtd'
processes
2015/03/09 03:27:28 kid1| helperOpenServers: Starting 1/1 'storeid.pl'
processes
2015/03/09 03:27:28 kid1| Logfile: opening log /var/log/squid/access.log
2015/03/09 03:27:28 kid1| WARNING: log name now starts with a module name.
Use 'stdio:/var/log/squid/access.log'
FATAL: xcalloc: Unable to allocate 18446744073487757627 blocks of 1 bytes!
Squid Cache (Version 3.4.12): Terminated abnormally.
CPU Usage: 0.036 seconds = 0.016 user + 0.020 sys
Maximum Resident Size: 78368 KB
Page faults with physical i/o: 0
when i remove hard drive it work !! why ??
You have something of size 15YB being loaded from disk into memory.

A backtrace is needed to find out how.

Amos
HackXBack
2015-03-09 19:40:52 UTC
Permalink
no core dump created after restarting




--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/FATAL-xcalloc-Unable-to-allocate-18446744073487757627-blocks-of-1-bytes-tp4670271p4670285.html
Sent from the Squid - Users mailing list archive at Nabble.com.
HackXBack
2015-03-09 19:44:00 UTC
Permalink
***@debian:/etc/squid# gdb /usr/sbin/squid /var/spool/squid/cache/squid/core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/squid...done.
[New LWP 7263]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `(squid-1) -YC -f /etc/squid/squid.conf'.
Program terminated with signal 6, Aborted.
#0 0x00007f938c52d165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) backtrace
#0 0x00007f938c52d165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f938c5303e0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x0000000000573bc5 in fatal_dump (message=0xbaf580 "xcalloc: Unable to
allocate 18446744073645296089 blocks of 1 bytes!\n") at fatal.cc:138
#3 0x00000000007ab976 in xcalloc (n=18446744073645296089, sz=1) at
xalloc.cc:82
#4 0x00000000bfebfbff in ?? ()
#5 0x0000000000000006 in ?? ()
#6 0x0000000000001000 in ?? ()
#7 0x0000000000000011 in ?? ()
#8 0x0000000000000064 in ?? ()
#9 0x0000000000000003 in ?? ()
#10 0x0000000000400040 in ?? ()
#11 0x0000000000000004 in ?? ()
#12 0x0000000000000038 in ?? ()
#13 0x0000000000000005 in ?? ()
#14 0x0000000000000008 in ?? ()
#15 0x0000000000000007 in ?? ()
#16 0x00007f3c7d951000 in ?? ()
#17 0x0000000000000008 in ?? ()
#18 0x0000000000000000 in ?? ()
(gdb)




--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/FATAL-xcalloc-Unable-to-allocate-18446744073487757627-blocks-of-1-bytes-tp4670271p4670286.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Amos Jeffries
2015-03-10 08:30:41 UTC
Permalink
Post by HackXBack
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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-linux-gnu".
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/squid...done.
[New LWP 7263]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `(squid-1) -YC -f /etc/squid/squid.conf'.
Program terminated with signal 6, Aborted.
#0 0x00007f938c52d165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) backtrace
#0 0x00007f938c52d165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f938c5303e0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x0000000000573bc5 in fatal_dump (message=0xbaf580 "xcalloc: Unable to
allocate 18446744073645296089 blocks of 1 bytes!\n") at fatal.cc:138
#3 0x00000000007ab976 in xcalloc (n=18446744073645296089, sz=1) at
xalloc.cc:82
Oh darn. These bits ...
Post by HackXBack
#4 0x00000000bfebfbff in ?? ()
#5 0x0000000000000006 in ?? ()
#6 0x0000000000001000 in ?? ()
#7 0x0000000000000011 in ?? ()
#8 0x0000000000000064 in ?? ()
#9 0x0000000000000003 in ?? ()
#10 0x0000000000400040 in ?? ()
#11 0x0000000000000004 in ?? ()
#12 0x0000000000000038 in ?? ()
#13 0x0000000000000005 in ?? ()
#14 0x0000000000000008 in ?? ()
#15 0x0000000000000007 in ?? ()
#16 0x00007f3c7d951000 in ?? ()
#17 0x0000000000000008 in ?? ()
#18 0x0000000000000000 in ?? ()
(gdb)
Are the ones we need to see symbol names from.

If you self-built it from sources it will need to be rebuilt without
symbol stripping, then a new trace gathered.

If you built it using updated sources under the .deb package there
should be a squid-dbg binary with all the symbol names in to be loaded
by gdb instead of the sbin/squid parameter.


Amos
HackXBack
2015-03-10 09:39:31 UTC
Permalink
this is my configure option , what may cause the problem

./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var
--libdir=/usr/lib --includedir=/usr/include --datadir=/usr/share/squid
--infodir=/usr/share/info --mandir=/usr/share/man
--disable-dependency-tracking --disable-strict-error-checking
--enable-async-io=32 --with-aufs-threads=32 --with-pthreads
--enable-storeio=ufs,aufs,diskd --enable-removal-policies=lru,heap
--with-aio --with-dl --disable-icmp --enable-esi --enable-icap-client
--disable-wccp --enable-wccpv2 --enable-kill-parent-hack
--enable-cache-digests --disable-select --enable-http-violations
--enable-linux-netfilter --enable-follow-x-forwarded-for
--disable-ident-lookups --enable-x-accelerator-vary --enable-zph-qos
--with-default-user=proxy --with-logdir=/var/log/squid
--with-pidfile=/var/run/squid.pid --with-swapdir=/var/spool/squid
--with-large-files --enable-ltdl-convenience --with-filedescriptors=100000
--enable-ssl --enable-ssl-crtd --with-openssl --disable-auth --disable-ipv6
--enable-build-info="build by : ANDO_TBLRB && HackXBack"
--with-included-ltdl --enable-arp-acl --enable-epoll --enable-snmp
--enable-referer-log --disable-unlinkd --enable-truncate
--enable-useragent-log --enable-eui --enable-large-cache-files
--with-maxfd=65536 CFLAGS="-Wall -g -O3 -march=native -mtune=native -pipe
-DNUMTHREADS=60 -fomit-frame-pointer -fno-strict-aliasing -funroll-loops
-ffast-math -fno-exceptions" LDFLAGS="-Wl,-Bsymbolic-functions"




--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/FATAL-xcalloc-Unable-to-allocate-18446744073487757627-blocks-of-1-bytes-tp4670271p4670291.html
Sent from the Squid - Users mailing list archive at Nabble.com.
HackXBack
2015-03-12 12:27:13 UTC
Permalink
how to rebuilt without symbol stripping ????????????



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/FATAL-xcalloc-Unable-to-allocate-18446744073487757627-blocks-of-1-bytes-tp4670271p4670366.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Amos Jeffries
2015-03-12 12:57:27 UTC
Permalink
Post by HackXBack
this is my configure option , what may cause the problem
./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var
--libdir=/usr/lib --includedir=/usr/include --datadir=/usr/share/squid
--infodir=/usr/share/info --mandir=/usr/share/man
--disable-dependency-tracking --disable-strict-error-checking
--enable-async-io=32 --with-aufs-threads=32 --with-pthreads
--enable-storeio=ufs,aufs,diskd --enable-removal-policies=lru,heap
--with-aio --with-dl --disable-icmp --enable-esi --enable-icap-client
--disable-wccp --enable-wccpv2 --enable-kill-parent-hack
--enable-cache-digests --disable-select --enable-http-violations
--enable-linux-netfilter --enable-follow-x-forwarded-for
--disable-ident-lookups --enable-x-accelerator-vary --enable-zph-qos
--with-default-user=proxy --with-logdir=/var/log/squid
--with-pidfile=/var/run/squid.pid --with-swapdir=/var/spool/squid
--with-large-files --enable-ltdl-convenience --with-filedescriptors=100000
--enable-ssl --enable-ssl-crtd --with-openssl --disable-auth --disable-ipv6
--enable-build-info="build by : ANDO_TBLRB && HackXBack"
--with-included-ltdl --enable-arp-acl --enable-epoll --enable-snmp
--enable-referer-log --disable-unlinkd --enable-truncate
--enable-useragent-log --enable-eui --enable-large-cache-files
--with-maxfd=65536 CFLAGS="-Wall -g -O3 -march=native -mtune=native -pipe
-DNUMTHREADS=60 -fomit-frame-pointer -fno-strict-aliasing -funroll-loops
-ffast-math -fno-exceptions" LDFLAGS="-Wl,-Bsymbolic-functions"
Remove the -O3 or at least reduce it to -O1 and the -g should make the
symbols.

Its possible the rest fo the toolchain is removing them smoehow but
thats not clear from these options.

Note also that CFLAGS is only used for some old C libraries we have to
build. You are not defining any options for CXXFLAGS which is what the
C++ compiler uses to build Squid, so the default options are used.
squid -v output will show you what actually got used.

Amos
HackXBack
2015-03-15 15:09:03 UTC
Permalink
Okay Solved Thanks Amos,
where i can find all configure options that can be used for squid ?
can you give me link in wiki.
Thanks Mate ..



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/FATAL-xcalloc-Unable-to-allocate-18446744073487757627-blocks-of-1-bytes-tp4670271p4670434.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Amos Jeffries
2015-03-15 15:22:26 UTC
Permalink
Post by HackXBack
Okay Solved Thanks Amos,
where i can find all configure options that can be used for squid ?
./configure --help lists them with a ver brief explanation.

Amos

Loading...