thomas schorpp schrieb:
> thomas schorpp schrieb:
>> thomas schorpp schrieb:
>>> Tzafrir Cohen schrieb:
>>>> On Fri, Oct 24, 2008 at 11:51:27PM +0200, thomas schorpp wrote:
>>>>> Tzafrir Cohen schrieb:
>>>>>> On Fri, Oct 24, 2008 at 09:46:25PM +0200, thomas schorpp wrote:
>>>>>>> Tzafrir Cohen schrieb:
>>>>>>>> Does the callweaver binary have debug information or is it
>>>>>>>> stripped?
>>>>>>> dh_strip
>>>>>>>
>>>>>>>> If you use debs, use a -dbg package.
>>>>>>> current debian/ scripts included do not build one.
>>>>>>>
>>>>>> dh_strip --dbg-package=callweaver-dbg
>>>>>>
>>>>>> and add a (binary) package called callweaver-dbg in the control .
>>>>>>
>>>>>> diff --git a/debian/control b/debian/control
>>>>>> index 10fb21a..779b39e 100644
>>>>>> --- a/debian/control
>>>>>> +++ b/debian/control
>>>>>> @@ -33,6 +33,17 @@ Description: Development files for Callweaver
>>>>>> This package contains the include files used if you wish to
>>>>>> compile a
>>>>>> package which requires Callweaver source file headers.
>>>>>>
>>>>>> +Package: callweaver-dev
>>>>>> +Section: devel
>>>>>> +Priority: extra
>>>>>> +Architecture: any
>>>>>> +Depends: Depends: callweaver (= ${binary:Version})
>>>>>> +Description: Development files for Callweaver
>>>>>> + Callweaver is an Open Source PBX and telephony toolkit.
>>>>>> + .
>>>>>> + This package contains the debugging symbols for modules. Use it
>>>>>> if you want
>>>>>> + to run callweaver under a debugger.
>>>>>> +
>>>>>> Package: callweaver-doc
>>>>>> Recommends: callweaver
>>>>>> Section: doc
>>>>>> diff --git a/debian/rules b/debian/rules
>>>>>> index 5c1fde4..1c5d6c2 100755
>>>>>> --- a/debian/rules
>>>>>> +++ b/debian/rules
>>>>>> @@ -169,7 +169,7 @@ binary-arch: install
>>>>>> # dh_installinfo -a
>>>>>> # dh_installman -a
>>>>>> dh_link -a
>>>>>> - dh_strip -a
>>>>>> + dh_strip -a --dbg-package=callweaver-dbg
>>>>>> dh_compress -a
>>>>>> dh_fixperms -a
>>>>>> # dh_perl -a
>>>>>>
>>>>> does not work
>>>>> +Depends: Depends: callweaver (= ${binary:Version})
>>>>> gives some unresolved deps error
>>>>
>>>> $ cat debian/compat
>>>> 4
>>>
>>> check'd.
>>>
>>>>
>>>> dh_stript(1) reads:
>>>>
>>>> --dbg-package=package
>>>>
>>> ACK but:
>>> SYNOPSIS
>>> dh_strip [debhelper options] ...
>>> which implies "-a" since other dh_* use "-a", too.
>>>
>>> but well, if theres nothing to strip so no output from dh_strip?
>>>
>>> will configure with --enable-debug then we will see symbols in the
>>> *-dbg debs, i hope.
>>>
>>> y
>>> tom
>>>
>>
>> dh_strip -v --dbg-package=...
>>
>> says only strip'd but written to nowhere, giving up dbg deb.
>>
>> done it like below, runs fine in home env with < 10% cpu on a P2-266,
>> it should segfault over the day, will give full bt.
>>
>> y
>> tom
>>
>
> ts. segfault gone with debug builds of CW and spandsp:
>
> tom3:~# grep core /var/log/syslog
> tom3:~# date
> Sat Oct 25 19:01:30 UTC 2008
>
> 12h now.
>
> waiting.
>
> y
> tom
>
>
>
caught. segfault on reregister from ekiga v.3, looks like double-free, mailing
full bt to steve only, may contain account info.
old ekiga snapshot, trying new ekiga 3.0.1 next:
(gdb) bt
#0 0xb666667f in __sip_destroy (p=0x8158590, lockowner=1) at chan_sip.c:3075
#1 0xb6666bbd in sip_destroy (p=0x8158590) at chan_sip.c:3262
#2 0xb668c401 in handle_request_subscribe (p=0x8119c40, req=0xb66420d4,
debug=0, ignore=0, sin=0xb6640e94, seqno=37,
e=0xb66422f6 "sip:[EMAIL PROTECTED]") at chan_sip.c:14103
#3 0xb668d52b in handle_request (p=0x8119c40, req=0xb66420d4, sin=0xb6640e94,
recount=0xb6640e74, nounlock=0xb6640e78)
at chan_sip.c:14418
#4 0xb668e0a4 in sipsock_read (id=0x80aecb8, fd=8, events=1, ignore=0x0) at
chan_sip.c:14607
#5 0xb7ef787e in cw_io_wait (ioc=0x8076c90, howlong=1000) at io.c:287
#6 0xb668e9c9 in do_monitor (data=0x0) at chan_sip.c:14805
#7 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#8 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
(gdb) thread apply all bt
Thread 14 (process 4911):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7c4e477 in poll () from /lib/i686/cmov/libc.so.6
#2 0xb7f74f88 in callweaver_main (argc=4, argv=0xbfd10a64) at callweaver.c:2756
#3 0x08048563 in main (argc=Cannot access memory at address 0x0
) at main.c:27
Thread 13 (process 4918):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7c4e477 in poll () from /lib/i686/cmov/libc.so.6
#2 0xb7f6fb5a in listener (unused=0x0) at callweaver.c:637
#3 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#4 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 12 (process 4919):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7ea3aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2 0xb7ef7ebc in cw_cond_wait (cond=0x804eda8, t=0x804edd8) at
../include/callweaver/lock.h:619
#3 0xb7ef7ded in service_thread (data=0x804eda8) at sched.c:105
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 11 (process 4920):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7ea3aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2 0xb7ef7ebc in cw_cond_wait (cond=0x804f500, t=0x804f530) at
../include/callweaver/lock.h:619
#3 0xb7ef7ded in service_thread (data=0x804f500) at sched.c:105
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 10 (process 4921):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7ea3aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2 0xb7f64528 in cw_cond_wait (cond=0xb7fb29c0, t=0xb7fad348) at
../include/callweaver/lock.h:619
#3 0xb7f644ff in do_devstate_changes (data=0x0) at devicestate.c:265
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 9 (process 4924):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7c51021 in select () from /lib/i686/cmov/libc.so.6
#2 0xb6706de9 in cw_select (nfds=0, rfds=0xb66fe240, wfds=0x0,
efds=0xb66fe1c0, tvp=0x0)
at ../include/callweaver/channel.h:1123
---Type <return> to continue, or q <return> to quit---
#3 0xb6706da6 in do_parking_thread (ignore=0x0) at res_features.c:1757
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 8 (process 4926):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7c4e477 in poll () from /lib/i686/cmov/libc.so.6
#2 0xb7ef775b in cw_io_wait (ioc=0x8081098, howlong=1000) at io.c:274
#3 0xb64d3068 in network_thread (ignore=0x0) at chan_iax2.c:7143
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 7 (process 4927):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7ea3aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2 0xb7ef7ebc in cw_cond_wait (cond=0x80b2ed0, t=0x80b2f00) at
../include/callweaver/lock.h:619
#3 0xb7ef7ded in service_thread (data=0x80b2ed0) at sched.c:105
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 6 (process 4928):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7c4e477 in poll () from /lib/i686/cmov/libc.so.6
#2 0xb7ef775b in cw_io_wait (ioc=0x80b3030, howlong=10000) at io.c:274
#3 0xb646046b in do_monitor (data=0x0) at chan_mgcp.c:3461
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 5 (process 4929):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7c17966 in nanosleep () from /lib/i686/cmov/libc.so.6
#2 0xb7c17777 in sleep () from /lib/i686/cmov/libc.so.6
#3 0xb63c74ba in scan_thread (unused=0x0) at pbx_spool.c:361
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 4 (process 4930):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7ea3aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2 0xb7ef7ebc in cw_cond_wait (cond=0x80bbd60, t=0x80bbd90) at
../include/callweaver/lock.h:619
#3 0xb7ef7ded in service_thread (data=0x80bbd60) at sched.c:105
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
---Type <return> to continue, or q <return> to quit---
Thread 3 (process 4931):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7c4e477 in poll () from /lib/i686/cmov/libc.so.6
#2 0xb7ef775b in cw_io_wait (ioc=0x80ba7f8, howlong=10000) at io.c:274
#3 0xb6371878 in network_thread (ignore=0x0) at pbx_dundi.c:2118
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 2 (process 4932):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7c17966 in nanosleep () from /lib/i686/cmov/libc.so.6
#2 0xb7c17777 in sleep () from /lib/i686/cmov/libc.so.6
#3 0xb63719b9 in process_precache (ign=0x0) at pbx_dundi.c:2153
#4 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
Thread 1 (process 4925):
#0 0xb666667f in __sip_destroy (p=0x8158590, lockowner=1) at chan_sip.c:3075
#1 0xb6666bbd in sip_destroy (p=0x8158590) at chan_sip.c:3262
#2 0xb668c401 in handle_request_subscribe (p=0x8119c40, req=0xb66420d4,
debug=0, ignore=0, sin=0xb6640e94, seqno=37,
e=0xb66422f6 "sip:[EMAIL PROTECTED]") at chan_sip.c:14103
#3 0xb668d52b in handle_request (p=0x8119c40, req=0xb66420d4, sin=0xb6640e94,
recount=0xb6640e74, nounlock=0xb6640e78)
at chan_sip.c:14418
#4 0xb668e0a4 in sipsock_read (id=0x80aecb8, fd=8, events=1, ignore=0x0) at
chan_sip.c:14607
#5 0xb7ef787e in cw_io_wait (ioc=0x8076c90, howlong=1000) at io.c:287
#6 0xb668e9c9 in do_monitor (data=0x0) at chan_sip.c:14805
#7 0xb7e9f4fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#8 0xb7c5860e in clone () from /lib/i686/cmov/libc.so.6
(gdb)
_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev