[squid-dev] Broken trunk after r14735

Alex Rousskov rousskov at measurement-factory.com
Mon Jul 25 14:10:27 UTC 2016


On 07/24/2016 01:04 AM, Amos Jeffries wrote:

>   does replacing "BIO_free" with "BIO_vfree" in the ssl/gadgets.h
> definition of BIO_POinter fix this one?

Same startup exception (quoted below) after patching trunk revision
14756 with

> -typedef std::unique_ptr<BIO, std::function<decltype(BIO_free)>> BIO_Pointer;
> +typedef std::unique_ptr<BIO, std::function<decltype(BIO_vfree)>> BIO_Pointer;


Thank you,

Alex.

> terminate called after throwing an instance of 'std::bad_function_call'
>   what():  bad_function_call
> 
> Program received signal SIGABRT, Aborted.
> 0x00007ffff5a9ccc9 in __GI_raise (sig=sig at entry=6)
>     at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
> 56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
> (gdb) where
> #0  0x00007ffff5a9ccc9 in __GI_raise (sig=sig at entry=6)
>     at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
> #1  0x00007ffff5aa00d8 in __GI_abort () at abort.c:89
> #2  0x00007ffff63a76b5 in __gnu_cxx::__verbose_terminate_handler() ()
>    from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> #3  0x00007ffff63a5836 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> #4  0x00007ffff63a48f9 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> #5  0x00007ffff63a54aa in __gxx_personality_v0 ()
>    from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> #6  0x00007ffff5e3aff3 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
> #7  0x00007ffff5e3b37b in _Unwind_RaiseException ()
>    from /lib/x86_64-linux-gnu/libgcc_s.so.1
> #8  0x00007ffff63a5a95 in __cxa_throw ()
>    from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> #9  0x00007ffff63f7aa2 in std::__throw_bad_function_call() ()
>    from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> #10 0x00000000009a3604 in std::function<void (bio_st*)>::operator()(bio_st*) const (this=0x7fffffffe0e0, __args#0=0x1026850)
>     at /usr/include/c++/4.8/functional:2463
> #11 0x00000000009a2f4d in std::unique_ptr<bio_st, std::function<void (bio_st*)> >::~unique_ptr() (this=0x7fffffffe0e0, __in_chrg=<optimized out>)
>     at /usr/include/c++/4.8/bits/unique_ptr.h:184
> #12 0x00000000009b106d in Ssl::readSslPrivateKey (
>     keyFilename=0x1000540 "testing/ssl/CA-priv+pub.pem", 
>     passwd_callback=0x0) at gadgets.cc:672
> #13 0x00000000009a15af in Ssl::readCertChainAndPrivateKeyFromFiles (cert=..., 
>     pkey=..., chain=..., 
>     certFilename=0x1026760 "testing/ssl/CA-priv+pub.pem", 
>     keyFilename=0x1000540 "testing/ssl/CA-priv+pub.pem")
>     at support.cc:1270
> #14 0x0000000000a0125c in AnyP::PortCfg::configureSslServerContext (
>     this=0x1000270) at PortCfg.cc:120
> #15 0x00000000006b0810 in configDoConfigure () at cache_cf.cc:910
> #16 0x00000000006afa79 in parseConfigFile (
>     file_name=0xff1d60 "/usr/local/squid/etc/squid-trunk.conf")
>     at cache_cf.cc:596
> #17 0x00000000007ca4c5 in SquidMain (argc=4, argv=0x7fffffffe698)
>     at main.cc:1521
> #18 0x00000000007ca0ca in SquidMainSafe (argc=4, argv=0x7fffffffe698)
>     at main.cc:1372
> #19 0x00000000007ca0a7 in main (argc=4, argv=0x7fffffffe698) at main.cc:1365



More information about the squid-dev mailing list