Hi,

On 2018-04-07 18:04:12 +0000 David Chisnall <gnus...@theravensnest.org> wrote:

> 
> No idea if either of them are relevant, but I’ve just pushed two fixes for 
> memory-related errors in -base.  One writes some data through an 
> uninitialised pointer when an exception is thrown and the platform doesn’t 
> provide backtrace.  The other treats things as GSString instances even if 
> they aren’t and so can potentially dereference an invalid pointer.
> 
> Either of these could cause random crashes in some usage on some platforms.


unfortunatley not. I still get a hard crash while running "plmerge". For me it 
is OpenBSD only, but I got that Gregory has issues on linux to.

I was able to compile with debug and get a better starcktrace, although I think 
it is corrupted and loops.. or we have some case of /thread recurision

Riccardo


Program received signal SIGSEGV, Segmentation fault.
0x0ba98aac in _libc_memcpy (dst0=0x384, src0=0x7a6f60c4, length=88)
    at /usr/src/lib/libc/string/memcpy.c:54
54      /usr/src/lib/libc/string/memcpy.c: No such file or directory.
        in /usr/src/lib/libc/string/memcpy.c
Current language:  auto; currently minimal
(gdb) bt
#0  0x0ba98aac in _libc_memcpy (dst0=0x384, src0=0x7a6f60c4, length=88)
    at /usr/src/lib/libc/string/memcpy.c:54
#1  0x0ba9f956 in _libc_arc4random_buf (buf=0x85d03bd4, n=Variable "n" is not 
available.
)
    at /usr/src/lib/libc/crypt/arc4random.c:154
#2  0x0ba60cfa in omalloc (sz=Variable "sz" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:308
#3  0x0ba60b72 in malloc (size=Variable "size" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:1273
#4  0x0869dd26 in default_malloc (zone=0x286ffa60, size=88) at NSZone.m:124
#5  0x086a0722 in NSZoneMalloc (zone=0x286ffa60, size=88) at NSZone.m:1779
#6  0x085d3bbe in NSAllocateObject (aClass=0x28695760, extraBytes=0, 
    zone=0x286ffa60) at NSObject.m:788
#7  0x08586b93 in +[NSHashTable allocWithZone:] (self=0x28695760, 
    _cmd=0x286957f0, aZone=0x286ffa60) at NSHashTable.m:51
#8  0x08524303 in NSCreateHashTableWithZone (k=
      {hash = 0x8519e11 <_NS_non_owned_void_p_hash>, isEqual = 0x8519e1c 
<_NS_non_owned_void_p_is_equal>, retain = 0x8519e2a 
<_NS_non_owned_void_p_retain>, release = 0x8519e30 
<_NS_non_owned_void_p_release>, describe = 0x8519e36 
<_NS_non_owned_void_p_describe>}, capacity=10, zone=0x286ffa60)
    at NSConcreteHashTable.m:308
#9  0x08524169 in NSCreateHashTable (callBacks=
      {hash = 0x8519e11 <_NS_non_owned_void_p_hash>, isEqual = 0x8519e1c 
<_NS_non_owned_void_p_is_equal>, retain = 0x8519e2a 
<_NS_non_owned_void_p_retain>, release = 0x8519e30 
<_NS_non_owned_void_p_release>, describe = 0x8519e36 
<_NS_non_owned_void_p_describe>}, capacity=10) at NSConcreteHashTable.m:283
#10 0x0864d4e7 in -[NSThread init] (self=0x7d5aea10, _cmd=0x286c3cc0)
    at NSThread.m:1092
#11 0x085d428d in +[NSObject new] (self=0x286e5080, _cmd=0x286e5248)
    at NSObject.m:1233
#12 0x0864ca6b in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:844
#13 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#14 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#15 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#16 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7d5ae110, 
    _cmd=0x286e5270) at NSThread.m:769
#17 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#18 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#19 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#20 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#21 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7d5ae290, 
    _cmd=0x286e5270) at NSThread.m:769
#22 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#23 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#24 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#25 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#26 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7d5ae310, 
    _cmd=0x286e5270) at NSThread.m:769
#27 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#28 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#29 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#30 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#31 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7cb4f990, 
    _cmd=0x286e5270) at NSThread.m:769
#32 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#33 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#34 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#35 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#36 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7d5ae190, 
    _cmd=0x286e5270) at NSThread.m:769
#37 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#38 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#39 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#40 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#41 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7cb4f610, 
    _cmd=0x286e5270) at NSThread.m:769
#42 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#43 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#44 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#45 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#46 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7925fb90, 
    _cmd=0x286e5270) at NSThread.m:769
#47 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#48 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#49 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#50 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#51 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7925f990, 
    _cmd=0x286e5270) at NSThread.m:769
#52 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#53 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#54 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#55 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#56 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7d5ae690, 
    _cmd=0x286e5270) at NSThread.m:769
#57 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#58 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#59 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#60 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#61 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7b282590, 
    _cmd=0x286e5270) at NSThread.m:769
#62 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#63 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#64 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#65 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#66 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7b282510, 
    _cmd=0x286e5270) at NSThread.m:769
#67 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#68 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#69 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#70 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#71 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7925fd10, 
    _cmd=0x286e5270) at NSThread.m:769
#72 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#73 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#74 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#75 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#76 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7cb4fd90, 
    _cmd=0x286e5270) at NSThread.m:769
#77 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#78 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#79 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#80 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#81 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7925f910, 
    _cmd=0x286e5270) at NSThread.m:769
#82 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#83 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#84 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#85 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#86 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7925f410, 
    _cmd=0x286e5270) at NSThread.m:769
#87 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#88 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#89 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#90 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#91 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7cb4f910, 
    _cmd=0x286e5270) at NSThread.m:769
#92 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#93 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#94 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#95 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#96 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7b282290, 
    _cmd=0x286e5270) at NSThread.m:769
#97 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (self=0x286e5080, 
    _cmd=0x286e5438) at NSThread.m:846
#98 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#99 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#100 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#101 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7925f010, 
    _cmd=0x286e5270) at NSThread.m:769
#102 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#103 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#104 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#105 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#106 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7925f710, 
    _cmd=0x286e5270) at NSThread.m:769
#107 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#108 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#109 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#110 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#111 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7b282d90, 
    _cmd=0x286e5270) at NSThread.m:769
#112 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#113 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#114 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#115 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#116 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7b282310, 
    _cmd=0x286e5270) at NSThread.m:769
#117 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#118 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#119 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#120 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#121 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7900d810, 
    _cmd=0x286e5270) at NSThread.m:769
#122 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#123 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#124 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#125 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#126 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7d5ae390, 
    _cmd=0x286e5270) at NSThread.m:769
#127 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#128 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#129 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#130 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#131 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7900d590, 
    _cmd=0x286e5270) at NSThread.m:769
#132 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#133 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#134 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#135 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#136 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7cb4f510, 
    _cmd=0x286e5270) at NSThread.m:769
#137 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#138 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#139 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#140 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#141 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7b282c90, 
    _cmd=0x286e5270) at NSThread.m:769
#142 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#143 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#144 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#145 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#146 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7ea0cf90, 
    _cmd=0x286e5270) at NSThread.m:769
#147 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#148 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#149 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#150 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#151 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7cb4fa90, 
    _cmd=0x286e5270) at NSThread.m:769
#152 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#153 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#154 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#155 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#156 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7ccd9f10, 
    _cmd=0x286e5270) at NSThread.m:769
#157 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#158 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#159 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#160 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#161 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7900df10, 
    _cmd=0x286e5270) at NSThread.m:769
#162 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#163 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#164 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#165 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#166 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7b282010, 
    _cmd=0x286e5270) at NSThread.m:769
#167 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846
#168 0x08650424 in GSRegisterCurrentThread () at NSThread.m:2192
#169 0x0864c3bd in GSCurrentThread () at NSThread.m:673
#170 0x0864b7d4 in GSPrivateThreadID () at NSThread.m:142
#171 0x0864c6e3 in -[NSThread(Activation) _makeThreadActive] (self=0x7ccd9d90, 
    _cmd=0x286e5270) at NSThread.m:769
#172 0x0864ca9d in +[NSThread _createThreadForCurrentPthread] (
    self=0x286e5080, _cmd=0x286e5438) at NSThread.m:846

<....>


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to