Am 15.03.21 um 16:36 schrieb John Bowman:
A SIGFPE
Hello John, sorry, I noted the details for the SIGFPE in my second mail just for completeness about debugging. The issue starting it all seems the SIGSEGV from my first mail. On a second look it seems that the descructor of the builtin_builder object is called first, and just afterwards the method relase on that deleted object. Therefore the same pointer gets freed by ralloc_free twice. Attached is a "one-liner" to illustrate how to drive gdb to the SIGSEGV and the malloc issue. And an example output. And yes, it might be an mesa issue, not being prepared of having __run_exit_handlers calling the destructor of builtin_builder before calling fgDeinitialize: mesa-20.3.4/src/compiler/glsl/builtin_functions.cpp:7736:static builtin_builder builtins; Kind regards, Bernhard
Script started on 2021-03-15 17:35:27+01:00 [TERM="xterm-256color" TTY="/dev/pts/10" COLUMNS="194" LINES="61"] benutzer@debian:~$ bash gdb-start.sh Reading symbols from /usr/bin/asy... Reading symbols from /usr/lib/debug/.build-id/c0/770c19bdc18e5fcad0246cb07fa90e4a1158cf.debug... Source directories searched: /home/benutzer/source/libgl1-mesa-dri/orig/mesa-20.3.4/src:$cdir:$cwd Source directories searched: /home/benutzer/source/asymptote/orig/asymptote-2.69+ds:/home/benutzer/source/libgl1-mesa-dri/orig/mesa-20.3.4/src:$cdir:$cwd Argument required (expression to compute). Temporary breakpoint 1 at 0xa6a08: camp::picture::shipout3. (2 locations) Starting program: /usr/bin/asy -config '' -render=4 -f png -o B_b.png B_b.asy [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff6be8700 (LWP 79424)] [New Thread 0x7ffff63e7700 (LWP 79425)] [New Thread 0x7ffff5be6700 (LWP 79426)] [Detaching after fork from child process 79427] [Detaching after fork from child process 79428] [Detaching after fork from child process 79429] [Detaching after fork from child process 79430] Thread 1 "asy" hit Temporary breakpoint 1, camp::picture::shipout3 (this=0x3, prefix="B_b", format="", width=162.97999999999999, height=166.97999999999999, angle=0, zoom=1, m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlights=3, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=true) at picture.cc:1306 1306 if(getSetting<bool>("interrupt")) Temporary breakpoint 2 at 0x55555586c9b0: file tr.cc, line 369. Continuing. [Attaching after Thread 0x7ffff6c2c040 (LWP 79420) fork to child process 79431] [New inferior 2 (process 79431)] [Detaching after fork from parent process 79420] [Inferior 1 (process 79420) detached] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff5be6700 (LWP 79432)] [New Thread 0x7ffff63e7700 (LWP 79433)] [New Thread 0x7ffff6be8700 (LWP 79434)] [New Thread 0x7fffead13700 (LWP 79435)] [New Thread 0x7fffea512700 (LWP 79436)] [New Thread 0x7fffe9d11700 (LWP 79437)] [New Thread 0x7fffe9510700 (LWP 79438)] [New Thread 0x7fffe8d0f700 (LWP 79439)] [New Thread 0x7fffcbfff700 (LWP 79440)] [New Thread 0x7fffcb7fe700 (LWP 79441)] [New Thread 0x7fffcaffd700 (LWP 79442)] [New Thread 0x7fffca7fc700 (LWP 79443)] [Switching to Thread 0x7ffff6c2c040 (LWP 79431)] Thread 2.1 "asy" hit Temporary breakpoint 2, trEndTile (tr=0x1) at tr.cc:369 369 { Breakpoint 3 at 0x7ffff19e2300: file ../src/compiler/glsl/builtin_functions.cpp, line 1280. Continuing. [Detaching after fork from child process 79444] [Thread 0x7fffcaffd700 (LWP 79442) exited] [Thread 0x7fffcb7fe700 (LWP 79441) exited] [Thread 0x7fffca7fc700 (LWP 79443) exited] [Thread 0x7fffcbfff700 (LWP 79440) exited] Thread 2.1 "asy" hit Breakpoint 3, (anonymous namespace)::builtin_builder::~builtin_builder (this=0x7ffff2a26fd0 <builtins>, __in_chrg=<optimized out>) at ../src/compiler/glsl/builtin_functions.cpp:1280 1280 ralloc_free(mem_ctx); #0 (anonymous namespace)::builtin_builder::~builtin_builder (this=0x7ffff2a26fd0 <builtins>, __in_chrg=<optimized out>) at ../src/compiler/glsl/builtin_functions.cpp:1280 #1 0x00007ffff733a4d7 in __run_exit_handlers (status=0, listp=0x7ffff74ba718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108 #2 0x00007ffff733a67a in __GI_exit (status=<optimized out>) at exit.c:139 #3 0x0000555555863ae2 in gl::quit () at glrender.cc:652 #4 0x0000555555868ebf in gl::glrender (prefix='\000' <repeats 12 times>, "\001", '\000' <repeats 83 times>, "P\210\327UUU", '\000' <repeats 58 times>, "\377\377\377\377\000\000\000\000\004\000\005", '\000' <repeats 29 times>..., pic=0x0, format=Python Exception <class 'OverflowError'> int too big to convert: , width=0, height=29163520, angle=1.7292297604443629e-322, zoom=0, m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlightsin=140737488308064, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=false, oldpid=0) at glrender.cc:1866 #5 0x00005555555fb01a in camp::picture::shipout3 (this=0x0, prefix=<error reading variable: Cannot access memory at address 0x8>, format=Python Exception <class 'OverflowError'> int too big to convert: , width=0, height=29163520, angle=1.7292297604443629e-322, zoom=0, m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlights=3, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=true) at picture.cc:1417 #6 0x000055555575a921 in run::gen_runpicture43 (Stack=0x555555a0eb00) at runpicture.in:485 #7 0x00005555557f6fee in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a12d38, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:463 #8 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a24ff0, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:521 #9 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff404de68, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:521 #10 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a36af0, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:521 #11 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff41ad2f8, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:521 #12 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff46eac08, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:521 #13 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff49215d0, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:521 #14 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff496c370, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:521 #15 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff41d5118, vars=0x7ffff19e2300 <(anonymous namespace)::builtin_builder::~builtin_builder()>, parent=0x7ffff74baba0 <main_arena+32>) at stack.cc:521 #16 0x000055555582319e in icore::postRun (s=..., this=<optimized out>) at process.cc:211 #17 ifile::postRun (this=0x7fffffffe260, e=..., s=...) at process.cc:383 #18 0x00005555558279de in icore::doRun (this=0x7ffff2a26fd0 <builtins>, purge=false, tm=(unknown: 0xf19e2300)) at process.cc:238 #19 0x000055555582459e in icore::process (purge=<optimized out>, this=<optimized out>) at process.cc:259 #20 icore::process (purge=<optimized out>, this=<optimized out>) at process.cc:253 #21 ifile::process (this=0x7fffffffe260, purge=false) at process.cc:399 #22 0x000055555581fb59 in processFile (filename=<error reading variable: Cannot access memory at address 0xf>, purge=false) at process.cc:900 #23 0x0000555555873fd1 in asymain (A=0x7fffffffe3e0) at main.cc:165 #24 0x00005555555d7147 in main (argc=9, argv=0x7fffffffe3e0) at main.cc:251 $1 = (void *) 0x555555aec470 $2 = ((anonymous namespace)::builtin_builder * const) 0x7ffff2a26fd0 <builtins> Breakpoint 4 at 0x7ffff1a0eb80: file ../src/compiler/glsl/builtin_functions.cpp, line 1326. Continuing. Thread 2.1 "asy" hit Breakpoint 4, (anonymous namespace)::builtin_builder::release (this=0x7ffff2a26fd0 <builtins>) at ../src/compiler/glsl/builtin_functions.cpp:1326 1326 ralloc_free(mem_ctx); #0 (anonymous namespace)::builtin_builder::release (this=0x7ffff2a26fd0 <builtins>) at ../src/compiler/glsl/builtin_functions.cpp:1326 #1 _mesa_glsl_builtin_functions_decref () at ../src/compiler/glsl/builtin_functions.cpp:7759 #2 0x00007ffff17ab245 in _mesa_free_context_data (ctx=ctx@entry=0x7fffe81d3010, destroy_debug_output=destroy_debug_output@entry=false) at ../src/mesa/main/context.c:1402 #3 0x00007ffff173ca87 in st_destroy_context (st=0x555555d2b920) at ../src/mesa/state_tracker/st_context.c:1146 #4 0x00007ffff171e95e in dri_destroy_context (cPriv=<optimized out>) at ../src/gallium/frontends/dri/dri_context.c:247 #5 0x00007ffff1c1d903 in driDestroyContext (pcp=0x555555a61640) at ../src/mesa/drivers/dri/common/dri_util.c:533 #6 0x00007ffff2f57a7f in drisw_destroy_context (context=0x555555a614b0) at ../src/glx/drisw_glx.c:379 #7 0x00007ffff2f5d22e in glx_display_free (priv=priv@entry=0x555555a39be0) at ../src/glx/glxext.c:245 #8 0x00007ffff2f5d2bf in __glXCloseDisplay (dpy=0x555555a1f9c0, codes=<optimized out>) at ../src/glx/glxext.c:304 #9 0x00007ffff71d9bc2 in XCloseDisplay (dpy=0x555555a1f9c0) at ../../src/ClDisplay.c:65 #10 0x00007ffff7eb2a7f in fgDeinitialize () at freeglut_init.c:524 #11 fgDeinitialize () at freeglut_init.c:411 #12 0x00007ffff733a4d7 in __run_exit_handlers (status=0, listp=0x7ffff74ba718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108 #13 0x00007ffff733a67a in __GI_exit (status=<optimized out>) at exit.c:139 #14 0x0000555555863ae2 in gl::quit () at glrender.cc:652 #15 0x0000555555868ebf in gl::glrender (prefix=<error: Cannot access memory at address 0x1>, pic=0x7ffff2f07f20, format=<error reading variable: Cannot access memory at address 0x8>, width=-nan(0xf00ff00000000), height=6.8991159474370496e-310, angle=1.7292297604443629e-322, zoom=-nan(0xfffffff000000), m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlightsin=140737488308064, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=false, oldpid=0) at glrender.cc:1866 #16 0x00005555555fb01a in camp::picture::shipout3 (this=0x0, prefix=<error: Cannot access memory at address 0x841f0f2e66c3>, format=<error reading variable: Cannot access memory at address 0x8>, width=-nan(0xf00ff00000000), height=6.8991159474370496e-310, angle=1.7292297604443629e-322, zoom=-nan(0xfffffff000000), m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlights=3, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=true) at picture.cc:1417 #17 0x000055555575a921 in run::gen_runpicture43 (Stack=0x555555a0eb00) at runpicture.in:485 #18 0x00005555557f6fee in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a12d38, vars=0x0, parent=0x0) at stack.cc:463 #19 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a24ff0, vars=0x0, parent=0x0) at stack.cc:521 #20 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff404de68, vars=0x0, parent=0x0) at stack.cc:521 #21 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a36af0, vars=0x0, parent=0x0) at stack.cc:521 #22 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff41ad2f8, vars=0x0, parent=0x0) at stack.cc:521 #23 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff46eac08, vars=0x0, parent=0x0) at stack.cc:521 #24 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff49215d0, vars=0x0, parent=0x0) at stack.cc:521 #25 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff496c370, vars=0x0, parent=0x0) at stack.cc:521 #26 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff41d5118, vars=0x0, parent=0x0) at stack.cc:521 #27 0x000055555582319e in icore::postRun (s=..., this=<optimized out>) at process.cc:211 #28 ifile::postRun (this=0x7fffffffe260, e=..., s=...) at process.cc:383 #29 0x00005555558279de in icore::doRun (this=0x7ffff2a26fa0 <builtins_lock>, purge=32, tm=TRANS_INTERACTIVE) at process.cc:238 #30 0x000055555582459e in icore::process (purge=<optimized out>, this=<optimized out>) at process.cc:259 #31 icore::process (purge=<optimized out>, this=<optimized out>) at process.cc:253 #32 ifile::process (this=0x7fffffffe260, purge=32) at process.cc:399 #33 0x000055555581fb59 in processFile (filename=<error reading variable: Cannot access memory at address 0x9>, purge=32) at process.cc:900 #34 0x0000555555873fd1 in asymain (A=0x7fffffffe3e0) at main.cc:165 #35 0x00005555555d7147 in main (argc=9, argv=0x7fffffffe3e0) at main.cc:251 $3 = (void *) 0x555555aec470 $4 = ((anonymous namespace)::builtin_builder * const) 0x7ffff2a26fd0 <builtins> Continuing. Thread 2.1 "asy" received signal SIGSEGV, Segmentation fault. 0x00007ffff1acd2cf in unsafe_free (info=0x555555ae00f0) at ../src/util/ralloc.c:307 307 info->child = temp->next; #0 0x00007ffff1acd2cf in unsafe_free (info=0x555555ae00f0) at ../src/util/ralloc.c:307 #1 0x00007ffff1acd8a2 in unsafe_free (info=<optimized out>) at ../src/util/ralloc.c:308 #2 ralloc_free (ptr=0x555555aec470) at ../src/util/ralloc.c:278 #3 ralloc_free (ptr=0x555555aec470) at ../src/util/ralloc.c:269 #4 0x00007ffff1a0eb8c in (anonymous namespace)::builtin_builder::release (this=0x7ffff2a26fd0 <builtins>) at ../src/compiler/glsl/builtin_functions.cpp:1326 #5 _mesa_glsl_builtin_functions_decref () at ../src/compiler/glsl/builtin_functions.cpp:7759 #6 0x00007ffff17ab245 in _mesa_free_context_data (ctx=ctx@entry=0x7fffe81d3010, destroy_debug_output=destroy_debug_output@entry=false) at ../src/mesa/main/context.c:1402 #7 0x00007ffff173ca87 in st_destroy_context (st=0x555555d2b920) at ../src/mesa/state_tracker/st_context.c:1146 #8 0x00007ffff171e95e in dri_destroy_context (cPriv=<optimized out>) at ../src/gallium/frontends/dri/dri_context.c:247 #9 0x00007ffff1c1d903 in driDestroyContext (pcp=0x555555a61640) at ../src/mesa/drivers/dri/common/dri_util.c:533 #10 0x00007ffff2f57a7f in drisw_destroy_context (context=0x555555a614b0) at ../src/glx/drisw_glx.c:379 #11 0x00007ffff2f5d22e in glx_display_free (priv=priv@entry=0x555555a39be0) at ../src/glx/glxext.c:245 #12 0x00007ffff2f5d2bf in __glXCloseDisplay (dpy=0x555555a1f9c0, codes=<optimized out>) at ../src/glx/glxext.c:304 #13 0x00007ffff71d9bc2 in XCloseDisplay (dpy=0x555555a1f9c0) at ../../src/ClDisplay.c:65 #14 0x00007ffff7eb2a7f in fgDeinitialize () at freeglut_init.c:524 #15 fgDeinitialize () at freeglut_init.c:411 #16 0x00007ffff733a4d7 in __run_exit_handlers (status=0, listp=0x7ffff74ba718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108 #17 0x00007ffff733a67a in __GI_exit (status=<optimized out>) at exit.c:139 #18 0x0000555555863ae2 in gl::quit () at glrender.cc:652 #19 0x0000555555868ebf in gl::glrender (prefix=<error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>, pic=0x7ffff2f07f20, format=<error reading variable: Cannot access memory at address 0x4759>, width=-nan(0xf00ff00000000), height=6.8991159474370496e-310, angle=1.7292297604443629e-322, zoom=-nan(0xfffffff000000), m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlightsin=140737488308064, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=false, oldpid=0) at glrender.cc:1866 #20 0x00005555555fb01a in camp::picture::shipout3 (this=0x0, prefix=<error: Cannot access memory at address 0x841f0f2e66c3>, format=<error reading variable: Cannot access memory at address 0x4759>, width=-nan(0xf00ff00000000), height=6.8991159474370496e-310, angle=1.7292297604443629e-322, zoom=-nan(0xfffffff000000), m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlights=3, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=true) at picture.cc:1417 #21 0x000055555575a921 in run::gen_runpicture43 (Stack=0x555555a0eb00) at runpicture.in:485 #22 0x00005555557f6fee in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a12d38, vars=0x4751, parent=0x555555ae00f0) at stack.cc:463 #23 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a24ff0, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #24 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff404de68, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #25 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a36af0, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #26 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff41ad2f8, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #27 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff46eac08, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #28 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff49215d0, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #29 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff496c370, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #30 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff41d5118, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #31 0x000055555582319e in icore::postRun (s=..., this=<optimized out>) at process.cc:211 #32 ifile::postRun (this=0x7fffffffe260, e=..., s=...) at process.cc:383 #33 0x00005555558279de in icore::doRun (this=0x555555ae00f0, purge=32, tm=(TRANS_NORMAL | unknown: 0x4750)) at process.cc:238 #34 0x000055555582459e in icore::process (purge=<optimized out>, this=<optimized out>) at process.cc:259 #35 icore::process (purge=<optimized out>, this=<optimized out>) at process.cc:253 #36 ifile::process (this=0x7fffffffe260, purge=32) at process.cc:399 #37 0x000055555581fb59 in processFile (filename=<error reading variable: Cannot access memory at address 0x9>, purge=32) at process.cc:900 #38 0x0000555555873fd1 in asymain (A=0x7fffffffe3e0) at main.cc:165 #39 0x00005555555d7147 in main (argc=9, argv=0x7fffffffe3e0) at main.cc:251 Continuing. malloc(): unsorted double linked list corrupted Thread 2.1 "asy" received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden. #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7321537 in __GI_abort () at abort.c:79 #2 0x00007ffff737a768 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7488e31 "%s\n") at ../sysdeps/posix/libc_fatal.c:155 #3 0x00007ffff7381a5a in malloc_printerr (str=str@entry=0x7ffff748b678 "malloc(): unsorted double linked list corrupted") at malloc.c:5347 #4 0x00007ffff7384d74 in _int_malloc (av=av@entry=0x7ffff74bab80 <main_arena>, bytes=bytes@entry=8192) at malloc.c:3744 #5 0x00007ffff7386299 in __GI___libc_malloc (bytes=8192) at malloc.c:3066 #6 0x00007ffff76e90b5 in operator new (sz=8192) at ../../../../src/libstdc++-v3/libsupc++/new_op.cc:50 #7 0x00007ffff76e90f5 in operator new[] (sz=<optimized out>) at ../../../../src/libstdc++-v3/libsupc++/new_opv.cc:32 #8 0x00007ffff77430b4 in std::basic_filebuf<char, std::char_traits<char> >::_M_allocate_internal_buffer (this=0x7fffffffda00) at /build/gcc-10-Km9U7s/gcc-10-10.2.1/build/x86_64-linux-gnu/libstdc++-v3/include/bits/fstream.tcc:49 #9 std::basic_filebuf<char, std::char_traits<char> >::_M_allocate_internal_buffer (this=0x7fffffffda00) at /build/gcc-10-Km9U7s/gcc-10-10.2.1/build/x86_64-linux-gnu/libstdc++-v3/include/bits/fstream.tcc:49 #10 0x00007ffff7746fe3 in std::basic_filebuf<char, std::char_traits<char> >::open (this=0x7fffffffda00, __s=0x7ffff53d4860 "/usr/share/asymptote/three.asy", __mode=std::_S_in) at /build/gcc-10-Km9U7s/gcc-10-10.2.1/build/x86_64-linux-gnu/libstdc++-v3/include/bits/fstream.tcc:188 #11 0x00005555557e29b9 in std::basic_ifstream<char, std::char_traits<char> >::open (__mode=<optimized out>, __s=<optimized out>, this=<optimized out>) at /usr/include/c++/10/bits/ios_base.h:130 #12 std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream (__mode=<optimized out>, __s=<optimized out>, this=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/include/c++/10/fstream:533 #13 operator<< (out=..., pos=...) at errormsg.cc:30 #14 0x00005555557e2fd6 in errorstream::message (this=0x555555957270 <em>, pos=..., s="runtime: ") at errormsg.cc:63 #15 0x00005555557e320a in errorstream::runtime (this=0x555555957270 <em>, pos=...) at errormsg.cc:81 #16 0x0000555555873ce6 in sigsegv_handler (emergency=<optimized out>) at main.cc:78 #17 sigsegv_handler (emergency=-11040) at main.cc:75 #18 0x00007ffff7e8d2d0 in sigsegv_handler (sig=<optimized out>, sip=<optimized out>, ucp=0x7fffffffddc0) at handler-unix.c:267 #19 <signal handler called> #20 0x00007ffff1acd2cf in unsafe_free (info=0x555555ae00f0) at ../src/util/ralloc.c:307 #21 0x00007ffff1acd8a2 in unsafe_free (info=<optimized out>) at ../src/util/ralloc.c:308 #22 ralloc_free (ptr=0x555555aec470) at ../src/util/ralloc.c:278 #23 ralloc_free (ptr=0x555555aec470) at ../src/util/ralloc.c:269 #24 0x00007ffff1a0eb8c in (anonymous namespace)::builtin_builder::release (this=0x7ffff2a26fd0 <builtins>) at ../src/compiler/glsl/builtin_functions.cpp:1326 #25 _mesa_glsl_builtin_functions_decref () at ../src/compiler/glsl/builtin_functions.cpp:7759 #26 0x00007ffff17ab245 in _mesa_free_context_data (ctx=ctx@entry=0x7fffe81d3010, destroy_debug_output=destroy_debug_output@entry=false) at ../src/mesa/main/context.c:1402 #27 0x00007ffff173ca87 in st_destroy_context (st=0x555555d2b920) at ../src/mesa/state_tracker/st_context.c:1146 #28 0x00007ffff171e95e in dri_destroy_context (cPriv=<optimized out>) at ../src/gallium/frontends/dri/dri_context.c:247 #29 0x00007ffff1c1d903 in driDestroyContext (pcp=0x555555a61640) at ../src/mesa/drivers/dri/common/dri_util.c:533 #30 0x00007ffff2f57a7f in drisw_destroy_context (context=0x555555a614b0) at ../src/glx/drisw_glx.c:379 #31 0x00007ffff2f5d22e in glx_display_free (priv=priv@entry=0x555555a39be0) at ../src/glx/glxext.c:245 #32 0x00007ffff2f5d2bf in __glXCloseDisplay (dpy=0x555555a1f9c0, codes=<optimized out>) at ../src/glx/glxext.c:304 #33 0x00007ffff71d9bc2 in XCloseDisplay (dpy=0x555555a1f9c0) at ../../src/ClDisplay.c:65 #34 0x00007ffff7eb2a7f in fgDeinitialize () at freeglut_init.c:524 #35 fgDeinitialize () at freeglut_init.c:411 #36 0x00007ffff733a4d7 in __run_exit_handlers (status=0, listp=0x7ffff74ba718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108 #37 0x00007ffff733a67a in __GI_exit (status=<optimized out>) at exit.c:139 #38 0x0000555555863ae2 in gl::quit () at glrender.cc:652 #39 0x0000555555868ebf in gl::glrender (prefix=<error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>, pic=0x7ffff2f07f20, format=<error reading variable: Cannot access memory at address 0x4759>, width=2.0282208671839305e-110, height=1.974983968201332e+166, angle=0, zoom=0, m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlightsin=140737488308064, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=false, oldpid=0) at glrender.cc:1866 #40 0x00005555555fb01a in camp::picture::shipout3 (this=0x0, prefix=<error: Cannot access memory at address 0x841f0f2e66c3>, format=<error reading variable: Cannot access memory at address 0x4759>, width=2.0282208671839305e-110, height=1.974983968201332e+166, angle=0, zoom=0, m=..., M=..., shift=..., margin=..., t=0x555555a1d260, background=0x555555a0eb00, nlights=3, lights=0x7ffff481f548, diffuse=0x7ffff481f3f0, specular=0x7ffff481f230, view=true) at picture.cc:1417 #41 0x000055555575a921 in run::gen_runpicture43 (Stack=0x555555a0eb00) at runpicture.in:485 #42 0x00005555557f6fee in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a12d38, vars=0x4751, parent=0x555555ae00f0) at stack.cc:463 #43 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a24ff0, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #44 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff404de68, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #45 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff3a36af0, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #46 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff41ad2f8, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #47 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff46eac08, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #48 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff49215d0, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #49 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff496c370, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #50 0x00005555557f6f25 in vm::stack::runWithOrWithoutClosure (this=0x7fffffff5970, l=0x7ffff41d5118, vars=0x4751, parent=0x555555ae00f0) at stack.cc:521 #51 0x000055555582319e in icore::postRun (s=..., this=<optimized out>) at process.cc:211 #52 ifile::postRun (this=0x7fffffffe260, e=..., s=...) at process.cc:383 #53 0x00005555558279de in icore::doRun (this=0x555555ae00f0, purge=32, tm=(TRANS_NORMAL | unknown: 0x4750)) at process.cc:238 #54 0x0000000000000000 in ?? () Kill the program being debugged? (y or n) <y [Inferior 2 (process 79431) killed] benutzer@debian:~$ exit exit Script done on 2021-03-15 17:35:59+01:00 [COMMAND_EXIT_CODE="0"]
debug-start.sh
Description: application/shellscript