Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FvwmScript core dump on signal 6 when called with (LaunchScript $FOO) from another FvwmScript #356

Closed
NsCDE opened this issue Dec 13, 2020 · 8 comments · Fixed by #357
Closed
Milestone

Comments

@NsCDE
Copy link
Contributor

NsCDE commented Dec 13, 2020

Hi,

It is a bit of reworked clone of FvwmScript-FileBrowser used in NsCDE FVWM environment. Problem manifests only in FVWM3, and FVWM2 is ok. It can be reproduced on Fedora 33 and Fedora 31, but not on other systems.

This can be reproduced by opening NsCDE Style Manager, Backdrop Style Manager, and pushing "Add ..." button. FilePicker based on FvwmScript-FileBrowser will blink for a brief moment and core dump. This is in a way similar to the It is similar to #299 (For loop on Fedora 33 and FreeBSD). It works if called manually from FvwmCommand with "Module FvwmScript FilePicker".

I'm attaching FvwmScript binary and full backtrace from Fedora 31.

# coredumpctl debug 26171
           PID: 26171 (FvwmScript)
           UID: 1002 (tmangrow)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Sun 2020-12-13 23:22:02 CET (23s ago)
  Command Line: /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript 47 4 none 0 8 FilePicker �12FvwmScript10
    Executable: /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript
 Control Group: /user.slice/user-1002.slice/session-16.scope
          Unit: session-16.scope
         Slice: user-1002.slice
       Session: 16
     Owner UID: 1002 (tmangrow)
       Boot ID: ee7a692e9e134ee7a9de16678e2acdb7
    Machine ID: c7faf2a81e314ce4a79e7d9bb3df7bb6
      Hostname: testbox10
       Storage: /var/lib/systemd/coredump/core.FvwmScript.1002.ee7a692e9e134ee7a9de16678e2acdb7.26171.1607898122000000.lz4
       Message: Process 26171 (FvwmScript) of user 1002 dumped core.
                
                Stack trace of thread 26171:
                #0  0x00007fae213b4625 __GI_raise (libc.so.6)
                #1  0x00007fae2139d8d9 __GI_abort (libc.so.6)
                #2  0x00007fae213f84bf __libc_message (libc.so.6)
                #3  0x00007fae213ffaac malloc_printerr (libc.so.6)
                #4  0x00007fae214014ac _int_free (libc.so.6)
                #5  0x00007fae220e0223 _XReply (libX11.so.6)
                #6  0x00007fae220ca70b XInternAtom (libX11.so.6)
                #7  0x000000000040cf85 ReadFvwmScriptArg (FvwmScript)
                #8  0x000000000040d425 main (FvwmScript)
                #9  0x00007fae2139f1a3 __libc_start_main (libc.so.6)
                #10 0x00000000004087fe _start (FvwmScript)

GNU gdb (GDB) Fedora 8.3.50.20190824-30.fc31
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript...
[New LWP 26171]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript 47 4 none 0 8 FilePicker �12FvwmScrip'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	  return ret;
Missing separate debuginfos, use: dnf debuginfo-install pcre-8.44-1.fc31.x86_64 pcre2-10.35-7.fc31.x86_64
(gdb) bt full
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
        set = {__val = {0, 140385874309456, 24628576, 0, 140385874309456, 140385874310328, 0, 24902496, 140724972288480, 1, 4294967295, 0, 140385872109552, 140385873511664, 4294967296, 2378067}}
        pid = <optimized out>
        tid = <optimized out>
#1  0x00007fae2139d8d9 in __GI_abort () at abort.c:79
        save_stage = 1
        act = 
          {__sigaction_handler = {sa_handler = 0x30ffffffffffffff, sa_sigaction = 0x30ffffffffffffff}, sa_mask = {__val = {1603139362052355584, 24827680, 140724972288800, 18446744073709551615, 0, 140724972288480, 4552157, 24637776, 140385857984041, 0, 1125921381679107, 18446744073709551360, 18446744073709551615, 0, 0, 48}}, sa_flags = 0, sa_restorer = 0x0}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007fae213f84bf in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fae21507f4b "%s\n") at ../sysdeps/posix/libc_fatal.c:181
        ap = {{gp_offset = 24, fp_offset = 32765, overflow_arg_area = 0x7ffd15fbfb50, reg_save_area = 0x7ffd15fbfae0}}
        fd = <optimized out>
        list = <optimized out>
        nlist = <optimized out>
        cp = <optimized out>
        written = <optimized out>
#3  0x00007fae213ffaac in malloc_printerr (str=str@entry=0x7fae215060e0 "free(): invalid pointer") at malloc.c:5339
#4  0x00007fae214014ac in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:4173
        size = 0
        fb = <optimized out>
        nextchunk = <optimized out>
        nextsize = <optimized out>
        nextinuse = <optimized out>
        prevsize = <optimized out>
        bck = <optimized out>
        fwd = <optimized out>
        __PRETTY_FUNCTION__ = "_int_free"
#5  0x00007fae220e0223 in _XReply (dpy=dpy@entry=0x177cd60, rep=rep@entry=0x7ffd15fbfc60, extra=extra@entry=0, discard=discard@entry=1) at xcb_io.c:647
        req = <optimized out>
        response = 0x0
        error = 0x0
        c = <optimized out>
        reply = <optimized out>
        current = 0x1877c80
        dpy_request = <optimized out>
        __PRETTY_FUNCTION__ = "_XReply"
#6  0x00007fae220ca70b in XInternAtom (dpy=0x177cd60, name=0x7ffd15fc1ede "\241\061\062FvwmScript10", onlyIfExists=1) at IntAtom.c:181
        atom = <optimized out>
        sig = 1146
        idx = 58
        n = 15
        rep = {type = 160 '\240', pad1 = 252 '\374', sequenceNumber = 5627, length = 32765, atom = 4229072, pad2 = 0, pad3 = 368836256, pad4 = 32765, pad5 = 4533388, pad6 = 0}
#7  0x000000000040cf85 in ReadFvwmScriptArg (argc=8, argv=0x7ffd15fbfea8, IsFather=0) at FvwmScript.c:1342
        i = 98
        myatom = 24620016
#8  0x000000000040d425 in main (argc=8, argv=0x7ffd15fbfea8) at FvwmScript.c:1473
        IsFather = 0
        i = 2
        __func__ = "main"
(gdb) 

FvwmScript.zip

ThomasAdam added a commit that referenced this issue Dec 14, 2020
Ensure the malloc()d space to the string is computed using its length
and not some random magic number.

Fixes #356
@ThomasAdam ThomasAdam modified the milestones: 1.0, 1.0.2 Dec 14, 2020
@NsCDE
Copy link
Contributor Author

NsCDE commented Dec 14, 2020

Hi Thomas!

Your fix in the ta/gh-356 allowed FvwmScript to go one step further: it opens FilePicker applet. Not it dies on SendToScript in widget 1.

Binary in attachment, bt full below.

 # coredumpctl debug 42470
           PID: 42470 (FvwmScript)
           UID: 1002 (tmangrow)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Mon 2020-12-14 18:45:53 CET (24s ago)
  Command Line: /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript 47 4 none 0 8 FilePicker �12FvwmScript10
    Executable: /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript
 Control Group: /user.slice/user-1002.slice/session-16.scope
          Unit: session-16.scope
         Slice: user-1002.slice
       Session: 16
     Owner UID: 1002 (tmangrow)
       Boot ID: ee7a692e9e134ee7a9de16678e2acdb7
    Machine ID: c7faf2a81e314ce4a79e7d9bb3df7bb6
      Hostname: testbox10
       Storage: /var/lib/systemd/coredump/core.FvwmScript.1002.ee7a692e9e134ee7a9de16678e2acdb7.42470.1607967953000000.lz4
       Message: Process 42470 (FvwmScript) of user 1002 dumped core.
                
                Stack trace of thread 42470:
                #0  0x00007f558cecd625 __GI_raise (libc.so.6)
                #1  0x00007f558ceb68d9 __GI_abort (libc.so.6)
                #2  0x00000000004513bc do_coredump (FvwmScript)
                #3  0x000000000045151d PrintXErrorAndCoredump (FvwmScript)
                #4  0x0000000000409216 myErrorHandler (FvwmScript)
                #5  0x00007f558dbfb43b _XError (libX11.so.6)
                #6  0x00007f558dbf81a7 handle_error (libX11.so.6)
                #7  0x00007f558dbf93b3 _XReply (libX11.so.6)
                #8  0x00007f558dbdeef5 XGetSelectionOwner (libX11.so.6)
                #9  0x00000000004125b0 SendToScript (FvwmScript)
                #10 0x0000000000409ed2 ExecBloc (FvwmScript)
                #11 0x00000000004119cd IfThen (FvwmScript)
                #12 0x0000000000409ed2 ExecBloc (FvwmScript)
                #13 0x000000000040ab8f SendMsg (FvwmScript)
                #14 0x0000000000423f22 EvtMousePushButton (FvwmScript)
                #15 0x000000000040bf34 ReadXServer (FvwmScript)
                #16 0x000000000040c5b9 MainLoop (FvwmScript)
                #17 0x000000000040d449 main (FvwmScript)
                #18 0x00007f558ceb81a3 __libc_start_main (libc.so.6)
                #19 0x00000000004087fe _start (FvwmScript)

GNU gdb (GDB) Fedora 8.3.50.20190824-30.fc31
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript...
[New LWP 42470]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript 47 4 none 0 8 FilePicker �12FvwmScrip'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	  return ret;
Missing separate debuginfos, use: dnf debuginfo-install pcre-8.44-1.fc31.x86_64 pcre2-10.35-7.fc31.x86_64
(gdb) bt full
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
        set = {__val = {0, 2692997704949376302, 0 <repeats 14 times>}}
        pid = <optimized out>
        tid = <optimized out>
#1  0x00007f558ceb68d9 in __GI_abort () at abort.c:79
        save_stage = 1
        act = 
          {__sigaction_handler = {sa_handler = 0x7ffc8c70e668, sa_sigaction = 0x7ffc8c70e668}, sa_mask = {__val = {4619120, 256, 22616688, 256, 22616688, 140722664698288, 15036909277102294272, 0, 61015296, 32, 0, 0, 23514208, 22483280, 15036909277102294272, 22474080}}, sa_flags = 5, sa_restorer = 0x5}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00000000004513bc in do_coredump () at XError.c:41
        __func__ = "do_coredump"
#3  0x000000000045151d in PrintXErrorAndCoredump (dpy=0x156ed60, error=0x7ffc8c70e8b0, MyName=0x15824d0 "File Picker") at XError.c:89
        msg = "BadAtom (invalid Atom parameter)", '\000' <repeats 223 times>
        suc = 0
        __func__ = "PrintXErrorAndCoredump"
#4  0x0000000000409216 in myErrorHandler (dpy=0x156ed60, event=0x7ffc8c70e8b0) at FvwmScript.c:307
#5  0x00007f558dbfb43b in _XError (dpy=dpy@entry=0x156ed60, rep=rep@entry=0x166cc60) at XlibInt.c:1491
        rtn_val = <optimized out>
        event = 
            {type = 0, xany = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277}, xkey = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, root = 140722664696128, subwindow = 140722664696096, time = 22483280, x = -1938757352, y = 32764, x_root = -1931215847, y_root = 32597, state = 931, keycode = 0, same_screen = -1931215531}, xbutton = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, root = 140722664696128, subwindow = 140722664696096, time = 22483280, x = -1938757352, y = 32764, x_root = -1931215847, y_root = 32597, state = 931, button = 0, same_screen = -1931215531}, xmotion = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, root = 140722664696128, subwindow = 140722664696096, time = 22483280, x = -1938757352, y = 32764, x_root = -1931215847, y_root = 32597, state = 931, is_hint = 0 '\000', same_screen = -1931215531}, xcrossing = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, root = 140722664696128, subwindow = 140722664696096, time = 22483280, x = -1938757352, y = 32764, x_root = -1931215847, y_root = 32597, mode = 931, detail = 0, same_screen = -1931215531, focus = 32597, state = 0}, xfocus = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, mode = -1938757312, detail = 32764}, xexpose = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, x = -1938757312, y = 32764, width = -1938757344, height = 32764, count = 22483280}, xgraphicsexpose = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, drawable = 140722657302277, x = -1938757312, y = 32764, width = -1938757344, height = 32764, count = 22483280, major_code = 0, minor_code = -1938757352}, xnoexpose = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, drawable = 140722657302277, major_code = -1938757312, minor_code = 32764}, xvisibility = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, state = -1938757312}, xcreatewindow = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, parent = 140722657302277, window = 140722664696128, x = -1938757344, y = 32764, width = 22483280, height = 0, border_width = -1938757352, override_redirect = 32764}, xdestroywindow = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128}, xunmap = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, from_configure = -1938757344}, xmap = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, override_redirect = -1938757344}, xmaprequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, parent = 140722657302277, window = 140722664696128}, xreparent = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, parent = 140722664696096, x = 22483280, y = 0, override_redirect = -1938757352}, xconfigure = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, x = -1938757344, y = 32764, width = 22483280, height = 0, border_width = -1938757352, above = 140005412699161, override_redirect = 931}, xgravity = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, x = -1938757344, y = 32764}, xresizerequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, width = -1938757312, height = 32764}, xconfigurerequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, parent = 140722657302277, window = 140722664696128, x = -1938757344, y = 32764, width = 22483280, height = 0, border_width = -1938757352, above = 140005412699161, detail = 931, value_mask = 140005412699477}, xcirculate = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, place = -1938757344}, xcirculaterequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, parent = 140722657302277, window = 140722664696128, place = -1938757344}, xproperty = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, atom = 140722664696128, time = 140722664696096, state = 22483280}, xselectionclear = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, selection = 140722664696128, time = 140722664696096}, xselectionrequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, owner = 140722657302277, requestor = 140722664696128, selection = 140722664696096, target = 22483280, property = 140722664696088, time = 140005412699161}, xselection = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, requestor = 140722657302277, selection = 140722664696128, target = 140722664696096, property = 22483280, time = 140722664696088}, xcolormap = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, colormap = 140722664696128, new = -1938757344, state = 32764}, xclient = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, message_type = 140722664696128, format = -1938757344, data = {b = "P\021W\001\000\000\000\000\030\351p\214\374\177\000\000\031\374", <incomplete sequence \343\214>, s = {4432, 343, 0, 0, -5864, -29584, 32764, 0, -999, -29469}, l = {22483280, 140722664696088, 140005412699161, 931, 140005412699477}}}, xmapping = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, request = -1938757312, first_keycode = 32764, count = -1938757344}, xerror = {type = 0, display = 0x156ed60, resourceid = 0, serial = 931, error_code = 5 '\005', request_code = 23 '\027', minor_code = 0 '\000'}, xkeymap = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, key_vector = "@\351p\214\374\177\000\000 \351p\214\374\177\000\000P\021W\001\000\000\000\000\030\351p\214\374\177\000"}, xgeneric = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, extension = -1946151163, evtype = 32764}, xcookie = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, extension = ---Type <RET> for more, q to quit, c to continue without paging--
1946151163, evtype = 32764, cookie = 2356209984, data = 0x7ffc8c70e920}, pad = {0, 22474080, 0, 931, 140722657302277, 140722664696128, 140722664696096, 22483280, 140722664696088, 140005412699161, 931, 140005412699477, 0, 0, 931, 140722664696128, 0, 140722664696224, 0, 0, 0, 0, 17179869184, 0}}
        async = <optimized out>
        next = <optimized out>
#6  0x00007f558dbf81a7 in handle_error (dpy=dpy@entry=0x156ed60, err=0x166cc60, in_XReply=in_XReply@entry=1) at xcb_io.c:199
        ext = <optimized out>
        ret_code = 0
#7  0x00007f558dbf93b3 in _XReply (dpy=dpy@entry=0x156ed60, rep=rep@entry=0x7ffc8c70ea50, extra=extra@entry=0, discard=discard@entry=1) at xcb_io.c:708
        ret_code = <optimized out>
        error = 0x166cc60
        c = <optimized out>
        reply = 0x0
        current = 0x158c590
        dpy_request = <optimized out>
        __PRETTY_FUNCTION__ = "_XReply"
#8  0x00007f558dbdeef5 in XGetSelectionOwner (dpy=0x156ed60, selection=0) at GetSOwner.c:41
        rep = {type = 0 '\000', pad1 = 5 '\005', sequenceNumber = 931, length = 0, owner = 1507328, pad2 = 0, pad3 = 0, pad4 = 0, pad5 = 0, pad6 = 0}
        req = <optimized out>
#9  0x00000000004125b0 in SendToScript (NbArg=5, TabArg=0x1591160) at Instructions.c:1821
        tempstr = 0x1668fa0 "\020\343U\001"
        Msg = 0x166e3b0 "/home/tmangrow/"
        R = 0x15915f0 "\241\061\062FvwmScript1"
        dest = 0
        j = 5
        myatom = 0
        __func__ = "SendToScript"
#10 0x0000000000409ed2 in ExecBloc (bloc=0x1591060) at FvwmScript.c:546
        i = 0
#11 0x00000000004119cd in IfThen (NbArg=5, TabArg=0x1591030) at Instructions.c:1598
        arg = 
          {0x158ad90 "0", 0x1657c90 "1", 0x420000500000000 <error: Cannot access memory at address 0x420000500000000>, 0x0, 0x156ed60 "", 0xd0add5518d754500 <error: Cannot access memory at address 0xd0add5518d754500>, 0x35 <error: Cannot access memory at address 0x35>, 0x15004d00040004 <error: Cannot access memory at address 0x15004d00040004>, 0x15004d00040004 <error: Cannot access memory at address 0x15004d00040004>, 0x4087d0 <_start> "\363\017\036\372\061\355I\211\321^H\211\342H\203\344\360PTI\307\300PeE"}
        i = 1
        j = 3
        CurrArg = 2
        IdFuncComp = 6
#12 0x0000000000409ed2 in ExecBloc (bloc=0x1591490) at FvwmScript.c:546
        i = 0
#13 0x000000000040ab8f in SendMsg (xobj=0x159f5c0, TypeMsg=-1) at FvwmScript.c:712
        i = 0
#14 0x0000000000423f22 in EvtMousePushButton (xobj=0x159f5c0, EvtButton=0x477f40 <event>) at PushButton.c:250
        event = 
            {type = 5, xany = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019}, xkey = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505998, x = 57, y = 519, x_root = 1032, y_root = 667, state = 256, keycode = 1, same_screen = 1}, xbutton = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505998, x = 57, y = 519, x_root = 1032, y_root = 667, state = 256, button = 1, same_screen = 1}, xmotion = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505998, x = 57, y = 519, x_root = 1032, y_root = 667, state = 256, is_hint = 1 '\001', same_screen = 1}, xcrossing = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505998, x = 57, y = 519, x_root = 1032, y_root = 667, mode = 256, detail = 1, same_screen = 1, focus = 1, state = 256}, xfocus = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, mode = 710, detail = 0}, xexpose = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, x = 710, y = 0, width = 69206021, height = 0, count = 72505998}, xgraphicsexpose = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, drawable = 69206019, x = 710, y = 0, width = 69206021, height = 0, count = 72505998, major_code = 0, minor_code = 57}, xnoexpose = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, drawable = 69206019, major_code = 710--Type <RET> for more, q to quit, c to continue without paging--
, minor_code = 0}, xvisibility = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, state = 710}, xcreatewindow = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, x = 69206021, y = 0, width = 72505998, height = 0, border_width = 57, override_redirect = 519}, xdestroywindow = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710}, xunmap = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, from_configure = 69206021}, xmap = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, override_redirect = 69206021}, xmaprequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710}, xreparent = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, parent = 69206021, x = 72505998, y = 0, override_redirect = 57}, xconfigure = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, x = 69206021, y = 0, width = 72505998, height = 0, border_width = 57, above = 2864743187464, override_redirect = 256}, xgravity = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, x = 69206021, y = 0}, xresizerequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, width = 710, height = 0}, xconfigurerequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, x = 69206021, y = 0, width = 72505998, height = 0, border_width = 57, above = 2864743187464, detail = 256, value_mask = 4294967297}, xcirculate = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, place = 69206021}, xcirculaterequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, place = 69206021}, xproperty = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, atom = 710, time = 69206021, state = 72505998}, xselectionclear = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, selection = 710, time = 69206021}, xselectionrequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, owner = 69206019, requestor = 710, selection = 69206021, target = 72505998, property = 2229088026681, time = 2864743187464}, xselection = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, requestor = 69206019, selection = 710, target = 69206021, property = 72505998, time = 2229088026681}, xcolormap = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, colormap = 710, new = 69206021, state = 0}, xclient = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, message_type = 710, format = 69206021, data = {b = "\216ZR\004\000\000\000\000\071\000\000\000\a\002\000\000\b\004\000", s = {23182, 1106, 0, 0, 57, 0, 519, 0, 1032, 0}, l = {72505998, 2229088026681, 2864743187464, 4294967552, 4294967297}}}, xmapping = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, request = 710, first_keycode = 0, count = 69206021}, xerror = {type = 5, display = 0x394, resourceid = 0, serial = 22474080, error_code = 3 '\003', request_code = 0 '\000', minor_code = 32 ' '}, xkeymap = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, key_vector = "\306\002\000\000\000\000\000\000\005\000 \004\000\000\000\000\216ZR\004\000\000\000\000\071\000\000\000\a\002\000"}, xgeneric = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, extension = 69206019, evtype = 0}, xcookie = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, extension = 69206019, evtype = 0, cookie = 710, data = 0x4200005}, pad = {140003048947717, 916, 0, 22474080, 69206019, 710, 69206021, 72505998, 2229088026681, 2864743187464, 4294967552, 4294967297, 256, 0, 593, 23519360, 140005414877760, 32, 48, 23518464, 3, 23518608, 0, 0}}
        End = 0
        modif = 256
        x1 = 1032
        x2 = 57
        y1 = 667
        y2 = 519
        i = 32
        Win1 = 710
        Win2 = 69206021
        WinPop = 22474080
        WinBut = 69206021
        In = 1
        str = 0x477f40 <event> "\004"
        x = 0
        y = 0
        hOpt = 32764
        yMenu = 0
        hMenu = -1938756288
        wMenu = 22474080
        oldvalue = 0
        newvalue = 4685632
        mask = 4523599
        Attr = 
          {background_pixmap = 22483304, background_pixel = 0, border_pixmap = 0, border_pixel = 140005412704260, bit_gravity = 1, win_gravity = 0, backing_store = 22474080, backing_planes = 22478816, backing_pixel = 0, save_under = 0, event_mask = 140005427087134, do_not_propagate_mask = 140722664697024, override_redirect = 22474080, colormap = 22474080, cursor = 140005427087517}
#15 0x000000000040bf34 in ReadXServer () at FvwmScript.c:1062
        event = 
            {type = 4, xany = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019}, xkey = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505882, x = 57, y = 519, x_root = 1032, y_root = 667, state = 0, keycode = 1, same_screen = 1}, xbutton = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505882, x = 57, y = 519, x_root = 1032, y_root = 667, state = 0, button = 1, same_screen = 1}, xmotion = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505882, x = 57, y = 519, x_root = 1032, y_root = 667, state = 0, is_hint = 1 '\001', same_screen = 1}, xcrossing = {type =--Type <RET> for more, q to quit, c to continue without paging--
 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505882, x = 57, y = 519, x_root = 1032, y_root = 667, mode = 0, detail = 1, same_screen = 1, focus = 1, state = 0}, xfocus = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, mode = 710, detail = 0}, xexpose = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, x = 710, y = 0, width = 69206021, height = 0, count = 72505882}, xgraphicsexpose = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, drawable = 69206019, x = 710, y = 0, width = 69206021, height = 0, count = 72505882, major_code = 0, minor_code = 57}, xnoexpose = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, drawable = 69206019, major_code = 710, minor_code = 0}, xvisibility = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, state = 710}, xcreatewindow = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, x = 69206021, y = 0, width = 72505882, height = 0, border_width = 57, override_redirect = 519}, xdestroywindow = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710}, xunmap = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, from_configure = 69206021}, xmap = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, override_redirect = 69206021}, xmaprequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710}, xreparent = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, parent = 69206021, x = 72505882, y = 0, override_redirect = 57}, xconfigure = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, x = 69206021, y = 0, width = 72505882, height = 0, border_width = 57, above = 2864743187464, override_redirect = 0}, xgravity = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, x = 69206021, y = 0}, xresizerequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, width = 710, height = 0}, xconfigurerequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, x = 69206021, y = 0, width = 72505882, height = 0, border_width = 57, above = 2864743187464, detail = 0, value_mask = 4294967297}, xcirculate = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, place = 69206021}, xcirculaterequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, place = 69206021}, xproperty = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, atom = 710, time = 69206021, state = 72505882}, xselectionclear = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, selection = 710, time = 69206021}, xselectionrequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, owner = 69206019, requestor = 710, selection = 69206021, target = 72505882, property = 2229088026681, time = 2864743187464}, xselection = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, requestor = 69206019, selection = 710, target = 69206021, property = 72505882, time = 2229088026681}, xcolormap = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, colormap = 710, new = 69206021, state = 0}, xclient = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, message_type = 710, format = 69206021, data = {b = "\032ZR\004\000\000\000\000\071\000\000\000\a\002\000\000\b\004\000", s = {23066, 1106, 0, 0, 57, 0, 519, 0, 1032, 0}, l = {72505882, 2229088026681, 2864743187464, 4294967296, 4294967297}}}, xmapping = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, request = 710, first_keycode = 0, count = 69206021}, xerror = {type = 4, display = 0x386, resourceid = 0, serial = 22474080, error_code = 3 '\003', request_code = 0 '\000', minor_code = 32 ' '}, xkeymap = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, key_vector = "\306\002\000\000\000\000\000\000\005\000 \004\000\000\000\000\032ZR\004\000\000\000\000\071\000\000\000\a\002\000"}, xgeneric = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, extension = 69206019, evtype = 0}, xcookie = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, extension = 69206019, evtype = 0, cookie = 710, data = 0x4200005}, pad = {140003048947716, 902, 0, 22474080, 69206019, 710, 69206021, 72505882, 2229088026681, 2864743187464, 4294967296, 4294967297, 140003048947712, 64, 48, 23518624, 3, 23518720, 0, 0, 321, 23519360, 140005414877760, 32}}
        evnt_sel = 
            {type = 0, xany = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0}, xkey = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, keycode = 0, same_screen = 0}, xbutton = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, button = 0, same_screen = 0}, xmotion = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, is_hint = 0 '\000', same_screen = 0}, xcrossing = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, mode = 0, detail = 0, same_screen = 0, focus = 0, state = 0}, xfocus = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, mode = 0, detail = 0}, xexpose = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, x = 0, y = 0, width = 0, height = 0, count = 0}, xgraphicsexpose = {type = 0, serial = 0, send_event = 0, display = 0x0, drawable = 0, x = 0, y = 0, width = 0, height = 0, count = 0, major_code = 0, minor_code = 0}, xnoexpose = {type = 0, serial = 0, send_event = 0, display = 0x0, drawable = 0, major_code = 0, minor_code = 0}, xvisibility = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, state = 0}, xcreatewindow = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, x = 0, y = 0, width = 0, height = 0, border_width = 0, override_redirect = 0}, xdestroywindow = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0}, xunmap = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, from_configure = 0}, xmap = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, override_redirect = 0}, xmaprequest = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0}, xreparent = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, parent = 0, x = 0, y = 0, override_redirect = 0}, xconfigure = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, x = 0, y = 0, width = 0, height = 0, border_width = 0, above = 0, override_redirect = 0}, xgravity = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, x = 0, y = 0}, xresizerequest = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, width = 0, height = 0}, xconfigurerequest = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, x = 0, y = 0, width = 0, height = 0, border_width = 0, above = 0, detail = 0, value_mask = 0}, xcirculate = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, place = 0}, xcirculaterequest = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, place = 0}, xproperty = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, atom = 0, time = 0, state = 0}, xselectionclear = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, selection = 0, time = 0}, xselectionrequest = {type = 0, serial = 0, send_event = 0, display = 0x0, owner = 0, requestor = 0, selection = 0, target = 0, property = 0, time = 0}, xselection = {type = 0, serial = 0, send_event = 0, display = 0x0, requestor = 0, selection = 0, target = 0, property = 0, time = 0}, xcolormap = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, colormap = 0, new = 0, state = 0}, xclient = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, message_type = 0, format = 0, data = {b = '\000' <repeats 19 times>, s = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, l = {0, 0, 0, 0, 0}}}, xmapping = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, request = 0, first_keycode = 0, count = 0}, xerror = {type = 0, display = 0x0, resourceid = 0, serial = 0, error_code = 0 '\000', request_code = 0 '\000', minor_code = 0 '\000'}, xkeymap = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, key_vector = '\000' <repeats 31 times>}, xgeneric = {type = 0, serial = 0, send_event = 0, display = 0x0, extension = 0, evtype = 0}, xcookie = {type = 0, serial = 0, send_event = 0, display = 0x0, extension = 0, evtype = 0, cookie = 0, data = 0x0}, pad = {0 <repeats 24 times>}}
        i = 0
        isTab = 0
        octet = 0x156cbf0 "\306\002"
        ks = 4527884
--Type <RET> for more, q to quit, c to continue without paging--
        buf = "\000\000\000\000\000\000\000\000\000"
        find = 0
        action = 0x0
        ex = 22474080
        ey = 32764
        ex2 = -1938755824
        ey2 = 0
        tmp = {res_name = 0x0, res_class = 0x7f558dbf8bb1 <_XEventsQueued+113> "\205\300t\304H\211\357\350\063\217\375\377\017\037"}
#16 0x000000000040c5b9 in MainLoop () at FvwmScript.c:1198
        in_fdset = {fds_bits = {8, 0 <repeats 15 times>}}
        i = 14
        tv = {tv_sec = 0, tv_usec = 0}
        ptv = 0x0
        now = {tv_sec = 1607967953, tv_usec = 518979}
        last_periodic = {tv_sec = 22474080, tv_usec = 140005427090293}
        delta = 1445488446428686
        fd_width = 5
        fsm_pending = 0
#17 0x000000000040d449 in main (argc=8, argv=0x7ffc8c70f1b8) at FvwmScript.c:1479
        IsFather = 0
        i = 2
        __func__ = "main"
(gdb) quit

FvwmScript.zip

@NsCDE
Copy link
Contributor Author

NsCDE commented Dec 14, 2020

@NsCDE
Copy link
Contributor Author

NsCDE commented Dec 14, 2020

Not detailed ad Fedora, but here is the same thing from OpenBSD:

coredumpctl debug 42470

       PID: 42470 (FvwmScript)
       UID: 1002 (tmangrow)
       GID: 100 (users)
    Signal: 6 (ABRT)
 Timestamp: Mon 2020-12-14 18:45:53 CET (24s ago)

Command Line: /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript 47 4 none 0 8 FilePicker �12FvwmScript10
Executable: /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript
Control Group: /user.slice/user-1002.slice/session-16.scope
Unit: session-16.scope
Slice: user-1002.slice
Session: 16
Owner UID: 1002 (tmangrow)
Boot ID: ee7a692e9e134ee7a9de16678e2acdb7
Machine ID: c7faf2a81e314ce4a79e7d9bb3df7bb6
Hostname: testbox10
Storage: /var/lib/systemd/coredump/core.FvwmScript.1002.ee7a692e9e134ee7a9de16678e2acdb7.42470.1607967953000000.lz4
Message: Process 42470 (FvwmScript) of user 1002 dumped core.

            Stack trace of thread 42470:
            #0  0x00007f558cecd625 __GI_raise (libc.so.6)
            #1  0x00007f558ceb68d9 __GI_abort (libc.so.6)
            #2  0x00000000004513bc do_coredump (FvwmScript)
            #3  0x000000000045151d PrintXErrorAndCoredump (FvwmScript)
            #4  0x0000000000409216 myErrorHandler (FvwmScript)
            #5  0x00007f558dbfb43b _XError (libX11.so.6)
            #6  0x00007f558dbf81a7 handle_error (libX11.so.6)
            #7  0x00007f558dbf93b3 _XReply (libX11.so.6)
            #8  0x00007f558dbdeef5 XGetSelectionOwner (libX11.so.6)
            #9  0x00000000004125b0 SendToScript (FvwmScript)
            #10 0x0000000000409ed2 ExecBloc (FvwmScript)
            #11 0x00000000004119cd IfThen (FvwmScript)
            #12 0x0000000000409ed2 ExecBloc (FvwmScript)
            #13 0x000000000040ab8f SendMsg (FvwmScript)
            #14 0x0000000000423f22 EvtMousePushButton (FvwmScript)
            #15 0x000000000040bf34 ReadXServer (FvwmScript)
            #16 0x000000000040c5b9 MainLoop (FvwmScript)
            #17 0x000000000040d449 main (FvwmScript)
            #18 0x00007f558ceb81a3 __libc_start_main (libc.so.6)
            #19 0x00000000004087fe _start (FvwmScript)

GNU gdb (GDB) Fedora 8.3.50.20190824-30.fc31
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript...
[New LWP 42470]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/opt/fvwm3/libexec/fvwm3/1.0.1/FvwmScript 47 4 none 0 8 FilePicker �12FvwmScrip'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 return ret;
Missing separate debuginfos, use: dnf debuginfo-install pcre-8.44-1.fc31.x86_64 pcre2-10.35-7.fc31.x86_64
(gdb) bt full
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
set = {__val = {0, 2692997704949376302, 0 <repeats 14 times>}}
pid =
tid =
#1 0x00007f558ceb68d9 in __GI_abort () at abort.c:79
save_stage = 1
act =
{__sigaction_handler = {sa_handler = 0x7ffc8c70e668, sa_sigaction = 0x7ffc8c70e668}, sa_mask = {__val = {4619120, 256, 22616688, 256, 22616688, 140722664698288, 15036909277102294272, 0, 61015296, 32, 0, 0, 23514208, 22483280, 15036909277102294272, 22474080}}, sa_flags = 5, sa_restorer = 0x5}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00000000004513bc in do_coredump () at XError.c:41
func = "do_coredump"
#3 0x000000000045151d in PrintXErrorAndCoredump (dpy=0x156ed60, error=0x7ffc8c70e8b0, MyName=0x15824d0 "File Picker") at XError.c:89
msg = "BadAtom (invalid Atom parameter)", '\000' <repeats 223 times>
suc = 0
func = "PrintXErrorAndCoredump"
#4 0x0000000000409216 in myErrorHandler (dpy=0x156ed60, event=0x7ffc8c70e8b0) at FvwmScript.c:307
#5 0x00007f558dbfb43b in _XError (dpy=dpy@entry=0x156ed60, rep=rep@entry=0x166cc60) at XlibInt.c:1491
rtn_val =
event =
{type = 0, xany = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277}, xkey = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, root = 140722664696128, subwindow = 140722664696096, time = 22483280, x = -1938757352, y = 32764, x_root = -1931215847, y_root = 32597, state = 931, keycode = 0, same_screen = -1931215531}, xbutton = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, root = 140722664696128, subwindow = 140722664696096, time = 22483280, x = -1938757352, y = 32764, x_root = -1931215847, y_root = 32597, state = 931, button = 0, same_screen = -1931215531}, xmotion = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, root = 140722664696128, subwindow = 140722664696096, time = 22483280, x = -1938757352, y = 32764, x_root = -1931215847, y_root = 32597, state = 931, is_hint = 0 '\000', same_screen = -1931215531}, xcrossing = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, root = 140722664696128, subwindow = 140722664696096, time = 22483280, x = -1938757352, y = 32764, x_root = -1931215847, y_root = 32597, mode = 931, detail = 0, same_screen = -1931215531, focus = 32597, state = 0}, xfocus = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, mode = -1938757312, detail = 32764}, xexpose = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, x = -1938757312, y = 32764, width = -1938757344, height = 32764, count = 22483280}, xgraphicsexpose = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, drawable = 140722657302277, x = -1938757312, y = 32764, width = -1938757344, height = 32764, count = 22483280, major_code = 0, minor_code = -1938757352}, xnoexpose = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, drawable = 140722657302277, major_code = -1938757312, minor_code = 32764}, xvisibility = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, state = -1938757312}, xcreatewindow = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, parent = 140722657302277, window = 140722664696128, x = -1938757344, y = 32764, width = 22483280, height = 0, border_width = -1938757352, override_redirect = 32764}, xdestroywindow = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128}, xunmap = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, from_configure = -1938757344}, xmap = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, override_redirect = -1938757344}, xmaprequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, parent = 140722657302277, window = 140722664696128}, xreparent = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, parent = 140722664696096, x = 22483280, y = 0, override_redirect = -1938757352}, xconfigure = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, x = -1938757344, y = 32764, width = 22483280, height = 0, border_width = -1938757352, above = 140005412699161, override_redirect = 931}, xgravity = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, x = -1938757344, y = 32764}, xresizerequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, width = -1938757312, height = 32764}, xconfigurerequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, parent = 140722657302277, window = 140722664696128, x = -1938757344, y = 32764, width = 22483280, height = 0, border_width = -1938757352, above = 140005412699161, detail = 931, value_mask = 140005412699477}, xcirculate = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, event = 140722657302277, window = 140722664696128, place = -1938757344}, xcirculaterequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, parent = 140722657302277, window = 140722664696128, place = -1938757344}, xproperty = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, atom = 140722664696128, time = 140722664696096, state = 22483280}, xselectionclear = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, selection = 140722664696128, time = 140722664696096}, xselectionrequest = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, owner = 140722657302277, requestor = 140722664696128, selection = 140722664696096, target = 22483280, property = 140722664696088, time = 140005412699161}, xselection = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, requestor = 140722657302277, selection = 140722664696128, target = 140722664696096, property = 22483280, time = 140722664696088}, xcolormap = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, colormap = 140722664696128, new = -1938757344, state = 32764}, xclient = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, message_type = 140722664696128, format = -1938757344, data = {b = "P\021W\001\000\000\000\000\030\351p\214\374\177\000\000\031\374", <incomplete sequence \343\214>, s = {4432, 343, 0, 0, -5864, -29584, 32764, 0, -999, -29469}, l = {22483280, 140722664696088, 140005412699161, 931, 140005412699477}}}, xmapping = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, request = -1938757312, first_keycode = 32764, count = -1938757344}, xerror = {type = 0, display = 0x156ed60, resourceid = 0, serial = 931, error_code = 5 '\005', request_code = 23 '\027', minor_code = 0 '\000'}, xkeymap = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, window = 140722657302277, key_vector = "@\351p\214\374\177\000\000 \351p\214\374\177\000\000P\021W\001\000\000\000\000\030\351p\214\374\177\000"}, xgeneric = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, extension = -1946151163, evtype = 32764}, xcookie = {type = 0, serial = 22474080, send_event = 0, display = 0x3a3, extension = ---Type for more, q to quit, c to continue without paging--
1946151163, evtype = 32764, cookie = 2356209984, data = 0x7ffc8c70e920}, pad = {0, 22474080, 0, 931, 140722657302277, 140722664696128, 140722664696096, 22483280, 140722664696088, 140005412699161, 931, 140005412699477, 0, 0, 931, 140722664696128, 0, 140722664696224, 0, 0, 0, 0, 17179869184, 0}}
async =
next =
#6 0x00007f558dbf81a7 in handle_error (dpy=dpy@entry=0x156ed60, err=0x166cc60, in_XReply=in_XReply@entry=1) at xcb_io.c:199
ext =
ret_code = 0
#7 0x00007f558dbf93b3 in _XReply (dpy=dpy@entry=0x156ed60, rep=rep@entry=0x7ffc8c70ea50, extra=extra@entry=0, discard=discard@entry=1) at xcb_io.c:708
ret_code =
error = 0x166cc60
c =
reply = 0x0
current = 0x158c590
dpy_request =
PRETTY_FUNCTION = "_XReply"
#8 0x00007f558dbdeef5 in XGetSelectionOwner (dpy=0x156ed60, selection=0) at GetSOwner.c:41
rep = {type = 0 '\000', pad1 = 5 '\005', sequenceNumber = 931, length = 0, owner = 1507328, pad2 = 0, pad3 = 0, pad4 = 0, pad5 = 0, pad6 = 0}
req =
#9 0x00000000004125b0 in SendToScript (NbArg=5, TabArg=0x1591160) at Instructions.c:1821
tempstr = 0x1668fa0 "\020\343U\001"
Msg = 0x166e3b0 "/home/tmangrow/"
R = 0x15915f0 "\241\061\062FvwmScript1"
dest = 0
j = 5
myatom = 0
func = "SendToScript"
#10 0x0000000000409ed2 in ExecBloc (bloc=0x1591060) at FvwmScript.c:546
i = 0
#11 0x00000000004119cd in IfThen (NbArg=5, TabArg=0x1591030) at Instructions.c:1598
arg =
{0x158ad90 "0", 0x1657c90 "1", 0x420000500000000 <error: Cannot access memory at address 0x420000500000000>, 0x0, 0x156ed60 "", 0xd0add5518d754500 <error: Cannot access memory at address 0xd0add5518d754500>, 0x35 <error: Cannot access memory at address 0x35>, 0x15004d00040004 <error: Cannot access memory at address 0x15004d00040004>, 0x15004d00040004 <error: Cannot access memory at address 0x15004d00040004>, 0x4087d0 <_start> "\363\017\036\372\061\355I\211\321^H\211\342H\203\344\360PTI\307\300PeE"}
i = 1
j = 3
CurrArg = 2
IdFuncComp = 6
#12 0x0000000000409ed2 in ExecBloc (bloc=0x1591490) at FvwmScript.c:546
i = 0
#13 0x000000000040ab8f in SendMsg (xobj=0x159f5c0, TypeMsg=-1) at FvwmScript.c:712
i = 0
#14 0x0000000000423f22 in EvtMousePushButton (xobj=0x159f5c0, EvtButton=0x477f40 ) at PushButton.c:250
event =
{type = 5, xany = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019}, xkey = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505998, x = 57, y = 519, x_root = 1032, y_root = 667, state = 256, keycode = 1, same_screen = 1}, xbutton = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505998, x = 57, y = 519, x_root = 1032, y_root = 667, state = 256, button = 1, same_screen = 1}, xmotion = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505998, x = 57, y = 519, x_root = 1032, y_root = 667, state = 256, is_hint = 1 '\001', same_screen = 1}, xcrossing = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505998, x = 57, y = 519, x_root = 1032, y_root = 667, mode = 256, detail = 1, same_screen = 1, focus = 1, state = 256}, xfocus = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, mode = 710, detail = 0}, xexpose = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, x = 710, y = 0, width = 69206021, height = 0, count = 72505998}, xgraphicsexpose = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, drawable = 69206019, x = 710, y = 0, width = 69206021, height = 0, count = 72505998, major_code = 0, minor_code = 57}, xnoexpose = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, drawable = 69206019, major_code = 710--Type for more, q to quit, c to continue without paging--
, minor_code = 0}, xvisibility = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, state = 710}, xcreatewindow = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, x = 69206021, y = 0, width = 72505998, height = 0, border_width = 57, override_redirect = 519}, xdestroywindow = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710}, xunmap = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, from_configure = 69206021}, xmap = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, override_redirect = 69206021}, xmaprequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710}, xreparent = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, parent = 69206021, x = 72505998, y = 0, override_redirect = 57}, xconfigure = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, x = 69206021, y = 0, width = 72505998, height = 0, border_width = 57, above = 2864743187464, override_redirect = 256}, xgravity = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, x = 69206021, y = 0}, xresizerequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, width = 710, height = 0}, xconfigurerequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, x = 69206021, y = 0, width = 72505998, height = 0, border_width = 57, above = 2864743187464, detail = 256, value_mask = 4294967297}, xcirculate = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, place = 69206021}, xcirculaterequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, place = 69206021}, xproperty = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, atom = 710, time = 69206021, state = 72505998}, xselectionclear = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, selection = 710, time = 69206021}, xselectionrequest = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, owner = 69206019, requestor = 710, selection = 69206021, target = 72505998, property = 2229088026681, time = 2864743187464}, xselection = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, requestor = 69206019, selection = 710, target = 69206021, property = 72505998, time = 2229088026681}, xcolormap = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, colormap = 710, new = 69206021, state = 0}, xclient = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, message_type = 710, format = 69206021, data = {b = "\216ZR\004\000\000\000\000\071\000\000\000\a\002\000\000\b\004\000", s = {23182, 1106, 0, 0, 57, 0, 519, 0, 1032, 0}, l = {72505998, 2229088026681, 2864743187464, 4294967552, 4294967297}}}, xmapping = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, request = 710, first_keycode = 0, count = 69206021}, xerror = {type = 5, display = 0x394, resourceid = 0, serial = 22474080, error_code = 3 '\003', request_code = 0 '\000', minor_code = 32 ' '}, xkeymap = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, window = 69206019, key_vector = "\306\002\000\000\000\000\000\000\005\000 \004\000\000\000\000\216ZR\004\000\000\000\000\071\000\000\000\a\002\000"}, xgeneric = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, extension = 69206019, evtype = 0}, xcookie = {type = 5, serial = 916, send_event = 0, display = 0x156ed60, extension = 69206019, evtype = 0, cookie = 710, data = 0x4200005}, pad = {140003048947717, 916, 0, 22474080, 69206019, 710, 69206021, 72505998, 2229088026681, 2864743187464, 4294967552, 4294967297, 256, 0, 593, 23519360, 140005414877760, 32, 48, 23518464, 3, 23518608, 0, 0}}
End = 0
modif = 256
x1 = 1032
x2 = 57
y1 = 667
y2 = 519
i = 32
Win1 = 710
Win2 = 69206021
WinPop = 22474080
WinBut = 69206021
In = 1
str = 0x477f40 "\004"
x = 0
y = 0
hOpt = 32764
yMenu = 0
hMenu = -1938756288
wMenu = 22474080
oldvalue = 0
newvalue = 4685632
mask = 4523599
Attr =
{background_pixmap = 22483304, background_pixel = 0, border_pixmap = 0, border_pixel = 140005412704260, bit_gravity = 1, win_gravity = 0, backing_store = 22474080, backing_planes = 22478816, backing_pixel = 0, save_under = 0, event_mask = 140005427087134, do_not_propagate_mask = 140722664697024, override_redirect = 22474080, colormap = 22474080, cursor = 140005427087517}
#15 0x000000000040bf34 in ReadXServer () at FvwmScript.c:1062
event =
{type = 4, xany = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019}, xkey = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505882, x = 57, y = 519, x_root = 1032, y_root = 667, state = 0, keycode = 1, same_screen = 1}, xbutton = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505882, x = 57, y = 519, x_root = 1032, y_root = 667, state = 0, button = 1, same_screen = 1}, xmotion = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505882, x = 57, y = 519, x_root = 1032, y_root = 667, state = 0, is_hint = 1 '\001', same_screen = 1}, xcrossing = {type =--Type for more, q to quit, c to continue without paging--
4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, root = 710, subwindow = 69206021, time = 72505882, x = 57, y = 519, x_root = 1032, y_root = 667, mode = 0, detail = 1, same_screen = 1, focus = 1, state = 0}, xfocus = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, mode = 710, detail = 0}, xexpose = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, x = 710, y = 0, width = 69206021, height = 0, count = 72505882}, xgraphicsexpose = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, drawable = 69206019, x = 710, y = 0, width = 69206021, height = 0, count = 72505882, major_code = 0, minor_code = 57}, xnoexpose = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, drawable = 69206019, major_code = 710, minor_code = 0}, xvisibility = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, state = 710}, xcreatewindow = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, x = 69206021, y = 0, width = 72505882, height = 0, border_width = 57, override_redirect = 519}, xdestroywindow = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710}, xunmap = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, from_configure = 69206021}, xmap = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, override_redirect = 69206021}, xmaprequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710}, xreparent = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, parent = 69206021, x = 72505882, y = 0, override_redirect = 57}, xconfigure = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, x = 69206021, y = 0, width = 72505882, height = 0, border_width = 57, above = 2864743187464, override_redirect = 0}, xgravity = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, x = 69206021, y = 0}, xresizerequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, width = 710, height = 0}, xconfigurerequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, x = 69206021, y = 0, width = 72505882, height = 0, border_width = 57, above = 2864743187464, detail = 0, value_mask = 4294967297}, xcirculate = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, event = 69206019, window = 710, place = 69206021}, xcirculaterequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, parent = 69206019, window = 710, place = 69206021}, xproperty = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, atom = 710, time = 69206021, state = 72505882}, xselectionclear = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, selection = 710, time = 69206021}, xselectionrequest = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, owner = 69206019, requestor = 710, selection = 69206021, target = 72505882, property = 2229088026681, time = 2864743187464}, xselection = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, requestor = 69206019, selection = 710, target = 69206021, property = 72505882, time = 2229088026681}, xcolormap = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, colormap = 710, new = 69206021, state = 0}, xclient = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, message_type = 710, format = 69206021, data = {b = "\032ZR\004\000\000\000\000\071\000\000\000\a\002\000\000\b\004\000", s = {23066, 1106, 0, 0, 57, 0, 519, 0, 1032, 0}, l = {72505882, 2229088026681, 2864743187464, 4294967296, 4294967297}}}, xmapping = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, request = 710, first_keycode = 0, count = 69206021}, xerror = {type = 4, display = 0x386, resourceid = 0, serial = 22474080, error_code = 3 '\003', request_code = 0 '\000', minor_code = 32 ' '}, xkeymap = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, window = 69206019, key_vector = "\306\002\000\000\000\000\000\000\005\000 \004\000\000\000\000\032ZR\004\000\000\000\000\071\000\000\000\a\002\000"}, xgeneric = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, extension = 69206019, evtype = 0}, xcookie = {type = 4, serial = 902, send_event = 0, display = 0x156ed60, extension = 69206019, evtype = 0, cookie = 710, data = 0x4200005}, pad = {140003048947716, 902, 0, 22474080, 69206019, 710, 69206021, 72505882, 2229088026681, 2864743187464, 4294967296, 4294967297, 140003048947712, 64, 48, 23518624, 3, 23518720, 0, 0, 321, 23519360, 140005414877760, 32}}
evnt_sel =
{type = 0, xany = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0}, xkey = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, keycode = 0, same_screen = 0}, xbutton = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, button = 0, same_screen = 0}, xmotion = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, is_hint = 0 '\000', same_screen = 0}, xcrossing = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, mode = 0, detail = 0, same_screen = 0, focus = 0, state = 0}, xfocus = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, mode = 0, detail = 0}, xexpose = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, x = 0, y = 0, width = 0, height = 0, count = 0}, xgraphicsexpose = {type = 0, serial = 0, send_event = 0, display = 0x0, drawable = 0, x = 0, y = 0, width = 0, height = 0, count = 0, major_code = 0, minor_code = 0}, xnoexpose = {type = 0, serial = 0, send_event = 0, display = 0x0, drawable = 0, major_code = 0, minor_code = 0}, xvisibility = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, state = 0}, xcreatewindow = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, x = 0, y = 0, width = 0, height = 0, border_width = 0, override_redirect = 0}, xdestroywindow = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0}, xunmap = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, from_configure = 0}, xmap = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, override_redirect = 0}, xmaprequest = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0}, xreparent = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, parent = 0, x = 0, y = 0, override_redirect = 0}, xconfigure = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, x = 0, y = 0, width = 0, height = 0, border_width = 0, above = 0, override_redirect = 0}, xgravity = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, x = 0, y = 0}, xresizerequest = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, width = 0, height = 0}, xconfigurerequest = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, x = 0, y = 0, width = 0, height = 0, border_width = 0, above = 0, detail = 0, value_mask = 0}, xcirculate = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, place = 0}, xcirculaterequest = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, place = 0}, xproperty = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, atom = 0, time = 0, state = 0}, xselectionclear = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, selection = 0, time = 0}, xselectionrequest = {type = 0, serial = 0, send_event = 0, display = 0x0, owner = 0, requestor = 0, selection = 0, target = 0, property = 0, time = 0}, xselection = {type = 0, serial = 0, send_event = 0, display = 0x0, requestor = 0, selection = 0, target = 0, property = 0, time = 0}, xcolormap = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, colormap = 0, new = 0, state = 0}, xclient = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, message_type = 0, format = 0, data = {b = '\000' <repeats 19 times>, s = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, l = {0, 0, 0, 0, 0}}}, xmapping = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, request = 0, first_keycode = 0, count = 0}, xerror = {type = 0, display = 0x0, resourceid = 0, serial = 0, error_code = 0 '\000', request_code = 0 '\000', minor_code = 0 '\000'}, xkeymap = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, key_vector = '\000' <repeats 31 times>}, xgeneric = {type = 0, serial = 0, send_event = 0, display = 0x0, extension = 0, evtype = 0}, xcookie = {type = 0, serial = 0, send_event = 0, display = 0x0, extension = 0, evtype = 0, cookie = 0, data = 0x0}, pad = {0 <repeats 24 times>}}
i = 0
isTab = 0
octet = 0x156cbf0 "\306\002"
ks = 4527884
--Type for more, q to quit, c to continue without paging--
buf = "\000\000\000\000\000\000\000\000\000"
find = 0
action = 0x0
ex = 22474080
ey = 32764
ex2 = -1938755824
ey2 = 0
tmp = {res_name = 0x0, res_class = 0x7f558dbf8bb1 <_XEventsQueued+113> "\205\300t\304H\211\357\350\063\217\375\377\017\037"}
#16 0x000000000040c5b9 in MainLoop () at FvwmScript.c:1198
in_fdset = {fds_bits = {8, 0 <repeats 15 times>}}
i = 14
tv = {tv_sec = 0, tv_usec = 0}
ptv = 0x0
now = {tv_sec = 1607967953, tv_usec = 518979}
last_periodic = {tv_sec = 22474080, tv_usec = 140005427090293}
delta = 1445488446428686
fd_width = 5
fsm_pending = 0
#17 0x000000000040d449 in main (argc=8, argv=0x7ffc8c70f1b8) at FvwmScript.c:1479
IsFather = 0
i = 2
func = "main"
(gdb) quit

@NsCDE
Copy link
Contributor Author

NsCDE commented Dec 14, 2020

Not such detailed as Fedora, but here is the same thing on OpenBSD. It coredumps every time.

(gdb) where
#0  thrkill () at /tmp/-:3
#1  0x000009dd8971caee in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51
#2  0x000009dae5263dfe in do_coredump () at XError.c:41
#3  0x000009dae5263fb3 in PrintXErrorAndCoredump (dpy=0x9dde2a4d000, error=0x7f7ffffdfdc0, MyName=Variable "MyName" is not available.
) at XError.c:89
#4  0x000009dae522c868 in myErrorHandler (dpy=0x9dde2a4d000, event=0x7f7ffffdfdc0) at FvwmScript.c:307
#5  0x000009dd56f19de6 in _XError () from /usr/X11R6/lib/libX11.so.17.0
#6  0x000009dd56f16a68 in _XReply () from /usr/X11R6/lib/libX11.so.17.0
#7  0x000009dd56ef6cdf in XGetSelectionOwner () from /usr/X11R6/lib/libX11.so.17.0
#8  0x000009dae5230773 in SendToScript (NbArg=Variable "NbArg" is not available.
) at Instructions.c:1821
#9  0x000009dae522aaad in ExecBloc (bloc=0x9dd542e6400) at FvwmScript.c:546
#10 0x000009dae523204a in IfThen (NbArg=Variable "NbArg" is not available.
) at Instructions.c:1598
#11 0x000009dae522aaad in ExecBloc (bloc=0x9dd81ce2b20) at FvwmScript.c:546
#12 0x000009dae522ab45 in SendMsg (xobj=0x9dd44a31c00, TypeMsg=-1) at FvwmScript.c:712
#13 0x000009dae523a9c2 in EvtMousePushButton (xobj=0x9dd44a31c00, EvtButton=Variable "EvtButton" is not available.
) at PushButton.c:250
#14 0x000009dae522cfbc in ReadXServer () at FvwmScript.c:1062
#15 0x000009dae522d80f in MainLoop () at FvwmScript.c:1198
#16 0x000009dae522e0ea in main (argc=8, argv=0x7f7ffffe0718) at FvwmScript.c:1479
Current language:  auto; currently asm

ThomasAdam added a commit that referenced this issue Dec 14, 2020
Ensure the malloc()d space to the string is computed using its length
and not some random magic number.

Fixes #356
@NsCDE
Copy link
Contributor Author

NsCDE commented Dec 14, 2020

Here are differencies between ta/openbsd-fixes from Nov 30 2020 and current master in FvwmScript.c and Instructions.c:

--- fvwm3/modules/FvwmScript/Instructions.c     pon pro 14 22:00:43 2020
+++ fvwm3-good/modules/FvwmScript/Instructions.c        pon stu 30 20:43:16 2020
@@ -19,7 +19,6 @@
 #include "libs/fvwmsignal.h"
 #include "libs/ftime.h"
 #include "libs/FGettext.h"
-#include "libs/FEvent.h"
 #include "libs/Bindings.h"
 #include "libs/charmap.h"
 #include "libs/wcontext.h"
@@ -85,7 +84,7 @@
   FvwmUserDir = getenv("FVWM_USERDIR");
   if (FvwmUserDir == NULL)
   {
-    xasprintf(&FvwmUserDir, "%s/.fvwm", home_dir);
+    FvwmUserDir = fxstrdup(CatString2(home_dir, "/.fvwm"));
   }
 }
 
@@ -1871,9 +1870,8 @@
     free(tmp);
   }
 
-  xasprintf(&tmp, "%s %s", widget, sig);
-  xasprintf(&action, "%s %s", tmp, str);
-
+  tmp = fxstrdup(CatString3(widget, " ", sig));
+  action = fxstrdup(CatString3(tmp, " ", str));
   free(sig);
   free(widget);
   free(str);
--- fvwm3/modules/FvwmScript/FvwmScript.c       pon pro 14 22:00:43 2020
+++ fvwm3-good/modules/FvwmScript/FvwmScript.c  pon stu 30 20:43:16 2020
@@ -25,7 +25,6 @@
 #include "libs/fvwmlib.h"
 #include "libs/FScreen.h"
 #include "libs/FShape.h"
-#include "libs/FEvent.h"
 #include "libs/fvwmsignal.h"
 #include "libs/Picture.h"
 #include "libs/PictureGraphics.h"
@@ -1337,7 +1336,8 @@
   else
   {                             /* Son case */
     x11base->TabScriptId[0] = fxcalloc(sizeof(char), strlen(argv[7]));
-    x11base->TabScriptId[0] = strncpy(x11base->TabScriptId[0], argv[7], 900);
+    x11base->TabScriptId[0] = strncpy(x11base->TabScriptId[0],argv[7],
+                                   strlen(argv[7])-2);
     x11base->TabScriptId[1] = argv[7];
     myatom=XInternAtom(dpy, x11base->TabScriptId[1], True);
     XSetSelectionOwner(dpy, myatom, x11base->win, CurrentTime);

ThomasAdam added a commit that referenced this issue Dec 15, 2020
Ensure the malloc()d space to the string is computed using its length
and not some random magic number.

Fixes #356
@ThomasAdam
Copy link
Member

Hi,

Please try again: ta/gh-356

@NsCDE
Copy link
Contributor Author

NsCDE commented Dec 15, 2020

You did it!

@NsCDE NsCDE closed this as completed Dec 15, 2020
ThomasAdam added a commit that referenced this issue Dec 15, 2020
Ensure the malloc()d space to the string is computed using its length
and not some random magic number.

Fixes #356
@ThomasAdam ThomasAdam moved this to Done in FVWM3 Sep 18, 2022
@ThomasAdam ThomasAdam added this to FVWM3 Sep 18, 2022
@NsCDE
Copy link
Contributor Author

NsCDE commented Oct 30, 2024

Hi Thomas, I've been a lot away from FVWM and NsCDE. Trying to catch what's going on this days.

You just forced be to boot VMs of recent Fedora and FreeBSD and try my own TestScript. No signal 6, no core dump.

This issue is definitely closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants