Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2020 23:30:12 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Theron <theron.tarigo@gmail.com>, FreeBSD Ports <freebsd-ports@freebsd.org>, "Conrad E. Meyer" <cem@freebsd.org>, Ed Maste <emaste@freebsd.org>
Subject:   Re: [CORE DUMP] Closing audacity leads to core dump
Message-ID:  <eeb2e7e8-7ccd-c1f9-ca64-f27d270ceadb@selasky.org>
In-Reply-To: <44679945-b5f6-194d-8395-6a5083fec3ab@selasky.org>
References:  <dce115ba-5795-8865-32a9-07656af4ecb7@selasky.org> <c4697d8c-ad4f-359e-89e2-818a2171a5b7@gmail.com> <44679945-b5f6-194d-8395-6a5083fec3ab@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-02-09 20:25, Hans Petter Selasky wrote:
> On 2020-02-09 18:30, Theron wrote:
>> On 2020-02-09 10:57, Hans Petter Selasky wrote:
>>> I'm seeing a core-dump when closing audacity. This is a regression 
>>> issue. Anyone else seeing this?
>>>
>> Yes.  I assumed it was partially my fault for mixing ports and 
>> packages somewhere, but I guess it is a real issue.
>>
>> I've also seen this crash sometimes when using the "plot spectrum" 
>> tool, but I can't reproduce it right now.
>>
> 
> Reproduces 100% with Audacity (from pkg install).
> 
> Observations:
> 
> FreeBSD-11: works as expected
> FreeBSD-12: core-dumps
> 
> I notice that trying to run:
> 
> valgrind audacity
> 
> 
> Ends like this:
> 
>> ==14015== Conditional jump or move depends on uninitialised value(s)
>> ==14015==    at 0x6A26957: ??? (in /lib/libc.so.7)
>> ==14015==    by 0x6A267BD: ??? (in /lib/libc.so.7)
>> ==14015==    by 0x7D7ABB4: ???
>> ==14015==    by 0x663BDD4: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==    by 0x663C03C: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==    by 0x65C64E4: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==    by 0x65FA305: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==    by 0x65FA5C4: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==    by 0x65FA738: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==    by 0x65F95F6: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==    by 0x65F8F20: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==    by 0x65F8A9E: ??? (in 
>> /usr/local/lib/libglib-2.0.so.0.5600.3)
>> ==14015==
>> --14015-- WARNING: unhandled syscall: 563
> 
> /usr/include/sys/syscall.h:#define    SYS_getrandom    563
> 
> cem: Is valgrind perhaps missing some patches?
> 

Tried to build wxgtk31 using gcc9, with no success:

/usr/ports/x11-toolkits/wxgtk31 # env CXX=g++9 CC=gcc9 make all 
deinstall install

> Program received signal SIGBUS, Bus error.
> wxMBConvStrictUTF8::ToWChar (this=<optimized out>, dst=<optimized out>, dstLen=0, src=<optimized out>, srcLen=25964)
>     at ./src/common/strconv.cpp:994
> 994	        unsigned char c = *p;
> (gdb) bt
> #0  0x00000008011d8285 in wxMBConvStrictUTF8::ToWChar(wchar_t*, unsigned long, char const*, unsigned long) const
>     (this=<optimized out>, dst=<optimized out>, dstLen=0, src=<optimized out>, srcLen=25964) at ./src/common/strconv.cpp:994
> #1  0x00000008011e8b67 in wxString::AsWChar(wxMBConv const&) const (this=0x7fffffffd8f0, conv=...) at ./src/common/string.cpp:482
> #2  0x000000000085bb12 in wxString::ToStdWstring() const ()
> #3  0x000000000085990b in std::__1::unordered_map<wxString, std::__1::function<std::__1::shared_ptr<BlockFile> (DirManager&, wchar_t const**)>, std::__1::hash<wxString>, std::__1::equal_to<wxString>, std::__1::allocator<std::__1::pair<wxString const, std::__1::function<std::__1::shared_ptr<BlockFile> (DirManager&, wchar_t const**)> > > >::operator[](wxString const&) ()
> #4  0x0000000000852bd9 in DirManager::RegisteredBlockFileDeserializer::RegisteredBlockFileDeserializer(wxString const&, std::__1::function<std::__1::shared_ptr<BlockFile> (DirManager&, wchar_t const**)>) ()
> #5  0x0000000000874a7c in  ()
> #6  0x0000000800ea946e in objlist_call_init (list=<optimized out>, lockstate=<optimized out>) at /usr/img/freebsd.12/libexec/rtld-elf/rtld.c:2723
> #7  0x0000000800ea81d2 in _rtld (sp=<optimized out>, exit_proc=0x7fffffffe900, objp=0x7fffffffe908)
>     at /usr/img/freebsd.12/libexec/rtld-elf/rtld.c:765
> #8  0x0000000800ea6019 in rtld_start () at /usr/img/freebsd.12/libexec/rtld-elf/amd64/rtld_start.S:39
> #9  0x0000000000000000 in  ()

emaste: Do you see anyting with regards to compiler differences FreeBSD 
11 and FreeBSD 12 and GCC9 ?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eeb2e7e8-7ccd-c1f9-ca64-f27d270ceadb>