Re: [Chicken-hackers] [PATCH] mutex-lock! sometimes not srfi-18 compliant

2015-11-24 Thread Jim Ursetto
Use git commit --amend to fix if you haven't committed the second one yet.

Use git rebase -i to squash existing commits together.

> On Nov 23, 2015, at 13:45, Jörg F. Wittenberger 
>  wrote:
> 
> Sorry,
> 
> this patch needs a patch.
> 
> Looks like I shot myself into the foot (using git) again the very same
> way.  (Looks like "git add" caches the changes, thus must be given not
> once per file but once I'm done changing things.)
> 
> Now I'm a bit lost.  How would I format a proper patch for git with both
> these changes rolled into one?
> 
> Anyway, attached "part two" of the change.  This adds more tests and
> fixed mutex-unlock! the way it should have been done before.
> 
> Best
> 
> /Jörg
> 
>> Am 23.11.2015 um 17:29 schrieb Jörg F. Wittenberger:
>> Hi all,
>> 
>>> Am 07.11.2015 um 21:55 schrieb "Jörg F. Wittenberger":
>>> Hi,
>>> 
>>> try the test case:
>> 
>> looks like I messed up with this one.  (I sent out half the patch.)
> 
> <0002-mutexlock-p2.patch>
> ___
> Chicken-hackers mailing list
> Chicken-hackers@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/chicken-hackers

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


[Chicken-hackers] How to interpret chicken post mortem?

2015-11-24 Thread Jörg F . Wittenberger
Hi all,

just managed to switch to the master branch, eventually.  (Congrats to
myself, sight ;-)


Now there is a segfault.  Looks almost random.   The program runs for a
fairly long time until crash.  (Megabytes of chicken -:r backtrace and
no hint either). Some gdb backtraces from a debug build below.

Anybody having an idea how to narrow this down?

Thanks so much

/Jörg


Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00a004b4 in f_10074 (c=4, av=0xbe2b503c) at library.c:26635
26635   if(!C_demand(c*C_SIZEOF_PAIR+5)){
[Current thread is 1 (Thread 0x400e9210 (LWP 19666))]
(gdb) bt
#0  0x00a004b4 in f_10074 (c=4, av=0xbe2b503c) at library.c:26635
#1  0x00c54858 in f_20122 (t0=-1104456948, t1=-1104456232, t2=3)
at irregex.c:32507
#2  0x00c550f8 in f_20143 (c=2, av=0xbe2b510c) at irregex.c:32659
#3  0x00d632b8 in allocate_vector_2 (c=0, av=0x104c3a4) at runtime.c:7268
#4  0x00d62f50 in C_allocate_vector (c=6, av=0xbe2b51ac) at runtime.c:7217
#5  0x00a02fb4 in f_10081 (c=2, av=0xbe2b5238) at library.c:27315
#6  0x00a0062c in f_10074 (c=4, av=0xbe2b5294) at library.c:26659
#7  0x00c54858 in f_20122 (t0=-1104456948, t1=-1104456232, t2=1)
at irregex.c:32507
#8  0x00c5434c in f_20117 (c=2, av=0xbe2b537c) at irregex.c:32409
#9  0x00d632b8 in allocate_vector_2 (c=0, av=0x104c3a4) at runtime.c:7268
#10 0x00d62f50 in C_allocate_vector (c=6, av=0xbe2b5434) at runtime.c:7217

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00c8f16c in C_i_pairp (
x=)
at ./chicken.h:2236
2236{
[Current thread is 1 (Thread 0x4004a210 (LWP 19876))]
(gdb) bt
#0  0x00c8f16c in C_i_pairp (
x=)
at ./chicken.h:2236
#1  0x00c8d104 in f_1713 (t0=-1105088272, t1=-1105088364, t2=1126061980)
at scheduler.c:3109
#2  0x00c88dcc in f_1810 (t0=-1105088208, t1=-1105088248, t2=1125996968)
at scheduler.c:1696
#3  0x00c8cc88 in f_1702 (t0=-1105085432, t1=-1105085252, t2=-1096772972)
at scheduler.c:2955
#4  0x00c88474 in f_1798 (c=2, av=0xbe21b200) at scheduler.c:1523
#5  0x00c88e00 in f_1810 (t0=-1105087552, t1=-1105087592, t2=14) at
scheduler.c:1703
#6  0x00c890fc in f_1820 (c=2, av=0xbe21b2a0) at scheduler.c:1765
#7  0x00c8d1cc in f_1713 (t0=-1105087616, t1=-1105087708, t2=1125996908)
at scheduler.c:3119
#8  0x00c88dcc in f_1810 (t0=-1105087552, t1=-1105087592, t2=1125935220)
at scheduler.c:1696
#9  0x00c8cc88 in f_1702 (t0=-1105085432, t1=-1105085252, t2=-1096773036)
at scheduler.c:2955
#10 0x00c88474 in f_1798 (c=2, av=0xbe21b490) at scheduler.c:1523

Program terminated with signal SIGSEGV, Segmentation fault.
#0  f_1713 (t0=-1106919288, t1=-1106919380, t2=1137556300) at
scheduler.c:3105
3105C_word ab[5],*a=ab;
[Current thread is 1 (Thread 0x400c1210 (LWP 19953))]
(gdb) bt
#0  f_1713 (t0=-1106919288, t1=-1106919380, t2=1137556300) at
scheduler.c:3105
#1  0x00c88dcc in f_1810 (t0=-1106919224, t1=-1106919264, t2=1137487936)
at scheduler.c:1696
#2  0x00c8cc88 in f_1702 (t0=-1106915792, t1=-1106915612, t2=-1098645684)
at scheduler.c:2955
#3  0x00c88474 in f_1798 (c=2, av=0xbe05c198) at scheduler.c:1523
#4  0x00c88e00 in f_1810 (t0=-1106918568, t1=-1106918608, t2=14) at
scheduler.c:1703
#5  0x00c890fc in f_1820 (c=2, av=0xbe05c238) at scheduler.c:1765
#6  0x00c8d1cc in f_1713 (t0=-1106918632, t1=-1106918724, t2=1137487876)
at scheduler.c:3119
#7  0x00c88dcc in f_1810 (t0=-1106918568, t1=-1106918608, t2=1137413272)
at scheduler.c:1696
#8  0x00c8cc88 in f_1702 (t0=-1106915792, t1=-1106915612, t2=-1098645748)
at scheduler.c:2955
#9  0x00c88474 in f_1798 (c=2, av=0xbe05c428) at scheduler.c:1523
#10 0x00c88e00 in f_1810 (t0=-1106917912, t1=-1106917952, t2=14) at
scheduler.c:1703
#11 0x00c890fc in f_1820 (c=2, av=0xbe05c4c8) at scheduler.c:1765
#12 0x00c8d1cc in f_1713 (t0=-1106917976, t1=-1106918068, t2=1137413212)
at scheduler.c:3119
#13 0x00c88dcc in f_1810 (t0=-1106917912, t1=-1106917952, t2=1137342500)
at scheduler.c:1696
#14 0x00c8cc88 in f_1702 (t0=-1106915792, t1=-1106915612, t2=-1098645812)
at scheduler.c:2955

#3713 0x0028d7cc in f_12005 (c=3, av=) at cache.c:1956

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers