Bug#1028192: libproxy1v5: Gajim 1.6.0-1 crashes in libproxy call

2023-01-25 Thread Sebastian Reichel
Hi Martin,

On Tue, Jan 24, 2023 at 10:50:52PM +, Martin wrote:
> Hi Sebastian,
> 
> I wonder, if I should upload libproxy with your github patch¹ to
> experimental. Then people affected (or not affected) by the bug can test
> easily. Or you may upload, of course! :-)
> 
> Cheers
> 
> ¹ https://github.com/libproxy/libproxy/issues/199#issuecomment-1401124997

sure, feel free to upload it to experimental. FWIW I do not
understand the root cause of this issue. I'm a bit worried,
that the patch masks a security relevant bug. It would be great
if somebody with better C++ knowledge can look into this.

The bug seems quite strange considering the segmentation fault is
happening due to the destruction of an empty vector from the standard
library and only in combination with glib-networking.

FWIW long term the problem will be solved by glib-networking
removing the libproxy dependency:

https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/205

Greetings,

-- Sebastian


signature.asc
Description: PGP signature


Bug#1028192: libproxy1v5: Gajim 1.6.0-1 crashes in libproxy call

2023-01-24 Thread Martin
Hi Sebastian,

I wonder, if I should upload libproxy with your github patch¹ to
experimental. Then people affected (or not affected) by the bug can test
easily. Or you may upload, of course! :-)

Cheers

¹ https://github.com/libproxy/libproxy/issues/199#issuecomment-1401124997



Bug#1028192: libproxy1v5: Gajim 1.6.0-1 crashes in libproxy call

2023-01-17 Thread Sebastian Reichel
Hi,

On Sat, 14 Jan 2023 21:53:59 + Martin  wrote:
> Control: severity -1 normal
> 
> The problem disappeared magically for all users who reported it before.
> I assume, that there is a hidden bug in libproxy, that only appears in
> certain circumstances. Downgrading for now.

I just got the new package through testing and now gajim segfaults
ony my system with stacktrace pointing to libproxy. So this is not
magically solved.

-- Sebastian


signature.asc
Description: PGP signature


Bug#1028192: libproxy1v5: Gajim 1.6.0-1 crashes in libproxy call

2023-01-13 Thread Martin
Control: clone -1 -2
Control: reassign -2 libproxy1v5 0.4.18-1
Control: retitle -2 libproxy1v5: Gajim 1.6.0-1 crashes in libproxy call

This is the backtrace with a debian.org account:

(gdb) bt
#0  read_encoded_value_with_base(unsigned char, _Unwind_Ptr, unsigned char 
const*, _Unwind_Ptr*)
(encoding=160 '\240', base=, p=0x7fffd106e799 
"\351\006\321\377\177", val=0x7fffd106ded8)
at 
/build/gcc-12-PBog5r/gcc-12-12.2.0/src/libstdc++-v3/../libgcc/unwind-pe.h:284
#1  0x734a8511 in read_encoded_value (val=0x7fffd106ded8, 
p=0x7fffd106e791 "\n\001\264\377\177", encoding=160 '\240', 
context=0x7fffd106e380)
at 
/build/gcc-12-PBog5r/gcc-12-12.2.0/src/libstdc++-v3/../libgcc/unwind-pe.h:304
#2  parse_lsda_header(_Unwind_Context*, unsigned char const*, lsda_header_info*)
(context=context@entry=0x7fffd106e380, p=0x7fffd106e791 
"\n\001\264\377\177", 
p@entry=0x7fffd106e790 "\240\n\001\264\377\177", 
info=info@entry=0x7fffd106ded0) at 
../../../../src/libstdc++-v3/libsupc++/eh_personality.cc:60
#3  0x734a8607 in __cxxabiv1::__gxx_personality_v0(int, _Unwind_Action, 
_Unwind_Exception_Class, _Unwind_Exception*, _Unwind_Context*)
(version=, actions=2, exception_class=5138137972254386944, 
ue_header=0x7fffb4010aa0, context=0x7fffd106e380)
at ../../../../src/libstdc++-v3/libsupc++/eh_personality.cc:454
#4  0x71313131 in _Unwind_Phase2 (context=0x7fffd106e380, 
exception_object=0x7fffb4010aa0) at unwind/unwind-internal.h:118
#5  _Unwind_Resume (exception_object=0x7fffb4010aa0) at unwind/Resume.c:37
#6  0x7fffbdaa334a in 
__gnu_cxx::new_allocator::~new_allocator() (this=, __in_chrg=)
at /usr/include/c++/11/ext/new_allocator.h:89
#7  std::allocator::~allocator() (this=, 
__in_chrg=) at /usr/include/c++/11/bits/allocator.h:174
#8  std::_Vector_base 
>::_Vector_impl::~_Vector_impl() (this=, __in_chrg=)
at /usr/include/c++/11/bits/stl_vector.h:128
#9  std::_Vector_base 
>::~_Vector_base() (this=, __in_chrg=)
at /usr/include/c++/11/bits/stl_vector.h:337
#10 std::vector >::~vector() 
(this=, __in_chrg=)
at /usr/include/c++/11/bits/stl_vector.h:683
#11 envvar_config_extension::get_config(libproxy::url const&) (this=, dst=) at ./libproxy/modules/config_envvar.cpp:60
#12 0x7fffbda99e52 in libproxy::proxy_factory::get_config(libproxy::url&, 
std::vector >&, 
std::__cxx11::basic_string, std::allocator 
>&)
(this=0x3a26320, realurl=..., config=std::vector of length 0, capacity 0, 
ignore="") at ./libproxy/proxy.cpp:265
#13 0x7fffbda9a287 in 
libproxy::proxy_factory::get_proxies(std::__cxx11::basic_string, std::allocator > const&) (this=0x3a26320, 
realurl="https://debian.org:443;) at ./libproxy/proxy.cpp:206
#14 0x7fffbda9a751 in px_proxy_factory_get_proxies(pxProxyFactory_*, char 
const*)
(self=0x3a26320, url=url@entry=0x3cb9170 "https://debian.org:443;) at 
./libproxy/proxy.cpp:465
#15 0x7fffbdace61f in get_libproxy_proxies (task=0x39e56c0 [GTask], 
source_object=0x282b580, task_data=0x3cb9170, cancellable=)
at ../proxy/libproxy/glibproxyresolver.c:153
#16 0x769c7793 in g_task_thread_pool_thread (thread_data=0x39e56c0, 
pool_data=) at ../../../gio/gtask.c:1454
#17 0x76ca46da in g_thread_pool_thread_proxy (data=) at 
../../../glib/gthreadpool.c:352
#18 0x76ca3d0d in g_thread_proxy (data=0x2f96a40) at 
../../../glib/gthread.c:831
#19 0x77d25fd4 in start_thread (arg=) at 
./nptl/pthread_create.c:442
#20 0x77da666c in clone3 () at 
../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb)