Ошибка сегментирования
Модераторы: Warderer, Модераторы разделов
-
Cormorant
- Сообщения: 9
- ОС: Debian
Ошибка сегментирования
С некоторых пор при запуске например tilda, в консоли пишет такое сообщение.
Еще сканер настроил, пробую scanimage -L — тоже «Ошибка сегментирования».
Результат: нет любимого терминала под рукой и сканер не пашет (xsane не запускается, только с другой ошибкой).
Система Debian 5.03 lenny, gnome/openbox.
Пишу:
$ scanimage -L
Ошибка сегментирования
$ tilda
Ошибка сегментирования
$ tail /var/log/messages
…
Jan 12 09:08:02 MAINCOMP kernel: [ 3318.991559] scanimage[2694]: segfault at 5a18db4 ip bff9b094 sp b7f3dce0 error 4
Jan 12 09:08:12 MAINCOMP kernel: [ 3329.122793] tilda[2696]: segfault at 0 ip 0805012b sp bf952f20 error 4 in tilda[8048000+13000]
Переустановил пакет tilda — всё тоже самое.
В непонятках.
La propriete c’est le vol.
-
SoaT
- Сообщения: 52
- ОС: Debian sid
Re: Ошибка сегментирования
Сообщение
SoaT »
Пардон, присоединюсь. У меня она вываливается при apt-get update очень часто. Приходится по несколько раз прогонять
noob.Debian.sid.ждиответногогудка
-
Uncle_Theodore
- Сообщения: 3339
- ОС: Slackware 12.2, ArchLinux 64
Re: Ошибка сегментирования
Сообщение
Uncle_Theodore »
1) Проверьте память на предмет битости;
2) Попробуйте запускать вылетающую программу через strace или gdb;
3) Посмотрите в свежих багрепортах и, если не найдете, пишите свой багрепорт.
Сегфолт — это проблема в аппликации, а не в настройках. Ничего не поделать.
-
44616e
- Сообщения: 205
- ОС: Debian testing
Re: Ошибка сегментирования
Сообщение
44616e »
Если мне не изменяет память Intel начинает тротлить уже при 69. 77 — это много. Из процессоров, которые были у меня самым горячим был P2.4 Prescott — 60.
-
Bluetooth
- Сообщения: 4395
- Статус: Блюзовый
- ОС: Debian Squeeze amd64
Re: Ошибка сегментирования
Сообщение
Bluetooth »
SoaT писал(а): ↑
12.01.2010 11:01
Скорее по-оффтопу. 77 °C камня — норма?
нет, не норма
Я, правда, не знаю на 100%, но lm-sensors пишут, что у моего квада хай температура — 74, а критическая — 100. Честно говоря, я не уверен, что это не взято с потолка, однако, по моему опыту, такая температура не есть здоровая. У вас ноутбук или десктоп?(вот у меня он щас на 41, при нагрузке больше 50 не нагревается)
-
SoaT
- Сообщения: 52
- ОС: Debian sid
Re: Ошибка сегментирования
Сообщение
SoaT »
У меня десктоп. Разогнано шиной, 77-78 держит, выше 80 не поднимается даже при больших нагрузках. В биосе вроде прописано что это еще нормально
noob.Debian.sid.ждиответногогудка
-
Bluetooth
- Сообщения: 4395
- Статус: Блюзовый
- ОС: Debian Squeeze amd64
Re: Ошибка сегментирования
Сообщение
Bluetooth »
SoaT писал(а): ↑
12.01.2010 20:35
У меня десктоп. Разогнано шиной, 77-78 держит, выше 80 не поднимается даже при больших нагрузках. В биосе вроде прописано что это еще нормально
Я бы снизил разгон, или добавил бы охлаждения, чтобы довести до того, чтобы температура не поднималась выше 70. Потом поюзал бы систему. Скорее всего, все эти сегфолты пропадут.
-
SoaT
- Сообщения: 52
- ОС: Debian sid
Re: Ошибка сегментирования
Сообщение
SoaT »
Дело в том что траблы с сигментированием пришли внезапно. Имели место, а сейчас опять пропали. Где-то какой-то пакет обновился наверное и решил вопрос, просто не заметил… надеюсь что так было дело))
noob.Debian.sid.ждиответногогудка
-
Sb0y
- Сообщения: 17
- ОС: Gentoo Linux
Re: Ошибка сегментирования
Сообщение
Sb0y »
Такая же беда. Tilda валится вот так:
Код: Выделить всё
sb0y@box ~ $ tilda -C
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(tilda:19989): Gtk-CRITICAL **: gtk_file_chooser_select_filename: assertion `filename != NULL' failed
Ошибка сегментирования
Наверно какая-то из gtk-библеотек обновилась. Знать бы ещё какая.
Версия программы: ================= hplip-3.22.6-alt1 sane-server-1.0.32-alt4 Шаги, приводящие к ошибке: ========================== 1) Настроить sane-server: 1.1) Установить sane-server sane xinetd 1.2) Раскомментировать строки в /etc/services, начинающиеся с sane-port. 1.3) Создать файл /etc/xinetd.d/sane со следующим содержимым: service sane { disable = no port = 6566 socket_type = stream wait = no user = _saned group = scanner server = /usr/sbin/saned only_from = <ВВЕСТИ IP АДРЕС КЛИЕНТА> } 1.4) Запустить сервис xinetd 1.5) Подключить сканер к серверу 2) Выполнить команду scanimage -L на сервере и на клиенте, сравнить выводы 3) На сервер установить hplip и установить hp plugin с помощью команды hp-plugin 4) Снова сравнить выводы команды scanimage -L на клиенте и на сервере. Результат: ========== До установки плагина hp сканеры отображаются на клиенте, и на них можно проводить сканирование. После установки плагина: на клиенте при вызове команды scanimage -L возникает ошибка сегментирования. Такие программы как gimagereader-qt5 и xsane также не запускаются из-за этой ошибки. Ожидаемый результат: ==================== Подключенные к серверу сканеры отображаются в выводе scanimage -L на клиенте. Сканирование на клиенте на сканерах с удаленного сервера проходит успешно. Дополнительно: ============== В P10 на таких же версиях указанных программ и в P9 на hplip-3.21.12-alt1 и sane-server-1.0.32-alt2 ошибка сегментирования не возникает: сканеры, подключенные к серверу, больше не определяются и отсутствуют в выводе команды scanimage -L, запущенной на клиенте. |
I had problems with segmentation fault in Xsane with my HP4200 USB scanner after upgrading to Ubuntu 20.04 from Ubuntu 18.04.
I found many google suggestions to no avail. I configured and compiled the back end for the HP4200 and it was still crashing.
I enabled the debug messages in the source code and found that the debug messages were telling me that it was crashing always in the same place
a subroutine called do_fine_calibration
in the hp4200.c
file. In that subroutine memset
is called and it appeared that that was where the crash occurred.
If memset
is called with a null pointer it tries to access non existent memory. I tried to find if Ubuntu 20.04 did something different in memory management but found nothing.
Anyway it seemed that this code was setting up a large array called registro for which a pointer didn’t seem to exist!
I’m not a memory management guru but after some study i decided to change the registro declaration to set it to 0 when declared
(about line 1377 — int registro[30][5460 * 3] = {0};
with my change)
and then eliminate the code section (line 1496 — about 1505) that memsets the registro array to 0.
After a re ./configuration
, make sudo make install
and firing up scanimage for a scan, lo and behold the motor took off and began to scan again!
View previous topic :: View next topic | |||||||||
Author | Message | ||||||||
---|---|---|---|---|---|---|---|---|---|
Kenji Miyamoto Veteran Joined: 28 May 2005 |
|
||||||||
Back to top |
|
||||||||
Hu Moderator Joined: 06 Mar 2007 |
|
||||||||
Back to top |
|
||||||||
Kenji Miyamoto Veteran Joined: 28 May 2005 |
|
||||||||
Back to top |
|
||||||||
Hu Moderator Joined: 06 Mar 2007 |
|
||||||||
Back to top |
|
||||||||
Kenji Miyamoto Veteran Joined: 28 May 2005 |
|
||||||||
Back to top |
|
||||||||
Kenji Miyamoto Veteran Joined: 28 May 2005 |
|
||||||||
Back to top |
|
||||||||
Kenji Miyamoto Veteran Joined: 28 May 2005 |
|
||||||||
Back to top |
|
||||||||
Hu Moderator Joined: 06 Mar 2007 |
|
||||||||
Back to top |
|
||||||||
|
You cannot post new topics in this forum |
I had problems with segmentation fault in Xsane with my HP4200 USB scanner after upgrading to Ubuntu 20.04 from Ubuntu 18.04.
I found many google suggestions to no avail. I configured and compiled the back end for the HP4200 and it was still crashing.
I enabled the debug messages in the source code and found that the debug messages were telling me that it was crashing always in the same place
a subroutine called do_fine_calibration
in the hp4200.c
file. In that subroutine memset
is called and it appeared that that was where the crash occurred.
If memset
is called with a null pointer it tries to access non existent memory. I tried to find if Ubuntu 20.04 did something different in memory management but found nothing.
Anyway it seemed that this code was setting up a large array called registro for which a pointer didn’t seem to exist!
I’m not a memory management guru but after some study i decided to change the registro declaration to set it to 0 when declared
(about line 1377 – int registro[30][5460 * 3] = {0};
with my change)
and then eliminate the code section (line 1496 – about 1505) that memsets the registro array to 0.
After a re ./configuration
, make sudo make install
and firing up scanimage for a scan, lo and behold the motor took off and began to scan again!