emacs-devel
[Top][All Lists]
Advanced

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

Re: changed dlopen flags in dynlib.c, gccemacs crash


From: Eli Zaretskii
Subject: Re: changed dlopen flags in dynlib.c, gccemacs crash
Date: Wed, 08 Dec 2021 15:15:19 +0200

> From: hx <silent2600@gmail.com>
> Date: Wed, 8 Dec 2021 14:01:29 +0800
> 
> I changed the flags of dlopen in dynlib.c:
> 
> dynlib_handle_ptr
> dynlib_open (const char *path)
> {
>   // return dlopen (path, RTLD_LAZY);                                         
>                                                                            
>                                                                               
>                                         
>   return dlopen (path, RTLD_LAZY|RTLD_GLOBAL);
> }
> 
> then my dynamic module can load other .so in emacs-27.
> 
> but it make gccemacs-28 crash:
> 
> $ /usr/src/emacs/src/emacs -nw -q
> Fatal error 11: Segmentation fault
> Backtrace:
> /usr/src/emacs/src/emacs(+0x1c4c13)[0x558a8d05fc13]
> /usr/src/emacs/src/emacs(+0x199a0e)[0x558a8d034a0e]
> /usr/src/emacs/src/emacs(+0x1c44d8)[0x558a8d05f4d8]

Please run this under GDB and show the backtrace from the crash in
human-readable form.

Also, please describe what you did immediately before the crash.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]