Bug#1020677: httraqt: Segfault upon mirroring initiation

2022-10-09 Thread Bernhard Übelacker

Dear Maintainer,
I tried to have a look and found unfortunately the dbgsym package
not containing useful files.

This seems related to CMAKE_CXX_FLAGS getting reset,
therefore loosing Qt related flags.

Before the application crashed already when trying to open
one leaf in the tree view, with the Qt flags this crash did not happen,
so this might be related.

The second patch just removes a leftover CMakeLists.txt.rej from a previous 
patch.

Kind regards,
Bernhard


Before:
-- CMAKE_CXX_FLAGS -O3 -DNDEBUG -Wall

After:
-- CMAKE_CXX_FLAGS -g -O2 
-ffile-prefix-map=/home/benutzer/source/httraqt/git/httraqt=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -Wall -DQT_NO_DEPRECATED_WARNINGSFrom 1349c117855ba576dd9eb7aea2612550c58a1727 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= 
Date: Sun, 9 Oct 2022 16:29:40 +0200
Subject: Remove CMakeLists.txt.rej from 10_reproducible_build.patch.

---
 debian/patches/10_reproducible_build.patch | 27 --
 1 file changed, 27 deletions(-)

diff --git a/debian/patches/10_reproducible_build.patch b/debian/patches/10_reproducible_build.patch
index 22f5ebb..7a620e5 100644
--- a/debian/patches/10_reproducible_build.patch
+++ b/debian/patches/10_reproducible_build.patch
@@ -17,30 +17,3 @@ Last-Update: 2017-07-18
  MESSAGE("-- Version build date: ${BUILD_DATE}")
  
  configure_file (
 /dev/null
-+++ httraqt-1.4.9/CMakeLists.txt.rej
-@@ -0,0 +1,24 @@
-+--- CMakeLists.txt
- CMakeLists.txt
-+@@ -6,7 +6,7 @@ CMAKE_POLICY(SET CMP0003 OLD)
-+ CMAKE_POLICY(SET CMP0015 OLD)
-+ 
-+ # if you use the version 5, please change it to 5
-+-SET(USE_QT_VERSION 4)
-++SET(USE_QT_VERSION 5)
-+ 
-+ MESSAGE("Qt version for compiling: " ${USE_QT_VERSION})
-+ 
-+@@ -62,12 +62,6 @@ set(APP_RESOURCES  "${PROJECT_SOURCE_DIR
-+ MESSAGE("-- Version info: ${HTTRAQT_VERSION}") 
-+ SET(VERSION ${HTTRAQT_VERSION})
-+ 
-+-EXECUTE_PROCESS (
-+-  COMMAND date +"%d %b %Y"
-+-  COMMAND sed -e "s/\"//g"
-+-  OUTPUT_VARIABLE BUILD_DATE
-+-  OUTPUT_STRIP_TRAILING_WHITESPACE)
-+-
-+ MESSAGE("-- Version build date: ${BUILD_DATE}")
-+ 
-+ configure_file (
-- 
2.35.1

From a678025eece455ffcc3916c65bfac194b5747b1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= 
Date: Sun, 9 Oct 2022 16:34:36 +0200
Subject: Do not override CMAKE_CXX_FLAGS.

Adds additionally QT_NO_DEPRECATED_WARNINGS as those warnings
might be mostly useful for upstream developers.
---
 .../30_do_not_override_CMAKE_CXX_FLAGS.patch  | 21 +++
 debian/patches/series |  1 +
 2 files changed, 22 insertions(+)
 create mode 100644 debian/patches/30_do_not_override_CMAKE_CXX_FLAGS.patch

diff --git a/debian/patches/30_do_not_override_CMAKE_CXX_FLAGS.patch b/debian/patches/30_do_not_override_CMAKE_CXX_FLAGS.patch
new file mode 100644
index 000..b11608a
--- /dev/null
+++ b/debian/patches/30_do_not_override_CMAKE_CXX_FLAGS.patch
@@ -0,0 +1,21 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1310490..a51d391 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -26,11 +26,14 @@ OPTION (USE_PROFILER "Include in binary file profiling information" OFF)
+ 
+ 
+ IF(${USE_DEBUGGER})
+-  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
++  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG} -Wall")
+ ELSE()
+-  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
++  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} -Wall")
+ ENDIF()
+ 
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_DEPRECATED_WARNINGS")
++
++
+ MESSAGE(STATUS "CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}")
+ 
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 8d027f0..43c04ea 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 10_reproducible_build.patch
 20_cross.patch
+30_do_not_override_CMAKE_CXX_FLAGS.patch
-- 
2.35.1



Bug#1020677: httraqt: Segfault upon mirroring initiation

2022-09-24 Thread Calum McConnell
Package: httraqt
Version: 1.4.9-5
Severity: grave
Justification: renders package unusable

As written: I cannot use the package to complete any mirroring operation.
The program crashes a seccond after you start the mirroring, before any
of the download statistics are displayed (though the locations they will
appear in are)

My first attempt to run it printed out the following messages on STDOUT 
when the mirroring started:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use 
QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QObject::connect: No such signal QThread::terminated ()
QObject::connect:  (receiver name: 'MainWindow')
Segmentation fault

My second attempt to run (resuming the first download, only adjusting it to a 
debug-level log) printed the following
STDOUT message

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use 
QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QObject::connect: No such signal QThread::terminated ()
QObject::connect:  (receiver name: 'MainWindow')
Mirror launched on Sun, 25 Sep 2022 00:03:56 by HTTrack Website 
Copier/3.49-2+libhtsjava.so.2 [XR&CO'2014]
mirroring https://tomlehrersongs.com/ +*.bmp +*.tif +*.ico +*.jpeg +*.7z +*.exe 
+*.rar +*.gz +*.tgz +*.tar +*.zip +*.ps +*.txt +*.rtf +*.docx +*.doc +*.pdf 
+*.tex +*.odt +*.wmv +*.wma +*.ac3 +*.vid +*.swf +*.qt +*.mkv +*.vob +*.wav 
+*.rm +*.mp2 +*.asf +*.avi +*.mpeg +*.mpg +*.mov +*.png +*.gif +*.jpg +*.css 
+*.js +*.mp3 -ad.doubleclick.net/* with the wizard help..
Segmentation faulthrersongs.com/robots.txt (119 bytes) - OK

Attached is the debug-level log file produced on the second run



-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages httraqt depends on:
ii  libc6   2.34-8
ii  libhttrack2 3.49.2-1.1+b1
ii  libqt5core5a5.15.4+dfsg-5
ii  libqt5dbus5 5.15.4+dfsg-5
ii  libqt5gui5  5.15.4+dfsg-5
ii  libqt5widgets5  5.15.4+dfsg-5
ii  libstdc++6  12.2.0-3

httraqt recommends no packages.

httraqt suggests no packages.

-- no debconf information
HTTrack3.49-2+libhtsjava.so.2 launched on Sun, 25 Sep 2022 00:03:56 at 
https://tomlehrersongs.com/ +*.bmp +*.tif +*.ico +*.jpeg +*.7z +*.exe +*.rar 
+*.gz +*.tgz +*.tar +*.zip +*.ps +*.txt +*.rtf +*.docx +*.doc +*.pdf +*.tex 
+*.odt +*.wmv +*.wma +*.ac3 +*.vid +*.swf +*.qt +*.mkv +*.vob +*.wav +*.rm 
+*.mp2 +*.asf +*.avi +*.mpeg +*.mpg +*.mov +*.png +*.gif +*.jpg +*.css +*.js 
+*.mp3 -ad.doubleclick.net/*
(httraqt -q -%i -i https://tomlehrersongs.com/ -%e0 -C1 -%P -n -x -s2 -Z -%s 
-%u -N0 -p7 -D -a -K0 -m0,0 -c8 -%k -f2 -A0 -F "Mozilla/5.0 (X11; U; Linux 
x86_64; rv:33.0) Gecko/20100101 Firefox/33.0" -%F "" -%l ua,en -O 
"/home/calum/My Web Sites/Tom Lehner/" +*.bmp +*.tif +*.ico +*.jpeg +*.7z 
+*.exe +*.rar +*.gz +*.tgz +*.tar +*.zip +*.ps +*.txt +*.rtf +*.docx +*.doc 
+*.pdf +*.tex +*.odt +*.wmv +*.wma +*.ac3 +*.vid +*.swf +*.qt +*.mkv +*.vob 
+*.wav +*.rm +*.mp2 +*.asf +*.avi +*.mpeg +*.mpg +*.mov +*.png +*.gif +*.jpg 
+*.css +*.js +*.mp3 -ad.doubleclick.net/* )

Information, Warnings and Errors reported for this mirror:
note:   the hts-log.txt file, and hts-cache folder, may contain sensitive 
information,
such as username/password authentication for websites mirrored in this 
project
do not share these files/folders if you want these information to 
remain private

00:03:56Warning:* security warning: maximum bandwidth limited 
to 25 to avoid server overload
00:03:56Debug:  engine: init
00:03:56Debug:  reallocated 256 new link placeholders
00:03:56Debug:  reallocated 32768 new bytes of strings room
00:03:56Debug:  Cache: enabled=1, base=/home/calum/My Web Sites/Tom 
Lehner/hts-cache/, ro=0
00:03:56Debug:  Cache: rename /home/calum/My Web Sites/Tom 
Lehner/hts-cache/new.zip -> /home/calum/My Web Sites/Tom 
Lehner/hts-cache/old.zip (0x7fa61c081974 0x7fa61c07f974)
00:03:56Debug:  Cache: successfully renamed
00:03:56Debug:  Cache: size 0
00:03:56Debug:  Cache: no cache found in /home/calum/My Web Sites/Tom 
Lehner/hts-cache/
00:03:56Info:   engine: start
00:03:56Debug:  Wait get: primary/primary
00:03:56Info:   Warning: could not detect encoding for: primary/primary
00:03:56Info:   engine: check-html: primary/primary
00:03:56Debug:  engine: preprocess-html: primary/primary
00:03:56Debug:  scanning file primary/primary (/home/calum/My Web 
Sites/Tom Lehner/index.html)..
00:03:56Debug:  link detected in html (tag): https://tomlehrersongs.com/
00:03:56Debug:  engine: save-name: 'iso