Re: [CORE DUMP] Closing audacity leads to core dump

2020-02-09 Thread Jack L.
Monitoring the audacity mailing list, it appears that this bug is
happening in Linux also.

On Sun, Feb 9, 2020 at 2:31 PM Hans Petter Selasky  wrote:
>
> 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:#defineSYS_getrandom563
> >
> > 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=, dst=, 
> > dstLen=0, src=, srcLen=25964)
> > at ./src/common/strconv.cpp:994
> > 994   unsigned char c = *p;
> > (gdb) bt
> > #0  0x0008011d8285 in wxMBConvStrictUTF8::ToWChar(wchar_t*, unsigned 
> > long, char const*, unsigned long) const
> > (this=, dst=, dstLen=0, src= > out>, srcLen=25964) at ./src/common/strconv.cpp:994
> > #1  0x0008011e8b67 in wxString::AsWChar(wxMBConv const&) const 
> > (this=0x7fffd8f0, conv=...) at ./src/common/string.cpp:482
> > #2  0x0085bb12 in wxString::ToStdWstring() const ()
> > #3  0x0085990b in std::__1::unordered_map > std::__1::function (DirManager&, wchar_t 
> > const**)>, std::__1::hash, std::__1::equal_to, 
> > std::__1::allocator > std::__1::function (DirManager&, wchar_t 
> > const**)> > > >::operator[](wxString const&) ()
> > #4  0x00852bd9 in 
> > DirManager::RegisteredBlockFileDeserializer::RegisteredBlockFileDeserializer(wxString
> >  const&, std::__1::function (DirManager&, 
> > wchar_t const**)>) ()
> > #5  0x00874a7c in  ()
> > #6  0x000800ea946e in objlist_call_init (list=, 
> > lockstate=) at 
> > /usr/img/freebsd.12/libexec/rtld-elf/rtld.c:2723
> > #7  0x000800ea81d2 in _rtld (sp=, 
> > exit_proc=0x7fffe900, objp=0x7fffe908)
> > at /usr/img/freebsd.12/libexec/rtld-elf/rtld.c:765
> > #8  0x000800ea6019 in rtld_start () at 
> > /usr/img/freebsd.12/libexec/rtld-elf/amd64/rtld_start.S:39
> > #9  0x in  ()
>
> emaste: Do you see anyting with regards to compiler differences FreeBSD
> 11 and FreeBSD 12 and GCC9 ?
>
> --HPS
> ___
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [CORE DUMP] Closing audacity leads to core dump

2020-02-09 Thread Hans Petter Selasky

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=, dst=, dstLen=0, 
src=, srcLen=25964)
at ./src/common/strconv.cpp:994
994 unsigned char c = *p;
(gdb) bt
#0  0x0008011d8285 in wxMBConvStrictUTF8::ToWChar(wchar_t*, unsigned long, 
char const*, unsigned long) const
(this=, dst=, dstLen=0, src=, 
srcLen=25964) at ./src/common/strconv.cpp:994
#1  0x0008011e8b67 in wxString::AsWChar(wxMBConv const&) const 
(this=0x7fffd8f0, conv=...) at ./src/common/string.cpp:482
#2  0x0085bb12 in wxString::ToStdWstring() const ()
#3  0x0085990b in std::__1::unordered_map (DirManager&, 
wchar_t const**)>, std::__1::hash, std::__1::equal_to, std::__1::allocator (DirManager&, wchar_t const**)> > > >::operator[](wxString 
const&) ()
#4  0x00852bd9 in 
DirManager::RegisteredBlockFileDeserializer::RegisteredBlockFileDeserializer(wxString const&, 
std::__1::function (DirManager&, wchar_t const**)>) 
()
#5  0x00874a7c in  ()
#6  0x000800ea946e in objlist_call_init (list=, 
lockstate=) at /usr/img/freebsd.12/libexec/rtld-elf/rtld.c:2723
#7  0x000800ea81d2 in _rtld (sp=, exit_proc=0x7fffe900, 
objp=0x7fffe908)
at /usr/img/freebsd.12/libexec/rtld-elf/rtld.c:765
#8  0x000800ea6019 in rtld_start () at 
/usr/img/freebsd.12/libexec/rtld-elf/amd64/rtld_start.S:39
#9  0x in  ()


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


--HPS
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [CORE DUMP] Closing audacity leads to core dump

2020-02-09 Thread Hans Petter Selasky

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?


--14015-- You may be able to write your own handler.
--14015-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--14015-- Nevertheless we consider this a bug.  Please report
--14015-- it at http://valgrind.org/support/bug_reports.html.
==14015== 
==14015== HEAP SUMMARY:

==14015== in use at exit: 0 bytes in 0 blocks
==14015==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==14015== 
==14015== All heap blocks were freed -- no leaks are possible
==14015== 
==14015== For counts of detected and suppressed errors, rerun with: -v

==14015== Use --track-origins=yes to see where uninitialised values come from
==14015== ERROR SUMMARY: 85 errors from 51 contexts (suppressed: 0 from 0)
Killed


--HPS
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [CORE DUMP] Closing audacity leads to core dump

2020-02-09 Thread Theron

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.


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


[CORE DUMP] Closing audacity leads to core dump

2020-02-09 Thread Hans Petter Selasky

Hi,

I'm seeing a core-dump when closing audacity. This is a regression 
issue. Anyone else seeing this?


--HPS


*** BUG ***
In void pixman_region32_init_rect(region_type_t *, int, int, unsigned 
int, unsigned int): Invalid rectangle passed

Set a breakpoint on '_pixman_log_error' to debug

./src/common/wincmn.cpp(1497): assert ""secondHandler != nullptr"" 
failed in PopEventHandler(): the first handler of the wxWindow stack 
should have non-NULL next handler


[1]Bus error audacity (core dumped)
% ls *.core
audacity.core
% gdb831 audacity audacity.core
GNU gdb (GDB) 8.3.1 [GDB v8.3.1 for FreeBSD]
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 


This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd12.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from audacity...
(No debugging symbols found in audacity)
[New LWP 100223]
[New LWP 101142]
[New LWP 101143]
[New LWP 101144]
[New LWP 101145]
[New LWP 101146]
[New LWP 101149]
Core was generated by `audacity'.
Program terminated with signal SIGBUS, Bus error.
#0  0x000801ec0a99 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () 
from /usr/local/lib/libwx_baseu-3.1.so.3

[Current thread is 1 (LWP 100223)]
(gdb) bt
#0  0x000801ec0a99 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () 
at /usr/local/lib/libwx_baseu-3.1.so.3

#1  0x000801880d26 in  () at /usr/local/lib/libwx_gtk3u_core-3.1.so.3
#2  0x000802baddf9 in g_closure_invoke () at 
/usr/local/lib/libgobject-2.0.so.0

#3  0x000802bc3a5b in  () at /usr/local/lib/libgobject-2.0.so.0
#4  0x000802bc480a in g_signal_emit_valist () at 
/usr/local/lib/libgobject-2.0.so.0
#5  0x000802bc4eb6 in g_signal_emit () at 
/usr/local/lib/libgobject-2.0.so.0
#6  0x000802664d1c in gtk_widget_size_allocate_with_baseline () at 
/usr/local/lib/libgtk-3.so.0

#7  0x0008023d9b4f in  () at /usr/local/lib/libgtk-3.so.0
#8  0x0008023d834d in  () at /usr/local/lib/libgtk-3.so.0
#9  0x000802432893 in  () at /usr/local/lib/libgtk-3.so.0
#10 0x0008023d753f in  () at /usr/local/lib/libgtk-3.so.0
#11 0x000802664d2f in gtk_widget_size_allocate_with_baseline () at 
/usr/local/lib/libgtk-3.so.0

#12 0x0008026866df in  () at /usr/local/lib/libgtk-3.so.0
#13 0x000802baddf9 in g_closure_invoke () at 
/usr/local/lib/libgobject-2.0.so.0

#14 0x000802bc37ee in  () at /usr/local/lib/libgobject-2.0.so.0
#15 0x000802bc480a in g_signal_emit_valist () at 
/usr/local/lib/libgobject-2.0.so.0
#16 0x000802bc4eb6 in g_signal_emit () at 
/usr/local/lib/libgobject-2.0.so.0
#17 0x000802664d1c in gtk_widget_size_allocate_with_baseline () at 
/usr/local/lib/libgtk-3.so.0

#18 0x000802680d66 in  () at /usr/local/lib/libgtk-3.so.0
#19 0x000802baddf9 in g_closure_invoke () at 
/usr/local/lib/libgobject-2.0.so.0

#20 0x000802bc3bd1 in  () at /usr/local/lib/libgobject-2.0.so.0
#21 0x000802bc480a in g_signal_emit_valist () at 
/usr/local/lib/libgobject-2.0.so.0
#22 0x000802bc4eb6 in g_signal_emit () at 
/usr/local/lib/libgobject-2.0.so.0

--Type  for more, q to quit, c to continue without paging--
#23 0x000802427b02 in  () at /usr/local/lib/libgtk-3.so.0
#24 0x000802baddf9 in g_closure_invoke () at 
/usr/local/lib/libgobject-2.0.so.0

#25 0x000802bc3a5b in  () at /usr/local/lib/libgobject-2.0.so.0
#26 0x000802bc480a in g_signal_emit_valist () at 
/usr/local/lib/libgobject-2.0.so.0
#27 0x000802bc4eb6 in g_signal_emit () at 
/usr/local/lib/libgobject-2.0.so.0

#28 0x00080276ee66 in  () at /usr/local/lib/libgdk-3.so.0
#29 0x000802755b52 in  () at /usr/local/lib/libgdk-3.so.0
#30 0x000802ca1324 in  () at /usr/local/lib/libglib-2.0.so.0
#31 0x000802ca4f37 in g_main_context_dispatch () at 
/usr/local/lib/libglib-2.0.so.0

#32 0x000802ca52fa in  () at /usr/local/lib/libglib-2.0.so.0
#33 0x000802ca564f in g_main_loop_run () at 
/usr/local/lib/libglib-2.0.so.0

#34 0x00080250768b in gtk_main () at /usr/local/lib/libgtk-3.so.0
#35 0x00080186d3c5 in wxGUIEventLoop::DoRun() () at 
/usr/local/lib/libwx_gtk3u_core-3.1.so.3
#36 0x000801d8b202 in wxEventLoopBase::Run() () at 
/usr/local/lib/libwx_baseu-3.1.so.3
#37 0x0008018d13af in wxDialog::ShowModal() () at 
/usr/local/lib/libwx_gtk3u_core-3.1.so.3
#38 0x0008012063d2 in wxDebugReportPreviewStd::Show(wxDebugReport&) 
const () at /usr/local/lib/libwx_gtk3u_qa-3.1.so.3

#39 0x008f2008 in