Fwd: RE: [gtkmm] TreeView Model, SEGV on append [erik_ohrnberger dme net]



(I repeat: please cc the mailing list, that's what it's for.)

Hi Erik!

Obviously the call stack is corrupted, unfortunately, so you'll have
to use a version of gtkmm with debugging information, use gdb, set a
breakpoint before the call to append() and step into the depth of
gtkmm ....

Ot try again to isolate the problem. You say if you copy your class
MoldList::Directory into an example, it runs fine? Could you send
the code to the list? Is it the first call to append() that leads
to the segfault?

Regards,

  Martin


Am 2003.10.24 22:51 schrieb(en) "Ohrnberger, Erik":
Martin,
	I figured it out.  It's included below.  Perhaps it'll help.

	Erik.

(gdb) backtrace
#0  0x401b2fc5 in Gtk::ListStore::append() () from
/usr/lib/libgtkmm-2.0.so.1
#1  0xbfffecc0 in ?? ()
#2  0x080b94a6 in MoldList::Directory(std::string) (this=0x82f3efc,
pattern={static npos = 4294967295, _M_dataplus = {<allocator<char>> =
{<No
data fields>}, _M_p = 0x82c5c8c "Mold.*.obst"}, static
_S_empty_rep_storage
= {0, 0, 4, 0}}) at MoldList.cpp:188
#3  0x080b71f8 in MoldList (this=0x82f3efc) at MoldList.cpp:123
#4  0x080c9fd6 in ToolRoomNotebook (this=0x82f3ec0) at
ToolRoomNotebook.cpp:116
#5  0x080dac64 in ToolRoomTab (this=0x82f3e88) at ToolRoomTab.cpp:38
#6  0x080b1915 in MainNotebook (this=0x82a7a68) at MainNotebook.cpp:41
#7  0x080b4790 in MainWindow::CreateInterface() (this=0xbffff390) at
MainWindow.cpp:67
#8  0x080df368 in MainWindow (this=0xbffff390) at MainWindow.h:62
#9  0x080dee29 in main (argc=1, argv=0xbffff434) at main.cpp:41
#10 0x4102b977 in __libc_start_main () from /lib/libc.so.6
(gdb)

-----Original Message-----
From: Ohrnberger, Erik
Sent: Friday, October 24, 2003 4:49 PM
To: 'Martin Schulze'
Subject: RE: [gtkmm] TreeView Model, SEGV on append


Martin,
	Would a core file help?  How to you create a backtrace?

	Erik.

-----Original Message-----
From: Martin Schulze [mailto:martin-ml hippogriff de]
Sent: Friday, October 24, 2003 4:44 PM
To: Ohrnberger, Erik
Cc: gtkmm-list
Subject: Re: [gtkmm] TreeView Model, SEGV on append


Am 2003.10.24 22:29 schrieb(en) "Ohrnberger, Erik":
Martin,
	That's the thing.  I pulled the class out of the application
that
I'm working on, put in an example type program and it works fine.
However,
in the application, that's the line that causes the SEGV.

	I comment out the call to the method that tries to load data
into
the treeview, and the program runs fine.

	So I guess I'm looking for clues as to what would cause SEGVs
in
that routine, and check the greater application code for issues that
could
cause it to happen.

	Sorry if the original posting didn't explain that
sufficiently.

	Given that this is what I'm looking for, would have any hints
for
ideas?

Without even a backtrace I'm afraid I don't have any guess.

Regards,

    Martin



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