I’m still working on a complete stand alone example but the way to reproduce 
this is to dlopen a module that is linked to libavformat.  It does not require 
any code at all related to libavformat to be executed at all, or any includes 
to libavformat, or anything at all related to apt, just the linking, then 
dlopen of that so

#0  0x00007fd8315fdca2 in ?? () from /usr/lib/x86_64-linux-gnu/libopenmpt.so.0
#1  0x00007fd87d8b08aa in call_init (l=<optimized out>, argc=argc@entry=2, 
argv=argv@entry=0x7ffc0cfd1b58, env=env@entry=0x7ffc0cfd1b70) at dl-init.c:72
#2  0x00007fd87d8b09bb in call_init (env=0x7ffc0cfd1b70, argv=0x7ffc0cfd1b58, 
argc=2, l=<optimized out>) at dl-init.c:30
#3  _dl_init (main_map=main_map@entry=0x561842c5b320, argc=2, 
argv=0x7ffc0cfd1b58, env=0x7ffc0cfd1b70) at dl-init.c:120
#4  0x00007fd87d8b4f38 in dl_open_worker (a=a@entry=0x7ffc0cfcc990) at 
dl-open.c:575
#5  0x00007fd87d8b0754 in _dl_catch_error 
(objname=objname@entry=0x7ffc0cfcc980, 
errstring=errstring@entry=0x7ffc0cfcc988, 
    mallocedp=mallocedp@entry=0x7ffc0cfcc97f, 
operate=operate@entry=0x7fd87d8b4b50 <dl_open_worker>, 
args=args@entry=0x7ffc0cfcc990) at dl-error.c:187
#6  0x00007fd87d8b46e9 in _dl_open (file=0x561842bac540 
"/usr/local/freeswitch/mod/mod_commands.so", mode=-2147483646, 
    caller_dlopen=0x7fd87cd637da <switch_dso_open+58>, nsid=-2, argc=<optimized 
out>, argv=<optimized out>, env=0x7ffc0cfd1b70) at dl-open.c:660
#7  0x00007fd87c67cee9 in dlopen_doit (a=a@entry=0x7ffc0cfccbc0) at dlopen.c:66
#8  0x00007fd87d8b0754 in _dl_catch_error (objname=0x561842b78930, 
errstring=0x561842b78938, mallocedp=0x561842b78928, operate=0x7fd87c67ce90 
<dlopen_doit>, 
    args=0x7ffc0cfccbc0) at dl-error.c:187
#9  0x00007fd87c67d531 in _dlerror_run (operate=operate@entry=0x7fd87c67ce90 
<dlopen_doit>, args=args@entry=0x7ffc0cfccbc0) at dlerror.c:163
#10 0x00007fd87c67cf82 in __dlopen (file=<optimized out>, mode=mode@entry=2) at 
dlopen.c:87

Reply via email to