discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gui apps segfault on Linux/x86/clang/libobjc2


From: Fred Kiefer
Subject: Re: gui apps segfault on Linux/x86/clang/libobjc2
Date: Sun, 2 Dec 2018 12:46:04 +0100

Both the reported issues should be rather harmless. For the one in back I 
already committed a fix to prevent it. Please try with the current version on 
git.
I will look into the base issue as well, but expect that this is also not the 
cause of your problem. It is far more interesting that you get the segmentation 
fault only when not running with valgrind. Is the stack trace of the 
segmentation fault still the same?

Fred


> Am 02.12.2018 um 10:11 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:
> 
> Fred Kiefer wrote:
>> my advise is as always, run this application under valgrind and let it 
>> figure out what is going wrong here. As the issue itself is happening 
>> somewhere inside of libX11 it is highly likely that this isn’t a GNUstep 
>> problem.
> 
> 
> following yours and Richard advice, I unintalled, cleaned and rebuild all 
> core libraries and Ink, lowering also the optimization level.
> 
> Ink still segfaults at startup, but with valgrind it starts.
> 
> There seem to be several issues, both in gui/back as one in base or 
> GWorkspace (?)
> Explanations or ideas?
> Suggestions and patches welcome!
> 
> Riccardo
> 
> 2018-12-02 09:57:55.504 Ink[21797:21797] styleoffsets ... guessing offsets
> ==21797== Source and destination overlap in memcpy(0x902ded8, 0x902ded8, 28)
> ==21797==    at 0x4035409: __GI_memcpy (in 
> /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
> ==21797==    by 0x7F0B2F1: _i_GSGState__setColor_state_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x7F0E6C4: _i_GSGState_Ops_DPSinitgraphics (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x7F5AE2B: _i_CairoGState__DPSinitgraphics (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x7F0AB03: _i_GSGState__initWithDrawContext_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x7F0410A: _i_GSContext__initWithContextInfo_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x43A901A: 
> _c_NSGraphicsContext__graphicsContextWithAttributes_ (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x42C7D74: _i_NSApplication___init (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x4AFC231: _i_NSObject__performSelector_withObject_ (in 
> /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x4B92674: 
> _i_NSObject_NSThreadPerformAdditions_performSelector_onThread_withObject_waitUntilDone_modes_
>  (in /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x4B922EB: 
> _i_NSObject_NSThreadPerformAdditions_performSelectorOnMainThread_withObject_waitUntilDone_modes_
>  (in /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x4B92390: 
> _i_NSObject_NSThreadPerformAdditions_performSelectorOnMainThread_withObject_waitUntilDone_
>  (in /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==
> ==21797== Source and destination overlap in memcpy(0x993c300, 0x993c300, 28)
> ==21797==    at 0x4035409: __GI_memcpy (in 
> /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
> ==21797==    by 0x7F0B2F1: _i_GSGState__setColor_state_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x7F0BF21: _i_GSGState_Ops_DPSsetalpha_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x7F04E1F: _i_GSContext_Ops_DPSsetalpha_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x434A74C: DPSsetalpha (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x4344ADC: PSsetalpha (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x43480E0: _i_GSRGBColor__set (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x4340019: _i_NSColor__set (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x45C56BA: _i_GSTheme_Drawing_drawWindowBackground_view_ (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x45FD4F4: _i_GSWindowDecorationView__drawRect_ (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x45292E8: _i_NSView__displayRectIgnoringOpacity_inContext_ 
> (in /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x4528E4E: _i_NSView__displayRectIgnoringOpacity_ (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==
> ==21797== Source and destination overlap in memcpy(0x993c31c, 0x993c31c, 28)
> ==21797==    at 0x4035409: __GI_memcpy (in 
> /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
> ==21797==    by 0x7F0B333: _i_GSGState__setColor_state_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x7F0BF64: _i_GSGState_Ops_DPSsetalpha_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x7F04E1F: _i_GSContext_Ops_DPSsetalpha_ (in 
> /System/Library/Bundles/libgnustep-back-026.bundle/libgnustep-back-026)
> ==21797==    by 0x434A74C: DPSsetalpha (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x4344ADC: PSsetalpha (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x43480E0: _i_GSRGBColor__set (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x4340019: _i_NSColor__set (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x45C56BA: _i_GSTheme_Drawing_drawWindowBackground_view_ (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x45FD4F4: _i_GSWindowDecorationView__drawRect_ (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x45292E8: _i_NSView__displayRectIgnoringOpacity_inContext_ 
> (in /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x4528E4E: _i_NSView__displayRectIgnoringOpacity_ (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==
> ==21797== Source and destination overlap in memcpy(0x9e67c28, 0x9e67c28, 24)
> ==21797==    at 0x4035409: __GI_memcpy (in 
> /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
> ==21797==    by 0x4C1224C: 
> _i_GSFFIInvocation__initWithCallback_values_frame_signature_ (in 
> /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x4C1359A: GSFFIInvocationCallback (in 
> /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x7566A74: ??? (in /usr/lib/libffi.so.6.0.4)
> ==21797==    by 0x7566E25: ??? (in /usr/lib/libffi.so.6.0.4)
> ==21797==    by 0x4A776EA: 
> _i_NSDistributedNotificationCenter_Private__connect (in 
> /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x4A75C22: 
> _i_NSDistributedNotificationCenter__addObserver_selector_name_object_suspensionBehavior_
>  (in /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x4A7592D: 
> _i_NSDistributedNotificationCenter__addObserver_selector_name_object_ (in 
> /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x4558336: _i__GSWorkspaceCenter__init (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x4AFACCA: _c_NSObject__new (in 
> /System/Library/Libraries/libgnustep-base.so.1.25.1)
> ==21797==    by 0x455A2C4: _i_NSWorkspace__init (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==    by 0x455A06B: _c_NSWorkspace__sharedWorkspace (in 
> /System/Library/Libraries/libgnustep-gui.so.0.26.2)
> ==21797==
> ==21797==
> ==21797== HEAP SUMMARY:
> ==21797==     in use at exit: 6,861,498 bytes in 64,833 blocks
> ==21797==   total heap usage: 142,607 allocs, 77,774 frees, 17,768,720 bytes 
> allocated
> ==21797==
> ==21797== LEAK SUMMARY:
> ==21797==    definitely lost: 429,650 bytes in 9,115 blocks
> ==21797==    indirectly lost: 33,558 bytes in 2,010 blocks
> ==21797==      possibly lost: 1,486,526 bytes in 13,515 blocks
> ==21797==    still reachable: 4,911,764 bytes in 40,193 blocks
> ==21797==                       of which reachable via heuristic:
> ==21797==                         newarray           : 44,142 bytes in 1,433 
> blocks
> ==21797==         suppressed: 0 bytes in 0 blocks
> ==21797== Rerun with --leak-check=full to see details of leaked memory
> ==21797==
> ==21797== For counts of detected and suppressed errors, rerun with: -v
> ==21797== ERROR SUMMARY: 902 errors from 4 contexts (suppressed: 1 from 1)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]