Created attachment 235354 [details] poudriere build log file Having built net/linphone 4.4.8,1 I saw both are dependencies: qt5-quickcontrols-5.15.5p0 qt5-quickcontrols2-5.15.5p5 Trying to run the newly built version starts like this and segfaults: [13:36:50:155][0x20aa9748][Info]"Starting Linphone (bin: linphone)" [13:36:50:155][0x20aa9748][Info]"Use locale: de_DE" [13:36:50:230][0x20aa9748][Info]Available fonts : ("Adobe Courier", "Adobe Helvetica", "Adobe New Century Schoolbook", "Adobe Times", "Adobe Utopia", "Andale Mono", "Arabic Newspaper", "Arial", "Arial Black", "B&H Lucida", "B&H LucidaBright", "B&H LucidaTypewriter", "Bitstream Charter", "Bitstream Terminal", "Caladea", "Carlito", "Comic Sans MS", "Courier", "Courier 10 Pitch", "Courier New", "Cursor", "cursor.pcf", "DEC Terminal", "deccurs.pcf", "decsess.pcf", "DejaVu Math TeX Gyre", "DejaVu Sans", "DejaVu Sans Condensed", "DejaVu Sans Mono", "DejaVu Serif", "DejaVu Serif Condensed", "East Syriac Adiabene", "East Syriac Ctesiphon", "Estrangelo Antioch", "Estrangelo Edessa", "Estrangelo Midyat", "Estrangelo Nisibin", "Estrangelo Nisibin Outline", "Estrangelo Quenneshrin", "Estrangelo Talada", "Estrangelo TurAbdin", "Gentium Basic", "Gentium Book Basic", "Georgia", "Goha-Tibeb Zemen", "Impact", "Liberation Mono", "Liberation Sans", "Liberation Serif", "Linux Biolinum G", "Linux Libertine Display G", "Linux Libertine G", "Luxi Mono [b&h]", "Luxi Mono [B&H ]", "Luxi Sans [b&h]", "Luxi Sans [B&H ]", "Luxi Serif [B&H ]", "Luxi Serif [b&h]", "micro.pcf", "Misc Fixed", "Misc Fixed Wide", "Monospace", "MUTT ClearlyU Alternate Glyphs Wide", "MUTT ClearlyU PUA", "MUTT ClearlyU Wide", "Noto Sans", "Noto Sans UI", "Sans Serif", "Schumacher Clean", "Schumacher Clean Wide", "Serif", "Serto Batnan", "Serto Jerusalem", "Serto Jerusalem Outline", "Serto Kharput", "Serto Malankara", "Serto Mardin", "Serto Urhoy", "Sony Fixed", "Times New Roman", "Trebuchet MS", "Twitter Color Emoji", "Utopia", "Verdana", "Webdings") [13:36:50:230][0x20aa9748][Info]"Running app..." [13:36:50:330][0x20aa9748][Info]"Activated selectors:" ("custom", "de_DE", "unix", "freebsd", "freebsd") [13:36:50:331][0x20aa9748][Info]"Registering types..." [13:36:50:332][0x20aa9748][Info]"Registering shared types..." [13:36:50:332][0x20aa9748][Info]"Registering tool types..." [13:36:50:332][0x20aa9748][Info]"Registering shared tool types..." [13:36:50:573][0x20aa9748][Info]"Loading main view..." [13:36:50:870][0x20aa9748][Info]"Launch async core creation." [13:36:50:930][0x20aa9748][Info]Core is starting "Starting up" [13:36:50:957][0x20aa9748][Info]Core is running "On" [13:36:50:957][0x20aa9748][Info]"Set `Friends` path: `/home/integer/.local/share/linphone/friends.db`" [13:36:50:961][0x20aa9748][Info]"Set `CallLogs` path: `/home/integer/.local/share/linphone/call-history.db`" [13:36:50:962][0x20aa9748][Info]Using ZrtpSecrets path : "/home/integer/.local/share/linphone/zrtp-secrets.db" [13:36:50:962][0x20aa9748][Info]Using UserCertificate path : "/home/integer/.local/share/linphone/usr-crt/" [13:36:50:962][0x20aa9748][Info]Using RootCa path : "/usr/local/share/linphone/rootca.pem" [13:36:50:962][0x20aa9748][Info]"Start iterate" [13:36:50:965][0x20aa9748][Info]Sip addresses model from Chats : 0 ms. [13:36:50:965][0x20aa9748][Info]Sip addresses model from Calls : 0 ms. [13:36:50:965][0x20aa9748][Info]Sip addresses model from Refs : 0 ms. [13:36:50:965][0x20aa9748][Info]Sip addresses model from Contacts : 0 ms. [13:36:50:965][0x20aa9748][Info]Sip addresses model initialized in: 0 ms. [13:36:50:988][0x20aa9748][Info]"Notify event count: 0." [13:36:50:988][0x20aa9748][Info]"Notify event count: 0." [13:36:50:988][0x20aa9748][Info]"Migrate from old rc file (0 to 3)." [13:36:50:988][0x20aa9748][Info]"CoreManager initialized" [13:36:51:062][0x20aa9748][Debug]"Unable to find a translation. (context=Timeline, label=timelineFilterConferences, disambiguation=)" [13:36:51:265][0x20aa9748][Debug]"Unable to find a translation. (context=Timeline, label=timelineFilterAnyEphemerals, disambiguation=)" [13:36:51:266][0x20aa9748][Debug]"Unable to find a translation. (context=Timeline, label=timelineFilterAnyEphemerals, disambiguation=)" [13:36:51:267][0x20aa9748][Debug]"Unable to find a translation. (context=Timeline, label=timelineFilterAnyChatRooms, disambiguation=)" leaving empty directory tree ~/linphone linphone └── captures
I'm running it myself on 13.1-RELEASE without issues, but amd64, so this is probably an i386-specific issue. It might take some time, but I'll try to reproduce it on i386 soon!
Well, unfortunately, I can't reproduce. Just tested on an old i386 machine, it starts fine, SIP registration works, incoming calls are signalled...
(In reply to Felix Palmen from comment #2) Well, unfortunately I can reproduce it. I did run a new poudriere build which completed. Then I removed the old linphone installation from the i386 and any leftovers in user directories. find / -name "*linphone" showed no output. Then I did pkg install -y linphone |% tee linphone_first_run this segfaulted again with the same output as yesterday but this first line: 2022-07-21 09:26:14:744 bctbx-error-bctbx_file_open: Error open No such file or directory Awaiting instructions for testing.
(In reply to p5B2EA84B3 from comment #3) Typo in find / -name "*linphone" showed no output. it should read "*linphone*"
(In reply to p5B2EA84B3 from comment #3) Sorry but I have to correct again: Then I did # pkg install -y linphone and as user from xterm > linphone |% tee linphone_first_run this segfaulted again with the same output as yesterday but this first line: 2022-07-21 09:26:14:744 bctbx-error-bctbx_file_open: Error open No such file or directory
(In reply to p5B2EA84B3 from comment #3) Well, I didn't say anything about the messages because they look pretty much the same on my i386 machine where linphone doesn't crash, and your extra message is most likely caused by removing your user configuration. Without being able to reproduce the crash, I can't really analyze anything myself. But: > Awaiting instructions for testing. Indeed, you could try gathering more information. I would recommend building a package with debugging info. For that, add the following to your /usr/local/etc/poudriere.d/make.conf: .if ${.CURDIR:M*/net/linphone} WITH_DEBUG=yes .endif Then, run the resulting linphone binary in a debugger (e.g. lldb), and once it crashed, obtain a stacktrace of the crash (IIRC the command is 'bt' for that) and attach it here. If the crash is happening in linphone itself, this should shed some light on it.
(In reply to Felix Palmen from comment #6) Forgot to mention: > run the resulting linphone binary in a debugger (e.g. lldb) to do this, just execute % lldb linphone and then issue the 'r' command on the (lldb) prompt tu run it from the debugger. When you're done (and obtained the stacktrace with 'bt'), the 'q' command will exit the debugger.
(In reply to Felix Palmen from comment #7) Thank you for providing the debugging instructions. Here is the output: > lldb linphone (lldb) target create "linphone" Current executable set to 'linphone' (i386). (lldb) r Process 1071 launched: '/usr/local/bin/linphone' (i386) QML debugging is enabled. Only use this in a safe environment. [13:50:54:119][0x20c52748][Info]app/App.cpp:232: "Starting Linphone (bin: linphone)" [13:50:54:120][0x20c52748][Info]app/App.cpp:233: "Use locale: de_DE" [13:50:54:285][0x20c52748][Info]app/AppController.cpp:109: Available fonts : ("Adobe Courier", "Adobe Helvetica", "Adobe New Century Schoolbook", "Adobe Times", "Adobe Utopia", "Andale Mono", "Arabic Newspaper", "Arial", "Arial Black", "B&H Lucida", "B&H LucidaBright", "B&H LucidaTypewriter", "Bitstream Charter", "Bitstream Terminal", "Caladea", "Carlito", "Comic Sans MS", "Courier", "Courier 10 Pitch", "Courier New", "Cursor", "cursor.pcf", "DEC Terminal", "deccurs.pcf", "decsess.pcf", "DejaVu Math TeX Gyre", "DejaVu Sans", "DejaVu Sans Condensed", "DejaVu Sans Mono", "DejaVu Serif", "DejaVu Serif Condensed", "East Syriac Adiabene", "East Syriac Ctesiphon", "Estrangelo Antioch", "Estrangelo Edessa", "Estrangelo Midyat", "Estrangelo Nisibin", "Estrangelo Nisibin Outline", "Estrangelo Quenneshrin", "Estrangelo Talada", "Estrangelo TurAbdin", "Gentium Basic", "Gentium Book Basic", "Georgia", "Goha-Tibeb Zemen", "Impact", "Liberation Mono", "Liberation Sans", "Liberation Serif", "Linux Biolinum G", "Linux Libertine Display G", "Linux Libertine G", "Luxi Mono [b&h]", "Luxi Mono [B&H ]", "Luxi Sans [b&h]", "Luxi Sans [B&H ]", "Luxi Serif [B&H ]", "Luxi Serif [b&h]", "micro.pcf", "Misc Fixed", "Misc Fixed Wide", "Monospace", "MUTT ClearlyU Alternate Glyphs Wide", "MUTT ClearlyU PUA", "MUTT ClearlyU Wide", "Noto Sans", "Noto Sans UI", "Sans Serif", "Schumacher Clean", "Schumacher Clean Wide", "Serif", "Serto Batnan", "Serto Jerusalem", "Serto Jerusalem Outline", "Serto Kharput", "Serto Malankara", "Serto Mardin", "Serto Urhoy", "Sony Fixed", "Times New Roman", "Trebuchet MS", "Twitter Color Emoji", "Utopia", "Verdana", "Webdings") [13:50:54:287][0x20c52748][Info]app/main.cpp:70: "Running app..." [13:50:54:582][0x20c52748][Info]app/App.cpp:362: "Activated selectors:" ("custom", "de_DE", "unix", "freebsd", "freebsd") [13:50:54:583][0x20c52748][Info]app/App.cpp:601: "Registering types..." [13:50:54:585][0x20c52748][Info]app/App.cpp:690: "Registering shared types..." [13:50:54:586][0x20c52748][Info]app/App.cpp:710: "Registering tool types..." [13:50:54:587][0x20c52748][Info]app/App.cpp:722: "Registering shared tool types..." [13:50:56:215][0x20c52748][Info]app/App.cpp:406: "Loading main view..." [13:50:56:875][0x20c52748][Info]components/core/CoreManager.cpp:262: "Launch async core creation." [13:50:57:158][0x20c52748][Info]components/core/CoreHandlers.cpp:163: Core is starting "Starting up" [13:50:57:916][0x20c52748][Info]components/core/CoreHandlers.cpp:155: Core is running "On" [13:50:57:917][0x20c52748][Info]components/core/CoreManager.cpp:224: "Set `Friends` path: `/home/integer/.local/share/linphone/friends.db`" [13:50:57:922][0x20c52748][Info]components/core/CoreManager.cpp:225: "Set `CallLogs` path: `/home/integer/.local/share/linphone/call-history.db`" [13:50:57:923][0x20c52748][Info]components/core/CoreManager.cpp:239: Using ZrtpSecrets path : "/home/integer/.local/share/linphone/zrtp-secrets.db" [13:50:57:923][0x20c52748][Info]components/core/CoreManager.cpp:242: Using UserCertificate path : "/home/integer/.local/share/linphone/" [13:50:57:924][0x20c52748][Info]components/core/CoreManager.cpp:245: Using RootCa path : "/usr/local/share/linphone/rootca.pem" [13:50:57:924][0x20c52748][Info]components/core/CoreManager.cpp:412: "Start iterate" [13:50:57:927][0x20c52748][Info]components/sip-addresses/SipAddressesModel.cpp:574: Sip addresses model from Chats : 0 ms. [13:50:57:939][0x20c52748][Info]components/sip-addresses/SipAddressesModel.cpp:576: Sip addresses model from Calls : 12 ms. [13:50:57:940][0x20c52748][Info]components/sip-addresses/SipAddressesModel.cpp:578: Sip addresses model from Refs : 0 ms. [13:50:57:940][0x20c52748][Info]components/sip-addresses/SipAddressesModel.cpp:580: Sip addresses model from Contacts : 0 ms. [13:50:57:941][0x20c52748][Info]components/sip-addresses/SipAddressesModel.cpp:581: Sip addresses model initialized in: 13 ms. [13:50:58:210][0x20c52748][Info]components/core/event-count-notifier/AbstractEventCountNotifier.cpp:77: "Notify event count: 0." [13:50:58:211][0x20c52748][Info]components/core/event-count-notifier/AbstractEventCountNotifier.cpp:77: "Notify event count: 0." [13:50:58:211][0x20c52748][Info]components/core/CoreManager.cpp:316: "Migrate from old rc file (0 to 3)." [13:50:58:211][0x20c52748][Info]components/core/CoreManager.cpp:114: "CoreManager initialized" [13:50:58:404][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=Timeline, label=timelineFilterConferences, disambiguation=)" [13:50:58:845][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=Timeline, label=timelineFilterAnyEphemerals, disambiguation=)" [13:50:58:846][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=Timeline, label=timelineFilterAnyEphemerals, disambiguation=)" [13:50:58:856][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=Timeline, label=timelineFilterAnyChatRooms, disambiguation=)" [13:50:58:867][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=Timeline, label=timelineFilterAnyChatRooms, disambiguation=)" [13:50:58:869][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=Timeline, label=timelineFilterAllSecureLevelRooms, disambiguation=)" [13:50:58:870][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=Timeline, label=timelineFilterAllSecureLevelRooms, disambiguation=)" [13:50:59:302][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=AssistantHome, label=homeCgu, disambiguation=)" [13:50:59:310][0x20c52748][Info]app/App.cpp:956: "Open Linphone app." [13:50:59:311][0x20c52748][Info]app/App.cpp:272: "Creating subwindow: `qrc:/ui/views/App/Calls/CallsWindow.qml`." [13:51:00:035][0x20c52748][Info]app/App.cpp:279: "Subwindow status: `1`." [13:51:00:385][0x20c52748][Info]app/App.cpp:272: "Creating subwindow: `qrc:/ui/views/App/Settings/SettingsWindow.qml`." [13:51:00:854][0x20c52748][Info]app/App.cpp:279: "Subwindow status: `1`." [13:51:01:609][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsUi, label=versionCheckTypeRelease, disambiguation=)" [13:51:01:610][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsUi, label=versionCheckTypeNightly, disambiguation=)" [13:51:01:610][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsUi, label=versionCheckTypeCustom, disambiguation=)" [13:51:01:612][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsUi, label=minimalTimelineFilterTooltip, disambiguation=)" [13:51:01:612][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsUi, label=minimalTimelineFilterLabel, disambiguation=)" [13:51:01:971][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsCallsChat, label=autoDownloadNever, disambiguation=)" [13:51:01:972][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsCallsChat, label=AutoDownload, disambiguation=)" [13:51:01:975][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsCallsChat, label=chatNotificationsEnabledLabel, disambiguation=)" [13:51:02:262][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsSipAccounts, label=defaultDeviceNameLabel, disambiguation=)" [13:51:02:966][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsCallsChat, label=autoDownloadNever, disambiguation=)" [13:51:02:967][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsCallsChat, label=autoDownloadAlways, disambiguation=)" [13:51:02:967][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=SettingsCallsChat, label=autoDownloadNever, disambiguation=)" [13:51:03:134][0x20c52748][Debug]app/translator/DefaultTranslator.cpp:66: "Unable to find a translation. (context=AssistantHome, label=homeCgu, disambiguation=)" Process 1071 stopped * thread #7, name = 'linphone', stop reason = signal SIGSEGV: address access protected (fault address: 0x3181e000) frame #0: 0x3181e000 -> 0x3181e000: pushl %ebp 0x3181e001: pushl %esi 0x3181e002: xorl %ecx, %ecx 0x3181e004: movl 0x10(%esp), %ebp (lldb) bt * thread #7, name = 'linphone', stop reason = signal SIGSEGV: address access protected (fault address: 0x3181e000) * frame #0: 0x3181e000 frame #1: 0x2b81494b i915_dri.so`___lldb_unnamed_symbol2756 + 427 frame #2: 0x2b814522 i915_dri.so`___lldb_unnamed_symbol2753 + 194 frame #3: 0x2b7492fc i915_dri.so`___lldb_unnamed_symbol871 + 268 frame #4: 0x2b748843 i915_dri.so`___lldb_unnamed_symbol864 + 627 frame #5: 0x2b7ff677 i915_dri.so`___lldb_unnamed_symbol2624 + 327 frame #6: 0x2b74e4ab i915_dri.so`___lldb_unnamed_symbol960 + 139 frame #7: 0x2b7fca47 i915_dri.so`___lldb_unnamed_symbol2607 + 6295 frame #8: 0x2b7fcc8e i915_dri.so`___lldb_unnamed_symbol2610 + 78 frame #9: 0x2b98377d i915_dri.so`___lldb_unnamed_symbol6243 + 285 frame #10: 0x2b984c52 i915_dri.so`___lldb_unnamed_symbol6255 + 418 frame #11: 0x2b8b63cf i915_dri.so`___lldb_unnamed_symbol4633 + 1375 frame #12: 0x2b8b6420 i915_dri.so`___lldb_unnamed_symbol4634 + 32 frame #13: 0x2b742877 i915_dri.so`___lldb_unnamed_symbol794 + 471 frame #14: 0x2b8f232a i915_dri.so`___lldb_unnamed_symbol5069 + 618 frame #15: 0x20f15932 libQt5Quick.so.5`QSGBindable::clear(QFlags<QSGAbstractRenderer::ClearModeBit>) const + 66 frame #16: 0x20f299c0 libQt5Quick.so.5`QSGBatchRenderer::Renderer::renderBatches() + 2720 frame #17: 0x20f2b4bd libQt5Quick.so.5`QSGBatchRenderer::Renderer::render() + 1965 frame #18: 0x20f1611b libQt5Quick.so.5`QSGRenderer::renderScene(QSGBindable const&) + 587 frame #19: 0x20f8431c libQt5Quick.so.5`QSGOpenGLLayer::grab() + 2300 frame #20: 0x20f839e6 libQt5Quick.so.5`QSGOpenGLLayer::updateTexture() + 54 frame #21: 0x210f3b54 libQt5Quick.so.5`non-virtual thunk to QQuickOpenGLShaderEffectNode::preprocess() + 100 frame #22: 0x20f16847 libQt5Quick.so.5`QSGRenderer::preprocess() + 951 frame #23: 0x20f15fb1 libQt5Quick.so.5`QSGRenderer::renderScene(QSGBindable const&) + 225 frame #24: 0x20f15ea3 libQt5Quick.so.5`QSGRenderer::renderScene(unsigned int) + 83 frame #25: 0x20f7cbeb libQt5Quick.so.5`QSGDefaultRenderContext::renderNextFrame(QSGRenderer*, unsigned int) + 75 frame #26: 0x20fe6d7f libQt5Quick.so.5`QQuickWindowPrivate::renderSceneGraph(QSize const&, QSize const&) + 1391 frame #27: 0x20f89f0e libQt5Quick.so.5`___lldb_unnamed_symbol13090 + 2286 frame #28: 0x20f8b7a4 libQt5Quick.so.5`___lldb_unnamed_symbol13098 + 836 frame #29: 0x2346c3c7 libQt5Core.so.5`___lldb_unnamed_symbol7203 + 247 frame #30: 0x2319e6e9 libthr.so.3`thread_start(curthread=0x2f88eb00) at thr_create.c:292:16 (lldb) q Furthermore these lines appeared in the unbound.log during testing: Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0.local. A IN NXDOMAIN 0.000000 1 38 Jul 21 13:50:57 unbound[922:2] reply: sanitizedIP ??0.local. AAAA IN NXDOMAIN 0.000000 1 38 Jul 21 13:50:57 unbound[922:2] reply: sanitizedIP ??0. A IN NXDOMAIN 0.108267 0 107 Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0. AAAA IN NXDOMAIN 0.108345 0 107 Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0.local. A IN NXDOMAIN 0.000000 1 38 Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0.local. AAAA IN NXDOMAIN 0.000000 1 38 Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0. A IN NXDOMAIN 0.000000 1 107 Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0. AAAA IN NXDOMAIN 0.000000 1 107 Jul 21 13:50:57 unbound[922:2] reply: sanitizedIP ??0.local. A IN NXDOMAIN 0.000000 1 38 Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0.local. AAAA IN NXDOMAIN 0.000000 1 38 Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0. A IN NXDOMAIN 0.000000 1 107 Jul 21 13:50:57 unbound[922:0] reply: sanitizedIP ??0. AAAA IN NXDOMAIN 0.000000 1 107 Did failing to resolve cause the crash?
Unfortunately (yes, again), this stacktrace shows there is no linphone code involved in the crash. I can't tell whether the problem is in Qt5Quick (x11-toolkits/qt5-declarative) or i915_dri.so (graphics/mesa-dri). Could you please try running linphone like this: % LIBGL_ALWAYS_SOFTWARE=true linphone and if that avoids the crash, also % LIBGL_DRI3_DISABLE=true linphone and % LIBGL_DRI2_DISABLE=true linphone If any of these work, we know the problem isn't with linphone itself.
(In reply to Felix Palmen from comment #9) Could you please try running linphone like this: % LIBGL_ALWAYS_SOFTWARE=true linphone ==> no crash % LIBGL_DRI3_DISABLE=true linphone ==> crash % LIBGL_DRI2_DISABLE=true linphone ==> no crash Now Felix, thank you so much to sort things. But what should I do fixing my problem? I have no clue what it is and where to start.
(In reply to p5B2EA84B3 from comment #10) > But what should I do fixing my problem? TBH ... use a wrapper script to run linphone. It's not like it does any graphics that would require full hardware accel ;) You could e.g. place something like this in PATH before /usr/local/bin: #!/bin/sh LIBGL_DRI2_DISABLE=true exec /usr/local/bin/linphone "$@" --- As for further investigating this bug, probably attribute it to mesa-dri instead... (but I can't edit the title)
BTW, if you want to still investigate more, you could try building both x11-toolkits/qt5-declarative and graphics/mesa-dri with WITH_DEBUG=yes (just like linphone before), to get a more meaningful stacktrace from the crash.
(In reply to Felix Palmen from comment #12) Felix, this is great advice an guiding for which I'm thankful as my learning enters new territory. So here is the output for digging further: Process 1097 stopped * thread #7, name = 'linphone', stop reason = signal SIGSEGV: address access protected (fault address: 0x32f79400) frame #0: 0x32f79400 -> 0x32f79400: pushl %ebp 0x32f79401: pushl %esi 0x32f79402: xorl %ecx, %ecx 0x32f79404: movl 0x10(%esp), %ebp (lldb) bt * thread #7, name = 'linphone', stop reason = signal SIGSEGV: address access protected (fault address: 0x32f79400) * frame #0: 0x32f79400 frame #1: 0x2c205983 i915_dri.so`choose_emit_func(ctx=0x32ff3500, count=1, dest="") at t_vertex.c:160:4 frame #2: 0x2c2054c2 i915_dri.so`_tnl_emit_vertices_to_buffer(ctx=0x32ff3500, start=0, end=1, dest=0x35637640) at t_vertex.c:470:4 frame #3: 0x2c068d06 i915_dri.so`intel_emit_verts(ctx=0x32ff3500, start=0, count=1, buf=0x35637640) at t_dd_dmatmp.h:58:11 frame #4: 0x2c0684dc i915_dri.so`intel_render_tri_fan_verts(ctx=0x32ff3500, start=0, count=4, flags=54) at t_dd_dmatmp.h:280:13 frame #5: 0x2c06755a i915_dri.so`intel_run_render(ctx=0x32ff3500, stage=0x32fd4a10) at intel_render.c:249:7 frame #6: 0x2c1e273e i915_dri.so`_tnl_run_pipeline(ctx=0x32ff3500) at t_pipeline.c:241:12 frame #7: 0x2c07270f i915_dri.so`intelRunPipeline(ctx=0x32ff3500) at intel_tris.c:1087:4 frame #8: 0x2c1db399 i915_dri.so`_tnl_draw_prims(ctx=0x32ff3500, arrays=0x32fd5820, prim=0xfaff7a3c, nr_prims=1, ib=0x00000000, index_bounds_valid='\x01', min_index=0, max_index=3, num_instances=1, base_instance=0) at t_draw.c:528:13 frame #9: 0x2c1dbf4e i915_dri.so`_tnl_draw(ctx=0x32ff3500, prim=0xfaff7a3c, nr_prims=1, ib=0x00000000, index_bounds_valid=true, primitive_restart=false, restart_index=6, min_index=0, max_index=3, num_instances=1, base_instance=0) at t_draw.c:647:4 frame #10: 0x2c5bd90f i915_dri.so`_mesa_draw_gallium_fallback(ctx=0x32ff3500, info=0xfaff7aac, drawid_offset=0, draws=0xfaff7aa0, num_draws=1) at draw.c:1016:10 frame #11: 0x2c5bef8b i915_dri.so`_mesa_draw_arrays(ctx=0x32ff3500, mode=6, start=0, count=4, numInstances=1, baseInstance=0) at draw.c:1319:4 frame #12: 0x2c5bedb2 i915_dri.so`_mesa_DrawArrays(mode=6, start=0, count=4) at draw.c:1528:4 frame #13: 0x2c309153 i915_dri.so`meta_clear(ctx=0x32ff3500, buffers=128, glsl=true) at meta.c:1802:7 frame #14: 0x2c3091c6 i915_dri.so`_mesa_meta_glsl_Clear(ctx=0x32ff3500, buffers=128) at meta.c:1510:4 frame #15: 0x2c05a9a9 i915_dri.so`intelClear(ctx=0x32ff3500, mask=144) at intel_clear.c:183:3 frame #16: 0x2c3706a5 i915_dri.so`_mesa_Clear at clear.c:225:7 frame #17: 0x2c37033b i915_dri.so`_mesa_Clear(mask=16640) at clear.c:246:4 frame #18: 0x2115be14 libQt5Quick.so.5`QOpenGLFunctions::glClear(this=0x2b7cfec8, mask=16640) at qopenglfunctions.h:628:5 frame #19: 0x2115a653 libQt5Quick.so.5`QSGBindable::clear(this=0xfaff87c0, mode=(i = 3)) const at qsgrenderer.cpp:78:52 frame #20: 0x2117719c libQt5Quick.so.5`QSGBatchRenderer::Renderer::renderBatches(this=0x34f55000) at qsgbatchrenderer.cpp:4022:21 frame #21: 0x2117b809 libQt5Quick.so.5`QSGBatchRenderer::Renderer::render(this=0x34f55000) at qsgbatchrenderer.cpp:4343:5 frame #22: 0x2115afb1 libQt5Quick.so.5`QSGRenderer::renderScene(this=0x34f55000, bindable=0xfaff87c0) at qsgrenderer.cpp:264:5 frame #23: 0x21232eb5 libQt5Quick.so.5`QSGOpenGLLayer::grab(this=0x32f81d80) at qsgopengllayer.cpp:447:25 frame #24: 0x21231752 libQt5Quick.so.5`QSGOpenGLLayer::updateTexture(this=0x32f81d80) at qsgopengllayer.cpp:187:9 frame #25: 0x2149f565 libQt5Quick.so.5`QQuickOpenGLShaderEffectMaterial::updateTextures(this=0x3268bf00) const at qquickopenglshadereffectnode.cpp:474:26 frame #26: 0x2149fa27 libQt5Quick.so.5`QQuickOpenGLShaderEffectNode::preprocess(this=0x34f65080) at qquickopenglshadereffectnode.cpp:516:66 frame #27: 0x2149fa53 libQt5Quick.so.5`non-virtual thunk to QQuickOpenGLShaderEffectNode::preprocess() at qquickopenglshadereffectnode.cpp:0 frame #28: 0x2115b899 libQt5Quick.so.5`QSGRenderer::preprocess(this=0x323aec00) at qsgrenderer.cpp:337:16 frame #29: 0x2115ae14 libQt5Quick.so.5`QSGRenderer::renderScene(this=0x323aec00, bindable=0xfaff8a4c) at qsgrenderer.cpp:238:5 frame #30: 0x2115ac8a libQt5Quick.so.5`QSGRenderer::renderScene(this=0x323aec00, fboId=0) at qsgrenderer.cpp:212:13 frame #31: 0x21222155 libQt5Quick.so.5`QSGDefaultRenderContext::renderNextFrame(this=0x30ee4c30, renderer=0x323aec00, fboId=0) at qsgdefaultrendercontext.cpp:228:15 frame #32: 0x212d8569 libQt5Quick.so.5`QQuickWindowPrivate::renderSceneGraph(this=0x30e76800, size=0x3169264c, surfaceSize=0xfaff8d98) at qquickwindow.cpp:616:22 frame #33: 0x2123c387 libQt5Quick.so.5`QSGRenderThread::syncAndRender(this=0x31692600, grabImage=0x00000000) at qsgthreadedrenderloop.cpp:837:12 frame #34: 0x2123e4b1 libQt5Quick.so.5`QSGRenderThread::run(this=0x31692600) at qsgthreadedrenderloop.cpp:1043:17 frame #35: 0x23a6c3c7 libQt5Core.so.5`___lldb_unnamed_symbol7203 + 247 frame #36: 0x2406c6e9 libthr.so.3`thread_start(curthread=0x3107a000) at thr_create.c:292:16 (lldb) How would you change the title of this PR?
(In reply to p5B2EA84B3 from comment #13) > How would you change the title of this PR? I'm not even sure whether this would be the correct way to deal with it, currently asking for advice on IRC ;) All I can say now is that I had a look at the function in mesa-dri code where your crash happens, and I'm more or less lost, it seems to be something about on-the-fly code generation for OpenGL... really no idea about that kind of stuff. But I'd be very surprised if linphone code had anything to do with the crash. We verified it works with software rendering. My advice would still be, just use it that way for now, cause it doesn't seem to have complex UI things that really need hardware acceleration.
Hello Emmanuel, I was told on IRC that you're maintaining DRM related things. Would you mind having a look at the stacktrace in comment #13 please? Thank you!
Latest mesa-dri doesn't ship i915_dri.so anymore.
> Latest mesa-dri doesn't ship i915_dri.so anymore. True, but that noes not mean that the problem has "overcome by events".
comment 13 backtrace is not applicable to mesa-dri >= 22.0.0 per https://gitlab.freedesktop.org/mesa/mesa/-/commit/0cad451f007f mesa-dri can probably re-enable i915 (via -Dgallium-drivers=i915) but it supports less GPUs per https://gitlab.freedesktop.org/mesa/mesa/-/commit/ceba7f695271
(In reply to p5B2EA84B3 from comment #17) Of course it does, if you have the same (more or less) problem with latest mesa-dri (so with crocus/iris) please re-open.
i965 was replaced by crocus (Gen4-Gen7, Gen8LP) + iris (Gen8+) but i915c (Gen2-Gen3) was replaced by i915g (Gen3). i810 (Gen1) is gone upstream, didn't use i915kms.ko (i810 takes UMS path in xf86-video-intel) and was never enabled in mesa-dri. The reporter didn't specify GPU but probably Gen3 as in https://en.wikipedia.org/wiki/List_of_Intel_graphics_processing_units#Third_generation