Re: mc setting then quitting make segfault



Hi,

Based on the bugzilla entry that you refer to and the information
that you've supplied I'd say that the reason for the crash is some
kind of memory corruption. As you can see the backtrace is corrupted.
I'd suggest you to start your debugger and put a breakpoint in
configure_box () (found in src/option.c) at the point where the following
code is executed

  if (result == B_EXIT)

and see what happens. It is unfortunate that I don't get that crash
otherwise I'd debug it myself.

On Mon, 14 Feb 2005, Marcel Pol wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> In Mandrake's bugzilla is a bug posted for mc which I can't reproduce
> myself. Someone here might want to take a look at it though:
> http://qa.mandrakesoft.com/show_bug.cgi?id=12842
>
> Basically it comes down to this:
> <quote>
> Keys : F9, Options, Configuration (no modification needed), F10. I can
> continue
> to use mc without problem. And the segfault appears only when I quit. No
> segfault on quitting if I do not open Configuration box during the mc
> session.
> </quote>
>
> This happens with the 4.6.0 in Mandrake 10.1 and with 4.6.1-pre3 in
> current cooker. It happens with the utf8 patch applied, and without it.
> It doesn't happen with the rpm from the mc website of last December, so
> it seems to be a compile time probem (?).
> There's a backtrace posted from gdb with the non-utf8 package:
>
> gdb mc (no_utf8):
> <Option, Configuration, quit>
> Program received signal SIGSEGV, Segmentation fault.
> 0x401bae3d in mallopt () from /lib/tls/libc.so.6
> (gdb) backtrace
> #0  0x401bae3d in mallopt () from /lib/tls/libc.so.6
> #1  0x401bac62 in mallopt () from /lib/tls/libc.so.6
> #2  0x401b8dda in free () from /lib/tls/libc.so.6
> #3  0x4005b1f0 in g_free () from /usr/lib/libglib-2.0.so.0
> #4  0x00000000 in ?? ()
> #5  0x00000004 in ?? ()
> #6  0x08079910 in panel_callback (panel=0x80fc8b8, msg=25, parm=1074115056)
> ~    at screen.c:942
> #7  0x080580d3 in dlg_broadcast_msg_to (h=0x19, message=WIDGET_DESTROY,
> ~    reverse=0, flags=-1) at dialog.h:202
> #8  0x08058d55 in destroy_dlg (h=0x8104e38) at dialog.c:803
> #9  0x080703b7 in main (argc=25, argv=0x5) at main.c:1759
> (gdb)
>
> If there is more info needed I can forward that, or you could mail the
> reporter directly, I assume.
>
> - --
> Marcel Pol
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFCEQw3MgeuL0xhZZ4RAu3DAKDAXJt+tpxKBRpF4Xs6BgwrCOPzPwCfZ/YJ
> 6tt5KORv/1es3qyDJDDx1RE=
> =QQMX
> -----END PGP SIGNATURE-----
> _______________________________________________
> Mc-devel mailing list
> http://mail.gnome.org/mailman/listinfo/mc-devel
>



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