Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
@ 2023-10-15  6:32 Vaelatern
  2023-10-16  8:52 ` sgn
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Vaelatern @ 2023-10-15  6:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3818 bytes --]

New issue by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/issues/46687

Description:
### Is this a new report?

Yes

### System Info

Void 6.3.13_1 x86_64-musl GenuineIntel notuptodate rrnDDFFFFFFFFF

### Package(s) Affected

PrusaSlicer-2.5.2_3, wxWidgets-common-3.2.2.1_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

Should be able to start

### Actual behaviour

```
valgrind prusa-slicer
==21535== Memcheck, a memory error detector
==21535== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==21535== Using Valgrind-3.21.0 and LibVEX; rerun with -h for copyright info
==21535== Command: prusa-slicer
==21535==
[2023-10-15 02:27:58.110702] [0x00000000048e5780] [trace]   Initializing StaticPrintConfigs
==21535== Invalid read of size 8
==21535==    at 0x4E819B5: std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::alloca
in /usr/lib/libstdc++.so.6.0.30)
==21535==    by 0x8ABEBE5: wxTranslations::SetLanguage(wxLanguage) (in /usr/lib/libwx_baseu-3.2.so.0.
==21535==    by 0x9F7459: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x9F9281: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x9FB8C5: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x8A6E762: wxEntry(int&, wchar_t**) (in /usr/lib/libwx_baseu-3.2.so.0.2.1)
==21535==    by 0x9E289D: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x3EB985: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x3D08F3: main (in /usr/bin/prusa-slicer)
==21535==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21535==
==21535==
==21535== Process terminating with default action of signal 11 (SIGSEGV)
==21535==  Access not within mapped region at address 0x0
==21535==    at 0x4E819B5: std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::alloca
in /usr/lib/libstdc++.so.6.0.30)
==21535==    by 0x8ABEBE5: wxTranslations::SetLanguage(wxLanguage) (in /usr/lib/libwx_baseu-3.2.so.0.
==21535==    by 0x9F7459: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x9F9281: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x9FB8C5: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x8A6E762: wxEntry(int&, wchar_t**) (in /usr/lib/libwx_baseu-3.2.so.0.2.1)
==21535==    by 0x9E289D: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x3EB985: ??? (in /usr/bin/prusa-slicer)
==21535==    by 0x3D08F3: main (in /usr/bin/prusa-slicer)
==21535==  If you believe this happened as a result of a stack
==21535==  overflow in your program's main thread (unlikely but
==21535==  possible), you can try to increase the size of the
==21535==  main thread stack using the --main-stacksize= flag.
==21535==  The main thread stack size used in this run was 8388608.
==21535==
==21535== HEAP SUMMARY:
==21535==     in use at exit: 3,159,707 bytes in 31,017 blocks
==21535==   total heap usage: 194,134 allocs, 163,117 frees, 14,153,766 bytes allocated
==21535==
==21535== LEAK SUMMARY:
==21535==    definitely lost: 0 bytes in 0 blocks
==21535==    indirectly lost: 0 bytes in 0 blocks
==21535==      possibly lost: 18,424 bytes in 2 blocks
==21535==    still reachable: 3,077,755 bytes in 30,360 blocks
==21535==                       of which reachable via heuristic:
==21535==                         newarray           : 3,936 bytes in 6 blocks
==21535==         suppressed: 5,152 bytes in 123 blocks
==21535== Rerun with --leak-check=full to see details of leaked memory
==21535==
==21535== For lists of detected and suppressed errors, rerun with: -s
==21535== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
zsh: segmentation fault  valgrind prusa-slicer
```

### Steps to reproduce

```
sudo xbps-install -Su PrusaSlicer
prusa-slicer
```

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
@ 2023-10-16  8:52 ` sgn
  2023-10-16 16:26 ` Vaelatern
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2023-10-16  8:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1764020202

Comment:
Broken on glibc too. Due to breaking change in wxwidget

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
  2023-10-16  8:52 ` sgn
@ 2023-10-16 16:26 ` Vaelatern
  2023-10-17  1:34 ` sgn
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vaelatern @ 2023-10-16 16:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

New comment by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1764846806

Comment:
Interestingly the dbg repo for x86_64-musl results in a prusa-slicer binary that has an exec format error on launch.

`/usr/lib/debug/usr/bin/prusa-slicer: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter *empty*, BuildID[sha1]=75d716275ac4ba701be3c8062a2a09128e906a5d,
with debug_info, not stripped`

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
  2023-10-16  8:52 ` sgn
  2023-10-16 16:26 ` Vaelatern
@ 2023-10-17  1:34 ` sgn
  2023-10-17  1:48 ` Vaelatern
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2023-10-17  1:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1765515160

Comment:
We may need this patch https://github.com/prusa3d/PrusaSlicer/commit/e21921f2ebd2b94c57459bd280f1b1bd8eec1b9c

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (2 preceding siblings ...)
  2023-10-17  1:34 ` sgn
@ 2023-10-17  1:48 ` Vaelatern
  2023-10-17  1:57 ` Vaelatern
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vaelatern @ 2023-10-17  1:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

New comment by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1765526615

Comment:
I'll test

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (3 preceding siblings ...)
  2023-10-17  1:48 ` Vaelatern
@ 2023-10-17  1:57 ` Vaelatern
  2023-10-17 20:30 ` agausmann
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Vaelatern @ 2023-10-17  1:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

New comment by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1765533512

Comment:
It'll need more than just that...

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (4 preceding siblings ...)
  2023-10-17  1:57 ` Vaelatern
@ 2023-10-17 20:30 ` agausmann
  2023-10-17 20:32 ` agausmann
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: agausmann @ 2023-10-17 20:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 424 bytes --]

New comment by agausmann on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1767123255

Comment:
> Interestingly the dbg repo for x86_64-musl results in a prusa-slicer binary that has an exec format error on launch.

I think that's true for all dbg packages; they ship ELFs containing the debuginfo and not the machine code. Also partly evidenced by `interpreter *empty*`


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (5 preceding siblings ...)
  2023-10-17 20:30 ` agausmann
@ 2023-10-17 20:32 ` agausmann
  2023-10-17 20:32 ` agausmann
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: agausmann @ 2023-10-17 20:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

New comment by agausmann on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1767123255

Comment:
> Interestingly the dbg repo for x86_64-musl results in a prusa-slicer binary that has an exec format error on launch.

I think that's true for all dbg packages; they ship ELFs containing the debuginfo and not the machine code. Also partly evidenced by `interpreter *empty*`

Some tools like gdb will be able to locate the separate debuginfo file in `/usr/debug`. If the tool doesn't support that, you can use `eu-unstrip` to recombine the two filesa


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (6 preceding siblings ...)
  2023-10-17 20:32 ` agausmann
@ 2023-10-17 20:32 ` agausmann
  2023-10-17 20:32 ` agausmann
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: agausmann @ 2023-10-17 20:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

New comment by agausmann on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1767123255

Comment:
> Interestingly the dbg repo for x86_64-musl results in a prusa-slicer binary that has an exec format error on launch.

I think that's true for all dbg packages; they ship ELFs containing the debuginfo and not the machine code. Also partly evidenced by `interpreter *empty*`

Some tools like gdb will be able to locate the separate debuginfo file in `/usr/debug`. If the tool doesn't support that, you can use `eu-unstrip` to recombine the two files


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (7 preceding siblings ...)
  2023-10-17 20:32 ` agausmann
@ 2023-10-17 20:32 ` agausmann
  2023-10-20 13:31 ` alpaca-ninetynine
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: agausmann @ 2023-10-17 20:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

New comment by agausmann on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1767123255

Comment:
> Interestingly the dbg repo for x86_64-musl results in a prusa-slicer binary that has an exec format error on launch.

I think that's true for all dbg packages; they ship ELFs containing the debuginfo and not the machine code. Also partly evidenced by `interpreter *empty*`

Some tools like gdb will be able to locate the separate debuginfo file in `/usr/debug`. If the tool doesn't support that, you may be able to use `eu-unstrip` to recombine the two files


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (8 preceding siblings ...)
  2023-10-17 20:32 ` agausmann
@ 2023-10-20 13:31 ` alpaca-ninetynine
  2023-10-20 17:37 ` Vaelatern
  2024-02-19  7:58 ` kevcrumb
  11 siblings, 0 replies; 13+ messages in thread
From: alpaca-ninetynine @ 2023-10-20 13:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 975 bytes --]

New comment by alpaca-ninetynine on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1772746651

Comment:
Adding a backtrace from my experience of the segfault in case it helps figuring out what's going on, though I guess the referenced function is in the patch above.

#0  0x00007ffff7d90ba5 in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) ()
   from /usr/lib/libstdc++.so.6
#1  0x00007ffff4198dc6 in wxTranslations::SetLanguage(wxLanguage) () from /usr/lib/libwx_baseu-3.2.so.0
#2  0x0000555555e4165a in ?? ()
#3  0x0000555555e434e2 in ?? ()
#4  0x0000555555e45b26 in ?? ()
#5  0x00007ffff4148b23 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-3.2.so.0
#6  0x0000555555e2ccee in ?? ()
#7  0x0000555555837ee6 in ?? ()
#8  0x000055555581ce74 in main ()


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (9 preceding siblings ...)
  2023-10-20 13:31 ` alpaca-ninetynine
@ 2023-10-20 17:37 ` Vaelatern
  2024-02-19  7:58 ` kevcrumb
  11 siblings, 0 replies; 13+ messages in thread
From: Vaelatern @ 2023-10-20 17:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 153 bytes --]

New comment by Vaelatern on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1773137168

Comment:
#46799 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related
  2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
                   ` (10 preceding siblings ...)
  2023-10-20 17:37 ` Vaelatern
@ 2024-02-19  7:58 ` kevcrumb
  11 siblings, 0 replies; 13+ messages in thread
From: kevcrumb @ 2024-02-19  7:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

New comment by kevcrumb on void-packages repository

https://github.com/void-linux/void-packages/issues/46687#issuecomment-1951890463

Comment:
Any difference with the more recent 2.7 branch?

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-02-19  7:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-15  6:32 [ISSUE] Prusa-slicer segfault on start, x86_64-musl, probably wxwidgets related Vaelatern
2023-10-16  8:52 ` sgn
2023-10-16 16:26 ` Vaelatern
2023-10-17  1:34 ` sgn
2023-10-17  1:48 ` Vaelatern
2023-10-17  1:57 ` Vaelatern
2023-10-17 20:30 ` agausmann
2023-10-17 20:32 ` agausmann
2023-10-17 20:32 ` agausmann
2023-10-17 20:32 ` agausmann
2023-10-20 13:31 ` alpaca-ninetynine
2023-10-20 17:37 ` Vaelatern
2024-02-19  7:58 ` kevcrumb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).