--Apple-Mail-7--269038399
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset-ASCII;
	formatðïwed


On May 24, 2004, at 2:23 AM, ts wrote:

>>>>>> "M" Mark Hubbart <discord / mac.com> writes:
>
> M> #defining _P1003_1B_VISIBLE at the top of mmap.c allows it to 
> compile,
> M> but running 'make test' generates a bus error on the 13th test.
>
>  it's best to do
>
> svg% diff -u mmap.c~ mmap.c
> --- mmap.c~     2004-03-06 18:30:46.000000000 +0100
> +++ mmap.c      2004-05-24 11:20:04.000000000 +0200
> @@ -1722,9 +1722,10 @@
>  #ifdef MAP_NOSYNC
>      rb_define_const(mm_cMap, "MAP_NOSYNC", INT2FIX(MAP_NOSYNC));
>  #endif
> +#ifdef MCL_CURRENT
>      rb_define_const(mm_cMap, "MCL_CURRENT", INT2FIX(MCL_CURRENT));
>      rb_define_const(mm_cMap, "MCL_FUTURE", INT2FIX(MCL_FUTURE));
> -
> +#endif
>      rb_include_module(mm_cMap, rb_mComparable);
>      rb_include_module(mm_cMap, rb_mEnumerable);
>
> svg%

I tried this, and while it still crashes on the tests, it makes it 
plenty stable for me to play with it. thanks much :)

> M> Any help would be greatly appreciated.
>
>  can you run it with gdb and give me a backtrace ?

I attached it at the end of the message. I hope I did it right :)

>
>
> Guy Decoux


--Apple-Mail-7--269038399
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-mac-typeT455854;
	x-unix-mode44;
	x-mac-creatorH647261;
	namet"
Content-Disposition: attachment;
	filename
(gdb) run -d mmapt.rb
Starting program: /usr/local/bin/ruby -d mmapt.rb
mmapt.rb:2: warning: `*' interpreted as argument prefix
Reading symbols for shared libraries . done
Loaded suite mmapt
Started
.............
Program received signal EXC_BAD_ACCESS, Could not access memory.
0xffff87b8 in __memcpy ()
(gdb) bt
#0  0xffff87b8 in __memcpy ()
#1  0x0004dc6c in mm_cat (str87828, ptr62edf0 "azertyuiopqsdfghjklm", len ) at mmap.c:1103
#2  0x0004dcd0 in mm_append (str187828, str288668) at mmap.c:1115
#3  0x0004dd24 in mm_concat (str1272, str2d83440) at mmap.c:1130
#4  0x00202370 in rb_call0 (klass5528, recv87828, id34, oid34, argc argvbffda490, body190a8, nosuper at eval.c:5479
#5  0x00202ca4 in rb_call (klass5528, recv34, mid221069616, argc argvbffda490, scope'08276) at eval.c:5696
#6  0x001fd1d0 in rb_eval (self222536192, n62edf0) at ruby.h:634
#7  0x001fd288 in rb_eval (self n62edf0) at eval.c:3233
#8  0x002027fc in rb_call0 (klass27219200, recv!47483648, id82247168, oid221070996, argc072431104, argv0, bodybffdd3e0, nosuper at eval.c:5603
#9  0x00202ca4 in rb_call (klassR0736, recv221070996, mid221070960, argc87828, argv1, scope at eval.c:5696
#10 0x00202ed0 in rb_f_send (argc argvbffdd9b4, recvI0416) at ruby.h:634
#11 0x00202370 in rb_call0 (klass#2608, recvI0416, id905, oidI0416, argc argvbffdd9b0, body36d60, nosuper at eval.c:5479
#12 0x00202ca4 in rb_call (klass#2608, recvI0416, mid221084596, argcI1896, argv2a2dc8, scopeR0736) at eval.c:5696
#13 0x001fd434 in rb_eval (self222536192, n62edf0) at ruby.h:634
#14 0x001fc850 in rb_eval (selfI0416, n62edf0) at eval.c:3054
#15 0x001fc99c in rb_eval (selfI0416, n62edf0) at eval.c:3079
#16 0x002027fc in rb_call0 (klass27219200, recv!47483648, id82247168, oid221084596, argc072431104, argv0, bodybffe1cf0, nosuper at eval.c:5603
#17 0x00202ca4 in rb_call (klassh8856, recv221084596, mid221084560, argc argvbffdd9b0, scope at eval.c:5696
#18 0x001fd1d0 in rb_eval (self222536192, n62edf0) at ruby.h:634
#19 0x00208434 in block_pass (selfI1636, nodea9430) at eval.c:8357
#20 0x001fc194 in rb_eval (selfI1636, n62edf0) at eval.c:2929
#21 0x00200724 in rb_yield_0 (valI0416, selfI1636, klass flags073858896, avalue at eval.c:4687
#22 0x001e6464 in rb_ary_each (ary221113792) at array.c:1155
#23 0x00202370 in rb_call0 (klass 4848, recvI0996, id849, oid argc argv0, body31c0c, nosuper at eval.c:5479
#24 0x00202ca4 in rb_call (klass 4848, recv mid221108400, argc argv0, scope073853504) at eval.c:5696
#25 0x001fd1d0 in rb_eval (selfI1636, n62edf0) at ruby.h:634
#26 0x001fc350 in rb_eval (selfI1636, n62edf0) at eval.c:2943
#27 0x002027fc in rb_call0 (klass27219200, recv!47483648, id82247168, oid argc072431104, argv0, bodybffe8760, nosuper at eval.c:5603
#28 0x00202ca4 in rb_call (klassi0036, recv mid221117104, argcI0996, argv0, scope'08280) at eval.c:5696
#29 0x001fd1d0 in rb_eval (self222536192, n62edf0) at ruby.h:634
#30 0x00208434 in block_pass (selfI3596, nodea9430) at eval.c:8357
#31 0x001fc194 in rb_eval (selfI3596, n62edf0) at eval.c:2929
#32 0x00200724 in rb_yield_0 (valI1636, selfI3596, klass flags073831648, avalue at eval.c:4687
#33 0x001e6464 in rb_ary_each (ary221141040) at array.c:1155
#34 0x00202370 in rb_call0 (klass 4848, recvI3556, id849, oid argc argv0, body31c0c, nosuper at eval.c:5479
#35 0x00202ca4 in rb_call (klass 4848, recv mid221135648, argc argv0, scope073826256) at eval.c:5696
#36 0x001fd1d0 in rb_eval (selfI3596, n62edf0) at ruby.h:634
#37 0x001fc350 in rb_eval (selfI3596, n62edf0) at eval.c:2943
#38 0x002027fc in rb_call0 (klass27219200, recv!47483648, id82247168, oid argc072431104, argv0, bodybffef1d0, nosuper at eval.c:5603
#39 0x00202ca4 in rb_call (klassi0036, recv mid221144352, argcI3556, argv0, scope'08280) at eval.c:5696
#40 0x001fd1d0 in rb_eval (self222536192, n62edf0) at ruby.h:634
#41 0x001fc350 in rb_eval (self259744661, n62edf0) at eval.c:2943
#42 0x002027fc in rb_call0 (klass259744661, recv"73678227, id259744661, oid221156372, argc27219200, argv80000000, body4081c800, nosuper at eval.c:5603
#43 0x00202ca4 in rb_call (klassE5496, recv221156372, mid221156336, argcI3596, argv1, scope at eval.c:5696
#44 0x001fd1d0 in rb_eval (selfE4856, n62edf0) at ruby.h:634
#45 0x002027fc in rb_call0 (klassE4696, recvE4856, id777, oidH5036, argc argv0, body7660c, nosuper at eval.c:5603
#46 0x00202ca4 in rb_call (klassE4696, recvH5036, mid221168400, argcE3956, argv0, scope at eval.c:5696
#47 0x001fd4f8 in rb_eval (selfE4856, n62edf0) at ruby.h:634
#48 0x002027fc in rb_call0 (klassE4696, recvE4856, idP41, oidH7936, argc argv0, body7719c, nosuper at eval.c:5603
#49 0x00202ca4 in rb_call (klassE4696, recvH7936, mid221175008, argc argv0, scope at eval.c:5696
#50 0x001fd1d0 in rb_eval (selfE4696, n62edf0) at ruby.h:634
#51 0x002027fc in rb_call0 (klass27219200, recv!47483648, id82247168, oidf4196, argc072431104, argv0, bodybfff6eb0, nosuper at eval.c:5603
#52 0x00202ca4 in rb_call (klassf2376, recvf4196, mid221181616, argcE4856, argv0, scope at eval.c:5696
#53 0x001fd1d0 in rb_eval (self222536192, n62edf0) at ruby.h:634
#54 0x001fcfcc in rb_eval (selfQ9756, n62edf0) at eval.c:3217
#55 0x002027fc in rb_call0 (klass222536192, recv id221200240, oid221188344, argc!08580, argv87859393, bodyc24bc195, nosuper at eval.c:5603
#56 0x00202ca4 in rb_call (klassR2536, recv221188344, mid221188304, argcE4696, argv2, scope at eval.c:5696
#57 0x001fd1d0 in rb_eval (selfR2536, n62edf0) at ruby.h:634
#58 0x002027fc in rb_call0 (klass27219200, recv!47483648, id82247168, oidh6956, argc072431104, argv0, bodybfffb770, nosuper at eval.c:5603
#59 0x00202ca4 in rb_call (klassR2516, recvh6956, mid221200240, argcQ9756, argv0, scope'08280) at eval.c:5696
#60 0x001fd1d0 in rb_eval (self222536192, n62edf0) at ruby.h:634
#61 0x001fd288 in rb_eval (self222536192, n62edf0) at eval.c:3233
#62 0x00200724 in rb_yield_0 (valR0636, self"7808, klass flags073760368, avalue  at eval.c:4687
#63 0x00207bf4 in proc_invoke (procR1476, argsR0636, self` klass221206928) at ruby.h:634
#64 0x002061d4 in call_end_proc (dataR2536) at eval.c:7363
#65 0x00206524 in rb_exec_end_proc () at eval.c:7444
#66 0x001f8a9c in ruby_finalize_0 () at eval.c:1390
#67 0x001f8b78 in ruby_cleanup (ex at eval.c:1418
#68 0x001f8dc4 in ruby_stop (ex272) at eval.c:1465
#69 0x001f8e28 in ruby_run () at eval.c:1477
#70 0x00001d84 in main (argc argv0, envp617a6572) at main.c:50
#71 0x00001a84 in _start (argc0 argvbffffd2c, envpbffffd3c) at /SourceCache/Csu/Csu-46/crt.c:267
#72 0x000018f8 in start ()

--Apple-Mail-7--269038399
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset-ASCII;
	formatðïwed



--Apple-Mail-7--269038399--