# gzclient 启动时报 Segmentation fault

> 原文链接：https://robotics.hellobike.com/pitfalls/2017-04-05-robotics-se-12017
> 频道：pitfalls | 更新日期：2017-04-05 | 标签：auto, stackexchange, ros, gazebo
> 核心摘要：Arch Linux ROS Indigo 下 gzclient 段错误，改用 Qt5 依赖并安装 qwt-qt5 可解决。

# gzclient 启动时报 Segmentation fault

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[gzclient: segmentation fault](https://robotics.stackexchange.com/questions/12017/gzclient-segmentation-fault)（Robotics Stack Exchange #12017）

**状态**：已解决

## 问题

执行 `gzclient` 直接报 `Segmentation fault (core dumped)`；运行 `roslaunch turtlebot_gazebo turtlebot_world.launch` 时 `gazebo_gui` 进程退出，退出码为 `139`。

## 环境

Gazebo / Ignition 仿真环境

## 解决办法

1. 更新 Gazebo 8 的依赖，使其匹配 Qt5。
2. 安装 `qwt-qt5`，不要使用 `qwt`。
3. 重新按修正后的 `PKGBUILD` 构建 Gazebo，避免可执行文件同时链接 Qt4 和 Qt5。

原问题作者：I.Omar；采纳答案作者：I.Omar。原内容依 CC BY-SA 4.0 授权，本页摘要同样依 CC BY-SA 4.0 授权。
:::

## 原始参考来源 (Sources)

- [Robotics Stack Exchange #12017：gzclient: segmentation fault](https://robotics.stackexchange.com/questions/12017/gzclient-segmentation-fault)