[devel] Помогите разобраться с сегфолтом

Антон Мидюков midyukov-anton на ya.ru
Сб Мар 3 13:03:36 MSK 2018


Доброго дня всем!

Помогите разобраться с причиной сегфолта.

screenshot-tool падает при запуске только на p8 с архитектурой i586. 
Приложение написано на vala. gdb backtrace выдаёт:

(gdb) backtrace
#0  0xb6fb2e8a in _IO_vfprintf_internal (s=0xbffff3c0, format=<optimized 
out>,
     ap=0xbffff5a8 "\034") at vfprintf.c:1632
#1  0xb70504bc in __GI___vasprintf_chk (result_ptr=0xbffff4bc, flags=1,
     format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option 
of arg-type %d in entry %s:%s", args=0xbffff59c "lect") at 
vasprintf_chk.c:69
#2  0xb718e228 in vasprintf (__ap=0xbffff59c "lect",
     __fmt=0xb71c0784 "goption.c:2384: ignoring reverse flag on option 
of arg-type %d in entry %s:%s", __ptr=0xbffff4bc) at 
/usr/include/bits/stdio2.h:210
#3  g_vasprintf (string=0xbffff4bc,
     format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option 
of arg-type %d in entry %s:%s", args=0xbffff59c "lect") at gprintf.c:316
#4  0xb7167bf9 in g_strdup_vprintf (
     format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option 
of arg-type %d in entry %s:%s", args=0xbffff59c "lect") at gstrfuncs.c:514
#5  0xb714ecc7 in g_logv (log_domain=0xb71b732e "GLib",
     log_level=G_LOG_LEVEL_WARNING,
     format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option 
of arg-type %d in entry %s:%s", args=0xbffff59c "lect") at gmessages.c:1264
#6  0xb714f045 in g_log (log_domain=0xb71b732e "GLib",
     log_level=G_LOG_LEVEL_WARNING,
     format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option 
of arg-type %d in entry %s:%s") at gmessages.c:1398
#7  0xb7154e81 in g_option_group_add_entries (group=0x81548c0,
---Type <return> to continue, or q <return> to quit---
     entries=0xbffff618) at goption.c:2383
#8  0xb74d6816 in g_application_add_main_option_entries (
     application=0x8140108, entries=0x8179700) at gapplication.c:715
#9  0x0804cd59 in screenshot_screenshot_app_constructor (type=135569800,
     n_construct_properties=1, construct_properties=0x80fc870)
     at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:52
#10 0xb726bdd5 in g_object_new_with_custom_constructor (n_params=0,
     params=0x0, class=0x818dea0) at gobject.c:1701
#11 g_object_new_internal (class=class на entry=0x818dea0,
     params=params на entry=0x0, n_params=n_params на entry=0) at gobject.c:1781
#12 0xb726d933 in g_object_newv (object_type=135569800, n_parameters=0,
     parameters=0x0) at gobject.c:1930
#13 0xb726e0bd in g_object_new (object_type=135569800, 
first_property_name=0x0)
     at gobject.c:1623
#14 0x0804c9c5 in screenshot_screenshot_app_construct (
     object_type=<optimized out>)
     at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:22
#15 screenshot_screenshot_app_new ()
     at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:22
#16 screenshot_screenshot_app_main (args=0xbffff8a4, args_length1=2)
     at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:110
#17 0x0804c1bb in main (argc=2, argv=0xbffff8a4)
     at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:101

Есть у кого какие мысли?

-- 
С уважением, Антон Мидюков <antohami на altlinux.org>



Подробная информация о списке рассылки Devel