Discussion:
[ekg-users] segfault w ekg (trunk)
Marcin Mirosław
2011-08-11 08:27:01 UTC
Permalink
Cze??!
Uzywam libgadu oraz ekg z trunka (debug jest z wczorajszej wersji). Od
pewnego czasu (tydzien, dwa) ekg robi mi segfalta o porannej porze
(czyli chyba wtedy "id?" reklamy, godz 5:35).
Backtrace wygl?da tak:
[...]
Loaded symbols for /lib64/libresolv.so.2
Core was generated by `ekg -n -u 4400538'.
Program terminated with signal 6, Aborted.
#0 0x000003097a34a665 in raise () from /lib64/libc.so.6
(gdb) thread apply all bt full

Thread 2 (Thread 3813):
#0 0x000003097a3f5bae in __lll_lock_wait_private () from /lib64/libc.so.6
No symbol table info available.
#1 0x000003097a390c42 in _L_lock_6669 () from /lib64/libc.so.6
No symbol table info available.
#2 0x000003097a38f011 in free () from /lib64/libc.so.6
No symbol table info available.
#3 0x0000001e719306b9 in window_backlog_split ()
No symbol table info available.
#4 0x0000001e719374f3 in ui_ncurses_print ()
No symbol table info available.
#5 0x0000001e71917720 in print_window ()
No symbol table info available.
#6 0x0000001e71925cd7 in debug_handler ()
No symbol table info available.
#7 0x000003097b044624 in gg_debug () from /usr/lib64/libgadu.so.3
No symbol table info available.
#8 0x000003097b054cf7 in gg_resolver_pthread_start () from
/usr/lib64/libgadu.so.3
No symbol table info available.
#9 0x000003097b046160 in gg_handle_resolve_async () from
/usr/lib64/libgadu.so.3
No symbol table info available.
#10 0x000003097b048b3a in gg_watch_fd () from /usr/lib64/libgadu.so.3
No symbol table info available.
#11 0x000003097b04f668 in gg_login () from /usr/lib64/libgadu.so.3
No symbol table info available.
#12 0x0000001e718f87a9 in ekg_connect ()
No symbol table info available.
#13 0x0000001e71928b10 in ekg_wait_for_key ()
No symbol table info available.
#14 0x0000001e7193f5bd in ui_ncurses_loop ()
No symbol table info available.
#15 0x0000001e719275b2 in main ()
No symbol table info available.

Thread 1 (Thread 35535):
#0 0x000003097a34a665 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x000003097a34b965 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x000003097a384c44 in __libc_message () from /lib64/libc.so.6
No symbol table info available.
#3 0x000003097a38a0b5 in malloc_printerr () from /lib64/libc.so.6
No symbol table info available.
#4 0x000003097a38f01c in free () from /lib64/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#5 0x0000001e71933f9e in window_backlog_add ()
No symbol table info available.
#6 0x0000001e719374f3 in ui_ncurses_print ()
No symbol table info available.
#7 0x0000001e71917720 in print_window ()
No symbol table info available.
#8 0x0000001e71925cd7 in debug_handler ()
No symbol table info available.
#9 0x000003097b044624 in gg_debug () from /usr/lib64/libgadu.so.3
No symbol table info available.
#10 0x000003097b055301 in gg_resolver_run () from /usr/lib64/libgadu.so.3
No symbol table info available.
#11 0x000003097b055481 in gg_resolver_pthread_thread () from
/usr/lib64/libgadu.so.3
No symbol table info available.
#12 0x0000030979c8ed4c in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#13 0x000003097a3e8cfd in clone () from /lib64/libc.so.6
No symbol table info available.

gcc version 4.5.3 (Gentoo Hardened 4.5.3 p1.0, pie-0.4.5)


Niestety, nie wiem czemu gdb nie zaczyta? mi symboli ( Reading symbols
from /usr/bin/ekg...Reading symbols from
/usr/lib64/debug/usr/bin/ekg.debug...(no debugging symbols
found)...done. ) Jak uda mi si? zdoby? debuga z symbolami to pode?l? go.

Pozdrawiam
Marcin Mirosław
2011-08-11 10:15:39 UTC
Permalink
Post by Marcin Mirosław
Niestety, nie wiem czemu gdb nie zaczyta? mi symboli
Ech, ju? wiem dlaczego.
Post by Marcin Mirosław
found)...done. ) Jak uda mi si? zdoby? debuga z symbolami to pode?l? go.
Mateusz Pastuszko
2011-08-11 16:09:21 UTC
Permalink
Post by Marcin Mirosław
Post by Marcin Mirosław
Niestety, nie wiem czemu gdb nie zaczyta? mi symboli
Ech, ju? wiem dlaczego.
Post by Marcin Mirosław
found)...done. ) Jak uda mi si? zdoby? debuga z symbolami to pode?l? go.
I nie powiesz? Moze komus na przyszlosc sie to przyda?
Marcin Mirosław
2011-08-11 18:43:37 UTC
Permalink
Post by Mateusz Pastuszko
I nie powiesz? Moze komus na przyszlosc sie to przyda?
To by? tak oczywiste (i zawstydzaj?ce), ?e uzna?em i? robi? szum na li?cie.
A przyczyna jest banalna, z pr??nego to i Salomon nie naleje. U?ycie
splidebuga nic nie da je?li nie doda si? np. -ggdb do flag kompilatora.
To jest takie oczywiste ;)
Marcin Mirosław
2011-08-13 22:06:18 UTC
Permalink
Post by Marcin Mirosław
Post by Marcin Mirosław
Niestety, nie wiem czemu gdb nie zaczyta? mi symboli
Ech, ju? wiem dlaczego.
Post by Marcin Mirosław
found)...done. ) Jak uda mi si? zdoby? debuga z symbolami to pode?l? go.
I jest:

(gdb) thread apply all bt

Thread 2 (Thread 18778):
#0 __lll_lock_wait_private () at
../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1 0x0000023844ca7f52 in _L_lock_9848 () from /lib64/libc.so.6
#2 0x0000023844ca6321 in __libc_free (mem=0x23844f96e60) at malloc.c:3736
#3 0x0000001108fad728 in print_window () at themes.c:588
#4 0x0000001108fbbcd7 in debug_handler () at ekg.c:1087
#5 0x000002384595b624 in gg_debug () at debug.c:127
#6 0x000002384596c301 in gg_resolver_run () at resolver.c:259
#7 0x000002384596c481 in gg_resolver_pthread_thread () at resolver.c:479
#8 0x00000238445a5d4c in start_thread (arg=0x23843628700) at
pthread_create.c:301
#9 0x0000023844cffecd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 31374):
#0 0x0000023844c61635 in raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x0000023844c62935 in abort () at abort.c:92
#2 0x0000023844c9bf54 in __libc_message (do_abort=2,
fmt=0x23844d5c1f0 "*** glibc detected *** %s: %s: 0x%s ***\n")
at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
#3 0x0000023844ca13c5 in malloc_printerr (action=3,
str=0x23844d5c590 "double free or corruption (!prev)", ptr=<value
optimized out>) at malloc.c:6283
#4 0x0000023844ca4df3 in _int_realloc (av=0x23844f96e60,
oldp=0x1109684640, oldsize=640016, nb=640080)
at malloc.c:5341
#5 0x0000023844ca6499 in __libc_realloc (oldmem=0x1109684650,
bytes=640064) at malloc.c:3821
#6 0x0000001108fbf129 in xrealloc () at xmalloc.c:89
#7 0x0000001108fc67d1 in window_backlog_split () at ui-ncurses.c:524
#8 0x0000001108fcd4f3 in ui_ncurses_print () at ui-ncurses.c:1434
#9 0x0000001108fad720 in print_window () at themes.c:586
#10 0x0000001108fbbcd7 in debug_handler () at ekg.c:1087
#11 0x000002384595b624 in gg_debug () at debug.c:127
#12 0x000002384596bcf7 in gg_resolver_pthread_start () at resolver.c:545
#13 0x000002384595d160 in gg_handle_resolve_async () at events.c:439
#14 0x000002384595fb3a in gg_watch_fd () at events.c:1457
#15 0x0000023845966668 in gg_login () at libgadu.c:935
#16 0x0000001108f8e7a9 in ekg_connect () at stuff.c:1536
#17 0x0000001108fbeb10 in ekg_wait_for_key () at ekg.c:542
#18 0x0000001108fd55bd in ui_ncurses_loop () at ui-ncurses.c:4748
#19 0x0000001108fbd5b2 in main () at ekg.c:1678

Tym razem sta?o si? to w ci?gu dnia, nie by?o wi?c reklam. Ale w okolicy
tej godziny mia?em jakie? problemy z sieci? na serwerze. By? mo?e ma to
jaki? zwi?zek (ale druga instancja ekg prze?y?a bez szwanku...).

Pozdrawiam.
Marcin Mirosław
2011-10-16 12:19:07 UTC
Permalink
Od d?u?szego czasu nie mam tego problemu, nie wiem z czym to wi?za?.
Teraz jest dobrze:)

Kontynuuj czytanie narkive:
Loading...