#include <hallo.h> * Stefano Rivera [Wed, Apr 27 2011, 01:04:17PM]: > Package: apt-cacher-ng > Version: 0.6.1-1 > Severity: normal > > Hi, a fair chunk of the mirrors in ZA are lagging at the moment because > the biggest one has decided that updates are unnecessary... So I > switched my apt-cacher-ng to an alternate: > http://mirror.is.co.za/mirror/ftp.debian.org/security.debian.org > > Now apt-get update causes it to segfault. > > I can't see the cause myself, but here's what I've found (with a nostrip > rebuild):
That may be sound embarassing but I cannot either; nothing really makes sense. Like this one: > dlcon::WorkLoop (this=0x95b6d0) at > /build/apt-cacher-ng-JpqKtQ/apt-cacher-ng-0.6.1/source/dlcon.cc:497 > 497 /build/apt-cacher-ng-JpqKtQ/apt-cacher-ng-0.6.1/source/dlcon.cc: No > such file or directory. > in /build/apt-cacher-ng-JpqKtQ/apt-cacher-ng-0.6.1/source/dlcon.cc is simply leaving the work loop. There might be a bug in some d'tor from that block's local objects but I cannot see any, and the particular code might have been optimized away. Could you please rebuild with DEB_BUILD_OPTIONS="noopt nostrip" after applying the attached patch, and then try again? Thanks, Eduard. -- Der Schmerz ist ein heiliger Engel, und durch ihn sind die Menschen größer geworden als durch alle Freuden dieser Welt. -- Adalbert Stifter
Index: GNUmakefile =================================================================== --- GNUmakefile (Revision 3690) +++ GNUmakefile (Arbeitskopie) @@ -1,7 +1,13 @@ +ifneq ($(CXXFLAGS),) +CMAKEOPTS += "-DCMAKE_CXX_FLAGS=$(CXXFLAGS)" +else +CMAKEOPTS += "-DCMAKE_CXX_FLAGS=-g -O2" +endif + all: ls build/ 2>/dev/null >/dev/null || mkdir build - cd build && cmake .. && $(MAKE) + cd build && cmake .. $(CMAKEOPTS) && $(MAKE) DBTMP=dbgen/tmp @@ -95,7 +101,7 @@ # pass-through %: ls build/ 2>/dev/null >/dev/null || mkdir build - cd build && cmake .. && $(MAKE) $@ + cd build && cmake .. $(CMAKEOPTS) && $(MAKE) $@ # no MT, cmake doesn't like it .NOTPARALLEL: Index: CMakeLists.txt =================================================================== --- CMakeLists.txt (Revision 3689) +++ CMakeLists.txt (Arbeitskopie) @@ -2,7 +2,7 @@ PROJECT(ACNG CXX C) INCLUDE_DIRECTORIES(. ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR} "include") -SET(FLAGS_ACNG " -g -O2 -pthread -Wall -D_FILE_OFFSET_BITS=64 ") +SET(FLAGS_ACNG " -pthread -Wall -D_FILE_OFFSET_BITS=64 ") # minimum prqs list(APPEND AcngLdList pthread z bz2)