php使用imagek时segment fault

| 1 Comment | No TrackBacks


在ubuntu 10.04.2 LTS 64bit下使用apt安装的imagemagick和php/imagick, 在处理图片的时候会segment fault退出。
strace显示是处理完毕munmap出现的segment fault...
处理方式是显式设定OMP_NUM_THREADS=1, 是imagemagick使用的libgomp seg faulting。
所以想正常的用,要么编译的时候disable掉openmp, 要么显式export OMP_NUM_THREADS=1, 因为没有一个能在运行时关掉openmp的方法
悲催的是--disable-openmp选项由于经常link失败, 而imagemagick也没有针对这个问题提供2个版本的编译脚本



No TrackBacks

TrackBack URL:

1 Comment


Leave a comment

About this Entry

This page contains a single entry by suchasplus published on September 9, 2011 6:56 AM.

为什么php不支持原始类型检查 was the previous entry in this blog.

新网国际域名过期删除策略 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.


OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.2.7