Using Electric Fence on a Gtk+/Gtk-- C++ application




Hello.

Can I use Electring Fence on a Gtk+ application (I'm using Gtk+ 1.2.6 via Gtk-- 1.1.7)?
Here follows a log of a GDB session with stack trace:

Starting program: /home/umberto/c/libpt-1.3.0/gtkmm/.libs/lt-workbench2 

  Electric Fence 2.0.5 Copyright (C) 1987-1998 Bruce Perens.
allocating 12 bytes (0x41defff4)       [<-- new "new" operator messages]
allocating 288 bytes (0x41fdbee0)
[... other messages omitted ...]
[New Thread 1480 (manager thread)]
[New Thread 1479 (initial thread)]
[New Thread 1481]
[Switching to Thread 1481]

Program received signal SIGSEGV, Segmentation fault.
0x80a3995 in slotForInternalAddress ()
(gdb) bt
#0  0x80a3995 in slotForInternalAddress ()
#1  0x80a3a9d in free ()
#2  0x4027b511 in g_free (mem=0x42445ffc) at gmem.c:411
#3  0x4024b94a in gdk_draw_text_wc (drawable=0x42420fcc, font=0x41f73fe4, 
    gc=0x4238fff0, x=2, y=13, text=0x42343e00, text_length=3) at gdkdraw.c:338
#4  0x4017bb62 in gtk_entry_draw_text () from /usr/lib/libgtk-1.2.so.0
#5  0x40179a06 in gtk_entry_set_text () from /usr/lib/libgtk-1.2.so.0
#6  0x400a1872 in Gtk::Entry::set_text (this=0x42311e7c, text=@0xbf7ffb10)
    at entry.cc:93
#7  0x403ad653 in PitchTrackerWidget::updateDisplayCallback (this=0x42311b8c, 
    pt=0xbffff268) at pitchtracker.cc:71
#8  0x403b4d12 in SigC::ObjectSlot1_<void, Generator<double> *, PitchTrackerWidget>:
:callback (d=0x4234fff0, p1=0xbffff268)
    at /usr/local/include/sigc++/object_slot.h:153
#9  0x4036944e in SigC::Signal1<void, Generator<double> *, SigC::Marshal<void> >::em
it (this=0xbffff26c, p1=@0xbf7ffb84) at /usr/local/include/sigc++/slot.h:356
#10 0x40362450 in DrHammerPitchTracker::EstimateFrequency (this=0xbffff264, 
    inputBuffer=0xbffff2e8) at ../libpt/generator.hh:118
#11 0x80a70d2 in SigC::ObjectSlot1_<void, InputBuffer *, PitchTracker>::callback (
    d=0x421a9ff0, p1=0xbffff2e8) at /usr/local/include/sigc++/object_slot.h:153
#12 0x80a6c51 in SigC::Signal1<void, InputBuffer *, SigC::Marshal<void> >::emit (
    this=0xbffff304, p1=@0xbf7ffc00) at /usr/local/include/sigc++/slot.h:356
#13 0x40366192 in InputBuffer::emit (this=0xbffff2e8) at ../libpt/inputbuffer.hh:51
---Type <return> to continue, or q <return> to quit---
#14 0x40365de0 in InputBuffer::Update (this=0xbffff2e8, source=0xbffff37c)
    at ../libpt/generator.hh:223
#15 0x80a7112 in SigC::ObjectSlot1_<void, AudioSource *, InputBuffer>::callback (
    d=0x421a7ff0, p1=0xbffff37c) at /usr/local/include/sigc++/object_slot.h:153
#16 0x80a6bf1 in SigC::Signal1<void, AudioSource *, SigC::Marshal<void> >::emit (
    this=0xbffff394, p1=@0xbf7ffca4) at /usr/local/include/sigc++/slot.h:356
#17 0x40363cf2 in AudioSource::emit (this=0xbffff37c)
    at ../libpt/audiosource.hh:128
#18 0x403639ab in SimpleSynthesizer::ReadFrames (this=0xbffff37c)
    at ../libpt/generator.hh:223
#19 0x40362706 in AudioSource::Listen (this=0xbffff37c) at audiosource.cc:72
#20 0x80a3f7c in deepThread (p=0xbffff37c) at workbench2.cc:52
#21 0x4034cce9 in pthread_start_thread (arg=0xbf7ffe7c) at manager.c:204
(gdb) 

I can't understand if the problem is in my application, Gdk, Gtk+, Gtk-- or
Electring Fence. Any hint?

Thanks,

Maurizio Umberto Puxeddu



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]