Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Anyone feel like fixing pkgsrc/emulators/tme ?
> > but starting tmesh via gdb works??
>
> i've had some crashes with pkgsrc/graphics/blender lately that
> go away in gdb. (it's kinda annoying, the -g enabled blender
> takes a really long time for gdb to load...)
The attached blind patch seems to work around on NetBSD/i386 9.2.
(even I'm not sure what PROT_MPROTECT() expects..)
---
$NetBSD$
--- libtme/host/recode-mmap.c.orig 2008-07-01 02:00:53.000000000 +0000
+++ libtme/host/recode-mmap.c
@@ -82,7 +82,12 @@ tme_recode_host_thunks_alloc(struct tme_
size_run,
(PROT_READ
| PROT_WRITE
- | PROT_EXEC),
+#ifdef PROT_MPROTECT
+ | PROT_MPROTECT(PROT_EXEC)
+#else
+ | PROT_EXEC
+#endif /* PROT_MPROTECT */
+ ),
(MAP_SHARED
#ifdef MAP_ANON
| MAP_ANON
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index