Hi,<br><br>I am trying to build a distribution for a Racket project.<br>This now works fine on Windows (even the distribution on a different machine), but I'm having troubles on Unix (Ubuntu 10.04).<br>
The created executable (via `create-embedded-executable') works fine, but the problem occurs when I launch the executable of the created distribution (via `assemble-distribution'). (see log below)<br><br>It looks like there is a problem while loading an image.<br>
All images (and some more, just in case) are referred to with `define-runtime-path' et al. <br><br>I use Racket 5.0.0.7--2010-07-06(c4cb424/a) [3m], but there was the same
problem with 5.0.0.1.<br>
Does the problem seem to come from how I use things, or does this look like a Racket bug?<br><br><br>Thanks,<br>Laurent<br><br>Log:<br><br>laurent@ubuntu:/my-path/bin$ ./towers <br>*** stack smashing detected ***: /my-path/bin/./towers terminated<br>
======= Backtrace: =========<br>/lib32/libc.so.6(__fortify_fail+0x50)[0xf719c4a0]<br>/lib32/libc.so.6(+0xe444a)[0xf719c44a]<br>/my-path/bin/./towers[0x80b683b]<br>/my-path/bin/./towers(_ZN7wxImage4LoadEPc+0x52)[0x80b6892]<br>
/my-path/bin/./towers(_Z16wxLoadIntoBitmapPcP8wxBitmapPP11wxColourMapi+0xc9)[0x80b74a9]<br>/my-path/bin/./towers(_ZN8wxBitmap8LoadFileEPclP8wxColour+0x456)[0x80a0846]<br>/my-path/bin/./towers(_ZN8wxBitmap15gcInit_wxBitmapEPclP8wxColour+0x7f)[0x80a08ef]<br>
/my-path/bin/./towers[0x8106795]<br>/my-path/bin/./towers(scheme_do_eval+0x10f2)[0x81a0fb2]<br>/my-path/bin/./towers[0x80d0e5e]<br>[0xf773f59e]<br>[0xf4ab13b0]<br>[0xf124f6a0]<br>[0xf54bad40]<br>[0xf54ba6e0]<br>/my-path/bin/./towers(scheme_do_eval+0x1596)[0x81a1456]<br>
/my-path/bin/./towers(scheme_do_eval+0xb51)[0x81a0a11]<br>/my-path/bin/./towers[0x83005f7]<br>/my-path/bin/./towers[0x8300eac]<br>/my-path/bin/./towers(scheme_do_eval+0xcdc)[0x81a0b9c]<br>/my-path/bin/./towers[0x822f479]<br>
/my-path/bin/./towers(scheme_do_eval+0x14b2)[0x81a1372]<br>/my-path/bin/./towers(scheme_finish_apply_for_prompt+0x200)[0x81c4d90]<br>/my-path/bin/./towers(scheme_apply_for_prompt+0x50)[0x81c4ef0]<br>/my-path/bin/./towers[0x81d2b86]<br>
/my-path/bin/./towers(scheme_do_eval+0x10f2)[0x81a0fb2]<br>/my-path/bin/./towers[0x81cec70]<br>/my-path/bin/./towers(scheme_module_run_finish+0x22d)[0x822f6ad]<br>[0xf773e2f5]<br>/my-path/bin/./towers(scheme_module_run_start+0x4e)[0x81e110e]<br>
/my-path/bin/./towers[0x822b381]<br>/my-path/bin/./towers[0x822b44d]<br>/my-path/bin/./towers[0x823b58a]<br>/my-path/bin/./towers(scheme_module_start_finish+0x29d)[0x8245aed]<br>[0xf773e33f]<br>/my-path/bin/./towers(scheme_module_start_start+0x41)[0x81e1011]<br>
/my-path/bin/./towers[0x823b4b7]<br>/my-path/bin/./towers[0x823bdc9]<br>/my-path/bin/./towers[0x823d8bc]<br>/my-path/bin/./towers(scheme_do_eval+0x10f2)[0x81a0fb2]<br>/my-path/bin/./towers[0x81c1241]<br>/my-path/bin/./towers(scheme_force_value_same_mark+0x42)[0x81c1392]<br>
[0xf54bbc81]<br>/my-path/bin/./towers(scheme_do_eval+0x1596)[0x81a1456]<br>/my-path/bin/./towers(_scheme_apply_multi_from_native+0x48)[0x81a2e18]<br>[0xf773f574]<br>/my-path/bin/./towers(scheme_do_eval+0x1596)[0x81a1456]<br>
/my-path/bin/./towers[0x81c0d1c]<br>/my-path/bin/./towers(scheme_top_level_do_worker+0x317)[0x81caf27]<br>/my-path/bin/./towers(scheme_top_level_do+0x28)[0x81cb938]<br>/my-path/bin/./towers[0x809a6f2]<br>/my-path/bin/./towers(_ZN7MrEdApp8RealInitEv+0x6e)[0x80c8a3e]<br>
/my-path/bin/./towers[0x80cb67e]<br>/my-path/bin/./towers(scheme_do_eval+0x14b2)[0x81a1372]<br>/my-path/bin/./towers[0x81c0d1c]<br>/my-path/bin/./towers(scheme_top_level_do_worker+0x4a3)[0x81cb0b3]<br>/my-path/bin/./towers(scheme_apply_thread_thunk+0x5d)[0x81cb90d]<br>
/my-path/bin/./towers[0x830bb85]<br>/my-path/bin/./towers[0x8315247]<br>/my-path/bin/./towers(scheme_thread_w_details+0x8c)[0x83153ac]<br>/my-path/bin/./towers(_Z10wxDoEventsv+0x9c)[0x80cc11c]<br>/my-path/bin/./towers(_ZN5wxApp8MainLoopEv+0x3d)[0x809c8ad]<br>
/my-path/bin/./towers(_Z12wxDoMainLoopv+0x13)[0x80c8423]<br>======= Memory map: ========<br>08048000-0804a000 r-xp 00000000 08:06 67349 /my-path/lib/plt/gracket3m-5.0.0.7<br>0804a000-0804b000 r--p 00002000 08:06 67349 /my-path/lib/plt/gracket3m-5.0.0.7<br>
0804b000-08382000 r-xp 00003000 08:06 67349 /my-path/lib/plt/gracket3m-5.0.0.7Abandon<br><br>