xemacs-gtk branch published

Mats Lidell mats.lidell at cag.se
Wed Jun 2 18:00:51 EDT 2010


>>>>> Jeff Sparkes <jsparkes at gmail.com> writes:

[About whether the GTK port should be discussed on xemacs-beta or
not.]

Jeff> I don't know either.  The list isn't that busy, and maybe others
Jeff> are trying it too, so sharing would be better.

Others have tried is since my first posting so I'll take the liberty
to CC the beta-list then.

>> You wrote:
Jeff> I've been porting XEmacs to Gtk 2.X. [...]
Jeff> * configure --with-gtk --with-scrollbars=gtk.

My problem is:

>> Doing this gets me a binary that dumps because of something that looks
>> lika a scrollbar resource error.  The lisp backtrace looks like
>> this: (See below)

Jeff> I haven't seen anything like this.  I'm on Ubuntu 10.4; what platform are
Jeff> you on?   Maybe that makes a difference.

Well, I'm using Gentoo so it is very likely a different setup than
Ubuntu.

I'll include the backtrace since someone might know from where these
resource problems come from.

>
> Lisp backtrace follows:
>
>  # (unwind-protect ...)
>  really-early-error-handler((wrong-type-argument stringp nil))
>  x-get-resource(nil nil natnum global nil warn)
>  # bind (class name)
>  byte-code("..." [type resource locale class name resource-list
> x-get-resource nil warn add-spec-to-specifier done t specifier] 8)
>  # (catch done ...)
>  # bind (resource-list locale type specifier)
>  x-init-specifier-from-resources(#<natnum-specifier global=<unspecified>
> fallback=(((tty) . 0) (nil . 15)) 0x22> natnum global ("scrollBarHeight" .
> "ScrollBarHeight") nil)
>  # bind (locale)
>  x-init-scrollbar-from-resources(global)
>  # bind (locale)
>  init-scrollbar-from-resources(global)
>  # (unwind-protect ...)
>  # (unwind-protect ...)
>  # bind (inhibit-quit)
>  # (unwind-protect ...)
>  # (unwind-protect ...)
>  # (unwind-protect ...)
>  make-device(x nil nil)
>  # bind (debugger debug-on-error command-line-args-left)
>  command-line()
>  # (condition-case ... . ((t (byte-code "      ...." [error-data data nil]
> 1))))
>  # bind (error-data)
>  normal-top-level()
>  # (condition-case ... . error)
>  # (catch top-level ...)
>
> Aborted (core dumped)
> ----------------------------------------------------------------------
>
> And the backtrace from the core:
>
> #0  0xffffe424 in __kernel_vsyscall ()
> #1  0xb71a99f6 in kill () from /lib/libc.so.6
> #2  0x080f3890 in fatal_error_signal (sig=6) at emacs.c:3915
> #3  <signal handler called>
> #4  0xffffe424 in __kernel_vsyscall ()
> #5  0xb71a96e0 in raise () from /lib/libc.so.6
> #6  0xb71aaf15 in abort () from /lib/libc.so.6
> #7  0x080f4d0f in really_abort () at emacs.c:4821
> #8  0x080f3994 in assert_failed (file=0x82e92a0 "emacs.c", line=3515,
> expr=0x82e9dd2 "ABORT()") at emacs.c:4101
> #9  0x080f33e3 in Fforce_debugging_signal (abort_=137812012) at
> emacs.c:3515
> #10 0x080c50b5 in Freally_early_error_handler (x=147565708) at
> cmdloop.c:161
> #11 0x080fe0cc in Ffuncall (nargs=2, args=0xbfbf8740) at eval.c:4092
> #12 0x08100d38 in call1 (fn=137639428, arg0=147565708) at eval.c:5354
> #13 0x080fa733 in Fsignal (error_symbol=137788012, data=147565684) at
> eval.c:2485
> #14 0x080faac7 in signal_error_1 (sig=137788012, data=147565684) at
> eval.c:2602
> #15 0x080cb0be in dead_wrong_type_argument (predicate=137770900,
> value=137812276) at data.c:119
> #16 0x08288c9e in Fx_get_resource (name=137812276, class_=137812276,
> type=137759284, locale=137785612, device=137812276, noerror=137780428) at
> device-x.c:1548
> #17 0x080fe1f5 in Ffuncall (nargs=7, args=0xbfbf8d74) at eval.c:4092
> #18 0x080b0a3e in execute_optimized_program (
>    program=0xbfbf9180 "\r\255)\r@@\034\r at A\033\306\f\v\b\n\307\310&\006\211\031\253\f\311\016\f\t\n#\210\312\313\265\210+\rA\211\025\254\332\307\207\030",
> program_length=44,
>    stack_depth=8, constants_data=0x846cf68) at bytecode.c:921
> #19 0x080bac71 in Fbyte_code (instructions=139216484, constants=138858332,
> stack_depth=17) at bytecode.c:2762
> #20 0x080fcd66 in Feval (form=138247732) at eval.c:3838
> #21 0x080f94af in internal_catch (tag=137771404, func=0x80fc41a <Feval>,
> arg=138247732, threw=0x0, thrown_tag=0x0, backtrace_before_throw=0x0) at
> eval.c:1692
> #22 0x080b5564 in execute_rare_opcode (stack_ptr=0xbfbf9744,
> stack_beg=0xbfbf9740, stack_end=0xbfbf974c, unused_program_ptr=0x8ffff18
> "\207", opcode=Bcatch) at bytecode.c:1499
> #23 0x080b0014 in execute_optimized_program (program=0x8ffff04
> "\n\303a\253\006\304\305\t\"\210\306\b\n\"?\255\004\307\310\215\207",
> program_length=21, stack_depth=3,
>    constants_data=0x846d004) at bytecode.c:806
> #24 0x080fdc67 in funcall_compiled_function (fun=139393204, nargs=5,
> args=0xbfbf9ca8) at eval.c:3679
> #25 0x080fe494 in Ffuncall (nargs=6, args=0xbfbf9ca4) at eval.c:4137
> #26 0x080b0a3e in execute_optimized_program (
>    program=0x90084b4
> "\306\307\t!\310\r\311\312\313!\253\004\314\252\017\312\315!\253\004\316\252\a\312\317!\255\002\320%\210\312\313!\253\n\306\307\t!\310\r\321$\210\306\307\b!\310\r\322\312\313!\253\004\323\252\017\312\315!\253\004\324\252\a\312\317!\255\002\325%\210\312\313!\253\n\306\307\b!\310\r\326$\210\327\330\331\332\333\r\334\335&\006\034\036(\f?\256T\336\337\f\"\253\016\340\v\327\r#\210\340\n\327\r#\252A\336\341\f\"\253\016\340\v\327\r#\210\340\n\334\r#\252.\336\342\f\"\253\016\340\v\334\r#\210\340\n\327\r#\252\033\336\343\f\"\253\016\340\v\334\r#\210\340\n\334\r#\252\b\344\345\346\347\f\"\"*\207!",
> program_length=192, stack_depth=8, constants_data=0x846d034) at
> bytecode.c:921
> #27 0x080fdc67 in funcall_compiled_function (fun=139393252, nargs=1,
> args=0xbfbfa228) at eval.c:3679
> #28 0x080fe494 in Ffuncall (nargs=2, args=0xbfbfa224) at eval.c:4137
> #29 0x080b0a3e in execute_optimized_program (
>    program=0x9008474
> "\301\302!\253\021\b\303a\254\b\304\b!\302a\253\005\305\b!\210\301\306!\255\020\b\303a\254\b\304\b!\306a\255\004\307\b!\207",
> program_length=42, stack_depth=2,
>    constants_data=0x846d100) at bytecode.c:921
> #30 0x080fdc67 in funcall_compiled_function (fun=139393348, nargs=1,
> args=0xbfbfa7b0) at eval.c:3679
> #31 0x080fe494 in Ffuncall (nargs=2, args=0xbfbfa7ac) at eval.c:4137
> #32 0x080fa20a in Fcall_with_condition_handler (nargs=3, args=0xbfbfa7a8)
> at eval.c:2282
> #33 0x080dea97 in call_critical_lisp_code (d=0x8fcae58, function=137752372,
> object=137785612) at device.c:1384
> #34 0x081a5610 in init_global_scrollbars (d=0x8fcae58) at scrollbar.c:635
> #35 0x080db664 in init_global_resources (d=0x8fcae58) at device.c:410
> #36 0x080dbf9a in Fmake_device (type=137803972, connection=137812276,
> props=137812276) at device.c:695
> #37 0x080fe11a in Ffuncall (nargs=4, args=0xbfbfa994) at eval.c:4092
> #38 0x080b0a3e in execute_optimized_program (
>    program=0x8d06334 "\fA\035\306\307\033\032\310\r!\025\t\311a\253\004\312
> \210\313\314!\253\004\315 \210\313\316!\253\004\317
> \210\313\314!\253\017\313\320!\253\a\321\322!\210\252\004\323
> \210\324\b\325\211#\210\326 \210*\327 \210\313\330!\253\004\331 \210\332
> \210r\333\334!q\210\335 \210\336\325!\210\016'\337a\253\005\016( \210\340
> \210)\341 \342a\253\b\343 \254\004\344 \210\345 \210\325\026)\343
> \255\004\346\307!)\207", program_length=133, stack_depth=4,
> constants_data=0x8463148) at bytecode.c:921
> #39 0x080fdc67 in funcall_compiled_function (fun=139365652, nargs=0,
> args=0xbfbfae20) at eval.c:3679
> #40 0x080fd3e0 in Feval (form=138155992) at eval.c:3899
> #41 0x080f9b39 in condition_case_1 (handlers=138155980, bfun=0x80fc41a
> <Feval>, barg=138155992, hfun=0x80f9c61 <run_condition_case_handlers>,
> harg=137789908) at eval.c:2103
> #42 0x080fa072 in condition_case_3 (bodyform=138155992, var=137789908,
> handlers=138155980) at eval.c:2185
> #43 0x080b58a4 in execute_rare_opcode (stack_ptr=0xbfbfb3a4,
> stack_beg=0xbfbfb3a0, stack_end=0xbfbfb3bc,
>    unused_program_ptr=0x8c9c6f4 "\210\320\r!\025\t\253\r\335\336\337\t\340
> \341 $!\026*\342\343!\210\b\253\005\342\300!\210\325\020\344
> \210\016%\253\005\342\345!\210\325\026%\v\253\b\346\v@\vA\"\210)\016+\255\003\347
> \207", opcode=Bcondition_case) at bytecode.c:1518
> #44 0x080b0014 in execute_optimized_program (
>    program=0x8c9c694
> "\n\253\005\306\307!\207\310\022\311\312!\253\t\313\314\311\312!!!\210\315
> \211\034\253\025\fG\rGW\253\016\316\r!\316\f!k\253\005\317\f!\025)\320\r!\025\321
> \210\322 \210\323\016(\253\004\310\252\006\016)\255\002\324\325\"\210\326
> \210\327 \210\325\033\330 \253\006\331
> \210\252\006\332\333\334\217\210\320\r!\025\t\253\r\335\336\337\t\340 \341
> $!\026*\342\343!\210\b\253\005\342\300!\210\325\020\344
> \210\016%\253\005\342\345!\210\325\026%\v\253\b\346\v@\vA\"\210)\016+\255\003\347
> \207", program_length=161, stack_depth=7,
>    constants_data=0x8463ca8) at bytecode.c:806
> #45 0x080fdc67 in funcall_compiled_function (fun=139367860, nargs=0,
> args=0xbfbfb830) at eval.c:3679
> #46 0x080fd3e0 in Feval (form=137868604) at eval.c:3899
> #47 0x080f9b39 in condition_case_1 (handlers=137810620, bfun=0x80fc41a
> <Feval>, barg=137868604, hfun=0x80c50c1 <cmd_error>, harg=137812276) at
> eval.c:2103
> ---Type <return> to continue, or q <return> to quit---
> #48 0x080c5165 in top_level_1 (unused_dummy=137812276) at cmdloop.c:248
> #49 0x080f94af in internal_catch (tag=137549164, func=0x80c511f
> <top_level_1>, arg=137812276, threw=0x0, thrown_tag=0x0,
> backtrace_before_throw=0x0) at eval.c:1692
> #50 0x080c5265 in initial_command_loop (load_me=137812276) at cmdloop.c:318
> #51 0x080f27ea in xemacs_21_5_b29_i686_pc_linux (argc=2, argv=0xbfbfbd84,
> unused_envp=0x0, restart=0) at emacs.c:2744
> #52 0x080f303f in main (argc=Cannot access memory at address 0x48b5
> ) at emacs.c:3192

Yours
-- 
%% Mats



More information about the XEmacs-Beta mailing list