Mantis - obex-data-server
|
|||||
Расширенный вид | |||||
|
|||||
Номер: | Категория: | Серьезность: | Воспроизводимость: | Создан: | Изменен: |
493 | FTP | авария | всегда | 2010-10-29 05:57 | 2011-02-14 00:22 |
|
|||||
Инициатор: | nami | Платформа: | |||
Ответственный: | skirsdeda | Операционная система: | |||
Приоритет: | обычный | Версия ОС: | |||
Состояние: | отработан | Версия продукта: | |||
Сборка продукта: | Решение: | решен | |||
Трудоемкость: | нет | ||||
Примерный срок: | нет | Решен в версии: | 0.4.6 | ||
|
|||||
Суть: | 0000493: ftp client get server file ,cause server segmentation fault | ||||
Подробности: |
hi,I found when ftp client get server file, the server will occur segmentation fault.The server ods log is below: ##DEBUG: /org/openobex/serversession0 OBEX event: STREAMEMPTY(0x8), CONNECT(0x0), (null)(0x0) obex_writestream writestream from Buffer buf_size: 357, actual: 357 ##DEBUG: /org/openobex/serversession0 OBEX event: STREAMEMPTY(0x8), CONNECT(0x0), (null)(0x0) obex_writestream writestream from Buffer buf_size: 357, actual: 0 ##DEBUG: /org/openobex/serversession0 OBEX event: REQDONE(0x3), GET(0x3), (null)(0x0) io callback ##DEBUG: /org/openobex/serversession0 OBEX event: REQHINT(0x1), GET(0x3), (null)(0x0) ##DEBUG: /org/openobex/serversession0 OBEX event: REQ(0x2), GET(0x3), (null)(0x0) CMD_GET requested stream_fd=-1 Segmentation fault nami@nami-laptop:~$ Do you have met this error? I find this error is caused by client does not contain Type header in its first get request package,but the server side calls strcmp (obex_context->type, LST_TYPE) in ods_obex_srv_get function. Since obex_context->type is null ,so it causes segmentation fault. A patch to fix this problem is attached. I checked ,it resolved this problem. |
||||
Шаги по воспроизведению: | |||||
Дополнительные сведения: | |||||
Связи | |||||
Вложенные файлы: |
![]() |
||||
|
|||||
история | |||||
Дата изменения | Пользователь | Поле | Изменение | ||
2010-10-29 05:57 | nami | Новый вопрос | |||
2010-10-29 05:57 | nami | Файл добавлен: get.patch | |||
2010-10-29 12:10 | skirsdeda | Состояние | новый => назначен | ||
2010-10-29 12:10 | skirsdeda | Ответственный | => skirsdeda | ||
2011-02-14 00:22 | skirsdeda | Состояние | назначен => отработан | ||
2011-02-14 00:22 | skirsdeda | Решен в версии | => 0.4.6 | ||
2011-02-14 00:22 | skirsdeda | Решение | открыт => решен |
К этому вопросу нет комменариев. |