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