Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault while adding "[All]" into queue from artist page #77

Closed
tremd opened this issue Oct 14, 2020 · 0 comments
Closed

segfault while adding "[All]" into queue from artist page #77

tremd opened this issue Oct 14, 2020 · 0 comments
Labels

Comments

@tremd
Copy link

tremd commented Oct 14, 2020

Steps to reproduce:

  1. Start ncmpc
  2. Select 4:Library
  3. Select any artist with multiple Albums because you have to select [All] and press "a" to add all tracks from Artist into queue.
  4. ncmpc segfault

If i add all tracks on my own and go into [All] press ENTER and add it by my own press a it works but select [All] and press a crash.

ncmpc version: 0.40
build options: debug multibyte wide locale iconv nls colors artist-screen help-screen

libmpdclient 2.19

Music Player Daemon 0.22

Database plugins:
 simple
Storage plugins:
 local
Decoders plugins:
 [dsdiff] dff
 [dsf] dsf
 [hybrid_dsd] m4a
 [ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga
ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm
wma wmv wsaud wsvga wv wve
 [pcm]
Filters:
Tag plugins:
 id3tag
Output plugins:
 null alsa httpd
Encoder plugins:
 null wave
Archive plugins:
 [bz2] bz2
Input plugins:
 file io_uring archive alsa ffmpeg
Playlist plugins:
 extm3u m3u pls
Protocols:
 file:// alsa:// hls+http:// hls+https://
Other features:
 epoll icu inotify systemd tcp un

gdb --args ncmpc
run
reproduce
bt

received signal SIGSEGV, Segmentation fault.
0x00007ffff7bc7ed1 in ?? () from /lib64/libc.so.6

(gdb) bt
#0  0x00007ffff7bc7ed1 in ?? () from /lib64/libc.so.6
#1  0x000000010003f739 in Utf8ToLocale::Utf8ToLocale (this=0x7fffffffcde0, src=0x0) at ../ncmpc-0.40/src/charset.cxx:246
#2  0x000000010004bec4 in add_query (value=0x100710a00 "Gonno & Nick Höppner", tag=<optimized out>, filter=..., c=0x7fffffffd2e0) at ../ncmpc-0.40/src/TagListPage.cxx:184
#3  TagListPage::OnCommand (this=0x1006ff400, c=..., cmd=<optimized out>) at ../ncmpc-0.40/src/TagListPage.cxx:219
#4  0x000000010003c9d9 in ProxyPage::OnCommand (this=this@entry=0x1006ff250, c=..., cmd=cmd@entry=Command::ADD) at ../ncmpc-0.40/src/ProxyPage.cxx:96
#5  0x000000010004acbf in ArtistBrowserPage::OnCommand (this=0x1006ff250, c=..., cmd=Command::ADD) at ../ncmpc-0.40/src/LibraryPage.cxx:250
#6  0x000000010003526c in ScreenManager::OnCommand (this=0x7fffffffd510, c=..., seek=..., cmd=Command::ADD) at /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/bits/unique_ptr.h:421
#7  0x0000000100012475 in do_input_event (io_service=..., cmd=cmd@entry=Command::ADD) at ../ncmpc-0.40/src/Instance.hxx:91
#8  0x000000010002f0c1 in AsyncUserInput::OnReadable (error=..., this=0x7fffffffd7a8) at /usr/include/boost/asio/executor.hpp:324
#9  AsyncUserInput::OnReadable (this=0x7fffffffd7a8, error=...) at ../ncmpc-0.40/src/AsyncUserInput.cxx:43
#10 0x000000010002f7c2 in std::__invoke_impl<void, void (AsyncUserInput::*&)(boost::system::error_code const&), AsyncUserInput*&, boost::system::error_code const&> (__f=@0x7fffffffd010: (void (AsyncUserInput::*)(AsyncUserInput * const, const boost::system::error_code &)) 0x10002f020 <AsyncUserInput::OnReadable(boost::system::error_code const&)>, __t=@0x7fffffffd020: 0x7fffffffd7a8, __f=
    @0x7fffffffd010: (void (AsyncUserInput::*)(AsyncUserInput * const, const boost::system::error_code &)) 0x10002f020 <AsyncUserInput::OnReadable(boost::system::error_code const&)>, __t=@0x7fffffffd020: 0x7fffffffd7a8) at /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/bits/invoke.h:70
#11 std::__invoke<void (AsyncUserInput::*&)(boost::system::error_code const&), AsyncUserInput*&, boost::system::error_code const&> (__fn=@0x7fffffffd010: (void (AsyncUserInput::*)(AsyncUserInput * const, const boost::system::error_code &)) 0x10002f020 <AsyncUserInput::OnReadable(boost::system::error_code const&)>) at /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/bits/invoke.h:95
#12 std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>::__call<void, boost::system::error_code const&, unsigned long const&, 0ul, 1ul>(std::tuple<boost::system::error_code const&, unsigned long const&>&&, std::_Index_tuple<0ul, 1ul>) (__args=..., this=0x7fffffffd010) at /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/functional:416
#13 std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>::operator()<boost::system::error_code const&, unsigned long const&, void>(boost::system::error_code const&, unsigned long const&) (this=0x7fffffffd010) at /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/functional:499
#14 boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>::operator()() (this=0x7fffffffd010) at /usr/include/boost/asio/detail/bind_handler.hpp:164
#15 boost::asio::asio_handler_invoke<boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long> >(boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>&, ...) (function=...)
    at /usr/include/boost/asio/handler_invoke_hook.hpp:69
#16 boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>, std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)> >(boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>&, std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>&) (context=..., function=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#17 boost::asio::detail::asio_handler_invoke<boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>, std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>(boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>&, boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>*) (this_handler=0x7fffffffd010, function=...) at /usr/include/boost/asio/detail/bind_handler.hpp:207
#18 boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>, boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long> >(boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>&, boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>&) (context=..., function=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#19 boost::asio::detail::io_object_executor<boost::asio::executor>::dispatch<boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>, std::allocator<void> >(boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>&&, std::allocator<void> const&) const (this=0x7fffffffd000, a=..., f=...) at /usr/include/boost/asio/detail/io_object_executor.hpp:119
#20 boost::asio::detail::io_object_executor<boost::asio::executor>::dispatch<boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>, std::allocator<void> >(boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>&&, std::allocator<void> const&) const (a=..., f=..., this=0x7fffffffd000) at /usr/include/boost/asio/detail/io_object_executor.hpp:108
#21 boost::asio::detail::handler_work<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::asio::detail::io_object_executor<boost::asio::executor>, boost::asio::detail::io_object_executor<boost::asio::executor> >::complete<boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long> >(boost::asio::detail::binder2<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::system::error_code, unsigned long>&, std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>&) (handler=..., function=..., this=0x7fffffffcff0) at /usr/include/boost/asio/detail/handler_work.hpp:72
#22 boost::asio::detail::reactive_null_buffers_op<std::_Bind<void (AsyncUserInput::*(AsyncUserInput*, std::_Placeholder<1>))(boost::system::error_code const&)>, boost::asio::detail::io_object_executor<boost::asio::executor> >::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) (owner=0x100554a10, base=0x10070f920) at /usr/include/boost/asio/detail/reactive_null_buffers_op.hpp:78
#23 0x000000010001f115 in boost::asio::detail::scheduler_operation::complete (bytes_transferred=<optimized out>, ec=..., owner=0x100554a10, this=0x1006ea0e0) at /usr/include/boost/asio/detail/scheduler_operation.hpp:40
#24 boost::asio::detail::scheduler::do_run_one (this=this@entry=0x100554a10, lock=..., this_thread=..., ec=...) at /usr/include/boost/asio/detail/impl/scheduler.ipp:447
#25 0x0000000100018b21 in boost::asio::detail::scheduler::run (this=0x100554a10, ec=...) at /usr/include/boost/asio/detail/impl/scheduler.ipp:200
#26 0x0000000100018dac in boost::asio::io_context::run (this=0x7fffffffd270, this=0x7fffffffd270) at /usr/include/boost/asio/impl/io_context.ipp:63
#27 Instance::Run (this=0x7fffffffd270) at ../ncmpc-0.40/src/Instance.cxx:102
#28 0x0000000100010295 in main (argc=-11664, argv=0x7fffffffd8e8) at ../ncmpc-0.40/src/Main.cxx:360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants