[Bug 268791] security/i2pd: Problems with build options in version 2.45.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Jan 2023 20:21:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268791

            Bug ID: 268791
           Summary: security/i2pd: Problems with build options in version
                    2.45.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: driesm@freebsd.org
          Reporter: admin@support.od.ua
          Assignee: driesm@freebsd.org
             Flags: maintainer-feedback?(driesm@freebsd.org)

Problems with build options in version 2.45.0.

The project repository has a Makefile.bsd file that needs to be moved to the
port's Makefile.

Now, after about half an hour, i2pd is crashing.

# uname -a
FreeBSD 12.3-STABLE #0 r372170M: Mon Jun 27 19:29:31 EEST 2022

# clang++ -dumpversion
13.0.0

(gdb) bt
#0  memcpy () at /usr/src/lib/libc/amd64/string/memmove.S:306
#1  0x00000000005b9cd7 in i2p::data::LeaseSet::LeaseSet (this=0x802e13158,
    buf=0x803e660a3
"NJ̏\247\353\266S\303\353\212\005\065\ad\214)ڪ\021\246\025>Aۛ9\034\202i$]\316U̬\336\367\023\276\355XuZT\005Q+\241\213\345W\264\025p`\375\201\027c\254%\302FH\360\357=\353\224y\a\332f\266\260\374\331ڴ5\025\020ň\016ح\225\226Mi+\300\060\323[Q\305\061\355.\341\273a\022\325\363dy\376\245\203\035n\031\253v8bl\021J\035+o:\215\215\071\232yF[\246\322\323\036\200\217\341`\341\024\250\263\343\017Sg؎\f\021l\035h\360\212z\304\022\065\223\362\215\234\323`\344d\030P\223\247\340\310\034\240\205@b\267\021\256$c\214\071;~\214\240\060\271\020\234ck\271"...,
len=47124, storeLeases=false) at libi2pd/LeaseSet.cpp:33
#2  0x00000000005f8668 in std::__1::__shared_ptr_emplace<i2p::data::LeaseSet,
std::__1::allocator<i2p::data::LeaseSet> >::__shared_ptr_emplace<unsigned char
const*&, int&, bool> (this=0x802e13140, __a=..., __args=@0x7fffdfdfbe27: false,
__args=@0x7fffdfdfbe27: false, __args=@0x7fffdfdfbe27: false) at
/usr/include/c++/v1/__memory/shared_ptr.h:298
#3  0x00000000005f8518 in std::__1::allocate_shared<i2p::data::LeaseSet,
std::__1::allocator<i2p::data::LeaseSet>, unsigned char const*&, int&, bool,
void> (__a=...,
    __args=@0x7fffdfdfbe27: false, __args=@0x7fffdfdfbe27: false,
__args=@0x7fffdfdfbe27: false) at
/usr/include/c++/v1/__memory/shared_ptr.h:1106
#4  0x00000000005e80a5 in std::__1::make_shared<i2p::data::LeaseSet, unsigned
char const*&, int&, bool, void> (__args=@0x7fffdfdfbe27: false,
__args=@0x7fffdfdfbe27: false,
    __args=@0x7fffdfdfbe27: false) at
/usr/include/c++/v1/__memory/shared_ptr.h:1115
#5  0x00000000005da5af in i2p::data::NetDb::AddLeaseSet (this=0xe0b700
<i2p::data::netdb>, ident=...,
    buf=0x803e660a3
"NJ̏\247\353\266S\303\353\212\005\065\ad\214)ڪ\021\246\025>Aۛ9\034\202i$]\316U̬\336\367\023\276\355XuZT\005Q+\241\213\345W\264\025p`\375\201\027c\254%\302FH\360\357=\353\224y\a\332f\266\260\374\331ڴ5\025\020ň\016ح\225\226Mi+\300\060\323[Q\305\061\355.\341\273a\022\325\363dy\376\245\203\035n\031\253v8bl\021J\035+o:\215\215\071\232yF[\246\322\323\036\200\217\341`\341\024\250\263\343\017Sg؎\f\021l\035h\360\212z\304\022\065\223\362\215\234\323`\344d\030P\223\247\340\310\034\240\205@b\267\021\256$c\214\071;~\214\240\060\271\020\234ck\271"...,
len=47124) at libi2pd/NetDb.cpp:354
#6  0x00000000005d530c in i2p::data::NetDb::HandleDatabaseStoreMsg
(this=0xe0b700 <i2p::data::netdb>, m=...) at libi2pd/NetDb.cpp:815
#7  0x00000000005d454e in i2p::data::NetDb::Run (this=0xe0b700
<i2p::data::netdb>) at libi2pd/NetDb.cpp:128
#8  0x00000000005f5cc9 in std::__1::__invoke<void (i2p::data::NetDb::*&)(),
i2p::data::NetDb*&, , void>(void (i2p::data::NetDb::*&)(), i2p::data::NetDb*&)
(
    __f=@0x802760508: (void (i2p::data::NetDb::*)(i2p::data::NetDb * const))
0x5d4380 <i2p::data::NetDb::Run()>, __a0=@0x802760518: 0xe0b700
<i2p::data::netdb>)
    at /usr/include/c++/v1/type_traits:3859
#9  0x00000000005f5c4d in std::__1::__apply_functor<void
(i2p::data::NetDb::*)(), std::__1::tuple<i2p::data::NetDb*>, 0ul,
std::__1::tuple<> >(void (i2p::data::NetDb::*&)(),
std::__1::tuple<i2p::data::NetDb*>&, std::__1::__tuple_indices<0ul>,
std::__1::tuple<>&&) (
    __f=@0x802760508: (void (i2p::data::NetDb::*)(i2p::data::NetDb * const))
0x5d4380 <i2p::data::NetDb::Run()>, __bound_args=..., __args=...)
    at /usr/include/c++/v1/__functional/bind.h:257
#10 0x00000000005f5bee in std::__1::__bind<void (i2p::data::NetDb::*)(),
i2p::data::NetDb*>::operator()<>() (this=0x802760508) at
/usr/include/c++/v1/__functional/bind.h:292
#11 0x00000000005f5b85 in std::__1::__invoke<std::__1::__bind<void
(i2p::data::NetDb::*)(), i2p::data::NetDb*>>(std::__1::__bind<void
(i2p::data::NetDb::*)(), i2p::data::NetDb*>&&) (__f=...) at
/usr/include/c++/v1/type_traits:3918
#12 0x00000000005f5b65 in
std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct,
std::__1::default_delete<std::__1::__thread_struct> >, std::__1::__bind<void
(i2p::data::NetDb::*)(),
i2p::data::NetDb*>>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct,
std::__1::default_delete<std::__1::__thread_struct> >, std::__1::__bind<void
(i2p::data::NetDb::*)(), i2p::data::NetDb*>>&, std::__1::__tuple_indices<>)
(__t=...) at /usr/include/c++/v1/thread:280
#13 0x00000000005f58e0 in
std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct,
std::__1::default_delete<std::__1::__thread_struct> >, std::__1::__bind<void
(i2p::data::NetDb::*)(), i2p::data::NetDb*> > > (__vp=0x802760500) at
/usr/include/c++/v1/thread:291
#14 0x000000080135708c in thread_start (curthread=0x8017bfe00) at
/usr/src/lib/libthr/thread/thr_create.c:292
#15 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdfdfd000

-- 
You are receiving this mail because:
You are the assignee for the bug.