https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Bug ID: 1874398 Summary: makesrna crashes during the build Product: Fedora Version: rawhide Hardware: s390x Status: NEW Component: blender Assignee: luya_tfz@thefinalzone.net Reporter: dan@danny.cz QA Contact: extras-qa@fedoraproject.org CC: design-devel@lists.fedoraproject.org, kwizart@gmail.com, luya_tfz@thefinalzone.net, negativo17@gmail.com, promac@gmail.com Blocks: 467765 (ZedoraTracker) Target Milestone: --- Classification: Fedora
The makesrna tool crashes during the build
(gdb) where #0 0x000003fffdccab86 in raise () from /lib64/libc.so.6 #1 0x000003fffdcab808 in abort () from /lib64/libc.so.6 #2 0x000002aa0018a678 in MEM_lockfree_freeN (vmemh=<optimized out>) at /builddir/build/BUILD/blender-2.83.5/intern/guardedalloc/intern/mallocn_lockfree_impl.c:128 #3 MEM_lockfree_freeN (vmemh=<optimized out>) at /builddir/build/BUILD/blender-2.83.5/intern/guardedalloc/intern/mallocn_lockfree_impl.c:120 #4 0x000002aa0019497c in DNA_sdna_free (sdna=0x2aa002cfbf8) at /builddir/build/BUILD/blender-2.83.5/source/blender/makesdna/intern/dna_genfile.c:146 #5 0x000002aa0005d8f8 in DNA_sdna_from_data (data=<optimized out>, do_endian_swap=false, data_alloc=false, r_error_message=<synthetic pointer>, data_len=101564) at /builddir/build/BUILD/blender-2.83.5/source/blender/makesdna/intern/dna_genfile.c:335 #6 RNA_create () at /builddir/build/BUILD/blender-2.83.5/source/blender/makesrna/intern/rna_define.c:697 #7 0x000002aa00058dc8 in rna_preprocess (outfile=0x3fffffff4b2 "/builddir/build/BUILD/blender-2.83.5/s390x-redhat-linux-gnu/source/blender/makesrna/intern/") at /builddir/build/BUILD/blender-2.83.5/source/blender/makesrna/intern/makesrna.c:4993 #8 0x000002aa0005271c in main (argc=<optimized out>, argv=0x3fffffff1d8) at /builddir/build/BUILD/blender-2.83.5/source/blender/makesrna/intern/makesrna.c:5148
Version-Release number of selected component (if applicable): blender-2.83.5-5.fc34
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=467765 [Bug 467765] Fedora for System z (s390): Bug Tracker
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Hanns-Joachim Uhl hannsj_uhl@de.ibm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hannsj_uhl@de.ibm.com Doc Type|--- |If docs needed, set a value
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #1 from Dan Horák dan@danny.cz --- And there is no crash when LTO is disabled, so very likely it uncovered a hidden bug or relying on undefined behaviour or similar source code issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #2 from Fedora Update System updates@fedoraproject.org --- FEDORA-2020-a9c959e657 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-a9c959e657
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- FEDORA-2020-a9c959e657 has been pushed to the Fedora 33 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-a9c959e657` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-a9c959e657
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #4 from Dan Horák dan@danny.cz --- Luya, please report this issue to upstream. This is most likely blender's fault.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #5 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- (In reply to Dan Horák from comment #4)
Luya, please report this issue to upstream. This is most likely blender's fault.
Does the issue happen on Blender 2.90? Just asking because submitting the bug to upstream? If possible, attach the log containing the traceback
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #6 from Dan Horák dan@danny.cz --- Yes, it does happen with blender 2.90 as well. I believe this is another case when enabled LTO reveals some real bug in the source code.
build output
... [ 82%] Built target makesrna make -f source/blender/makesrna/intern/CMakeFiles/bf_rna.dir/build.make source/blender/makesrna/intern/CMakeFiles/bf_rna.dir/depend make[2]: Entering directory '/builddir/build/BUILD/blender-2.90.0/s390x-redhat-linux-gnu' [ 82%] Generating rna_ID_gen.c, rna_action_gen.c, rna_animation_gen.c, rna_animviz_gen.c, rna_armature_gen.c, rna_boid_gen.c, rna_brush_gen.c, rna_cachefile_gen.c, rna_camera_gen.c, rna_cloth_gen.c, rna_collection_gen.c, rna_color_gen.c, rna_constraint_gen.c, rna_context_gen.c, rna_curve_gen.c, rna_curveprofile_gen.c, rna_depsgraph_gen.c, rna_dynamicpaint_gen.c, rna_fcurve_gen.c, rna_fluid_gen.c, rna_gpencil_gen.c, rna_gpencil_modifier_gen.c, rna_image_gen.c, rna_key_gen.c, rna_lattice_gen.c, rna_layer_gen.c, rna_light_gen.c, rna_lightprobe_gen.c, rna_linestyle_gen.c, rna_main_gen.c, rna_mask_gen.c, rna_material_gen.c, rna_mesh_gen.c, rna_meta_gen.c, rna_modifier_gen.c, rna_movieclip_gen.c, rna_nla_gen.c, rna_nodetree_gen.c, rna_object_gen.c, rna_object_force_gen.c, rna_packedfile_gen.c, rna_palette_gen.c, rna_particle_gen.c, rna_pose_gen.c, rna_render_gen.c, rna_rigidbody_gen.c, rna_rna_gen.c, rna_scene_gen.c, rna_screen_gen.c, rna_sculpt_paint_gen.c, rna_sequencer_gen.c, rna_shader_fx_gen.c, rna_sound_gen.c, rna_space_gen.c, rna_speaker_gen.c, rna_test_gen.c, rna_text_gen.c, rna_texture_gen.c, rna_timeline_gen.c, rna_tracking_gen.c, rna_ui_gen.c, rna_userdef_gen.c, rna_vfont_gen.c, rna_volume_gen.c, rna_wm_gen.c, rna_wm_gizmo_gen.c, rna_workspace_gen.c, rna_world_gen.c, rna_xr_gen.c, rna_prototypes_gen.h cd /builddir/build/BUILD/blender-2.90.0/s390x-redhat-linux-gnu/source/blender/makesrna/intern && ../../../../bin/makesrna /builddir/build/BUILD/blender-2.90.0/s390x-redhat-linux-gnu/source/blender/makesrna/intern/ Attempt to free NULL pointer make[2]: *** [source/blender/makesrna/intern/CMakeFiles/bf_rna.dir/build.make:84: source/blender/makesrna/intern/rna_ID_gen.c] Aborted (core dumped) make[2]: Leaving directory '/builddir/build/BUILD/blender-2.90.0/s390x-redhat-linux-gnu' make[1]: *** [CMakeFiles/Makefile2:5901: source/blender/makesrna/intern/CMakeFiles/bf_rna.dir/all] Error 2
running under gdb gives:
<mock-chroot> sh-5.0# gdb ../../../../bin/makesrna GNU gdb (GDB) Fedora 9.2-6.fc33 Copyright (C) 2020 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 "s390x-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 ../../../../bin/makesrna... (gdb) set args /builddir/build/BUILD/blender-2.90.0/s390x-redhat-linux-gnu/source/blender/makesrna/intern/ (gdb) run Starting program: /builddir/build/BUILD/blender-2.90.0/s390x-redhat-linux-gnu/bin/makesrna /builddir/build/BUILD/blender-2.90.0/s390x-redhat-linux-gnu/source/blender/makesrna/intern/ [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Attempt to free NULL pointer
Program received signal SIGABRT, Aborted. 0x000003fffda4ab86 in raise () from /lib64/libc.so.6 (gdb) where #0 0x000003fffda4ab86 in raise () from /lib64/libc.so.6 #1 0x000003fffda2b808 in abort () from /lib64/libc.so.6 #2 0x000002aa0018f5fa in MEM_lockfree_freeN (vmemh=<optimized out>) at /builddir/build/BUILD/blender-2.90.0/intern/guardedalloc/intern/mallocn_lockfree_impl.c:114 #3 MEM_lockfree_freeN (vmemh=0x0) at /builddir/build/BUILD/blender-2.90.0/intern/guardedalloc/intern/mallocn_lockfree_impl.c:102 #4 0x000002aa00190a6c in DNA_sdna_free (sdna=0x2aa002e9808) at /builddir/build/BUILD/blender-2.90.0/source/blender/makesdna/intern/dna_genfile.c:146 #5 0x000002aa0005f67e in DNA_sdna_from_data (data=<optimized out>, do_endian_swap=false, data_alloc=false, r_error_message=<synthetic pointer>, data_len=103476) at /builddir/build/BUILD/blender-2.90.0/source/blender/makesdna/intern/dna_genfile.c:335 #6 RNA_create () at /builddir/build/BUILD/blender-2.90.0/source/blender/makesrna/intern/rna_define.c:708 #7 0x000002aa0005ab78 in rna_preprocess (outfile=0x3fffffff47c "/builddir/build/BUILD/blender-2.90.0/s390x-redhat-linux-gnu/source/blender/makesrna/intern/") at /builddir/build/BUILD/blender-2.90.0/source/blender/makesrna/intern/makesrna.c:5016 #8 0x000002aa0005442a in main (argc=<optimized out>, argv=0x3fffffff1a8) at /builddir/build/BUILD/blender-2.90.0/source/blender/makesrna/intern/makesrna.c:5174 (gdb)
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #7 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Bug report filed upstream https://developer.blender.org/T80639
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Luya Tshimbalanga luya_tfz@thefinalzone.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |ASSIGNED Flags| |needinfo?(dan@danny.cz)
--- Comment #8 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Upstream lacks the hardware and equipment to reproduce the issue. They suggested removing a line of code starting with "WITH_ASSERT_ABORT" by try taking out the abort by either removing the line of code or by turning the cmake option WITH_ASSERT_ABORT to off. Source code: https://developer.blender.org/diffusion/B/browse/master/intern/guardedalloc/...
I will suggest to get contact with upstream via the ticket report (see links attached on comment #7) considering your knowledge of s390x architecture.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Dan Horák dan@danny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(dan@danny.cz) |
--- Comment #9 from Dan Horák dan@danny.cz --- I have replied in the upstream ticket. Hopefully we can find a solution as blender would benefit from it, I believe.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #10 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Upstream closed the ticket because of the supported s390x. Feel free to work on a fix.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Fixed In Version| |blender-2.90.0-3.fc33 Resolution|--- |ERRATA Last Closed| |2020-09-25 16:48:42
--- Comment #11 from Fedora Update System updates@fedoraproject.org --- FEDORA-2020-a9c959e657 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Dan Horák dan@danny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ASSIGNED Resolution|ERRATA |--- Assignee|luya_tfz@thefinalzone.net |dan@danny.cz Keywords| |Reopened
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
--- Comment #12 from Fedora Update System updates@fedoraproject.org --- FEDORA-2020-e807be8b1d has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e807be8b1d
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #13 from Fedora Update System updates@fedoraproject.org --- FEDORA-2020-1aef1e9bca has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-1aef1e9bca
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #15 from Fedora Update System updates@fedoraproject.org --- FEDORA-2021-95e340dc3d has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-95e340dc3d
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #17 from Fedora Update System updates@fedoraproject.org --- FEDORA-2021-95e340dc3d has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-95e340dc3d` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-95e340dc3d
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #18 from Fedora Update System updates@fedoraproject.org --- FEDORA-2021-ec68aa382b has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-ec68aa382b` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-ec68aa382b
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version|blender-2.90.0-3.fc33 |blender-2.90.0-3.fc33 | |blender-2.93.0-1.fc33 Resolution|--- |ERRATA Last Closed|2020-09-25 16:48:42 |2021-06-13 01:19:47
--- Comment #19 from Fedora Update System updates@fedoraproject.org --- FEDORA-2021-ec68aa382b has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|blender-2.90.0-3.fc33 |blender-2.90.0-3.fc33 |blender-2.93.0-1.fc33 |blender-2.93.0-1.fc33 | |blender-2.93.0-1.fc34
--- Comment #20 from Fedora Update System updates@fedoraproject.org --- FEDORA-2021-95e340dc3d has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Mamoru TASAKA mtasaka@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mtasaka@fedoraproject.org Status|CLOSED |NEW Resolution|ERRATA |---
--- Comment #21 from Mamoru TASAKA mtasaka@fedoraproject.org --- Reopening.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #22 from Mamoru TASAKA mtasaka@fedoraproject.org --- See:
https://developer.blender.org/T93425 https://src.fedoraproject.org/rpms/blender/pull-request/9
scratch build is ongoing: https://koji.fedoraproject.org/koji/taskinfo?taskID=79321801
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #23 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Thank you for the fix. The patch also works for the incoming blender 2.93.6 as tested on scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=79329128
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
Mamoru TASAKA mtasaka@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|blender-2.90.0-3.fc33 |blender-2.93.6-1.fc36 |blender-2.93.0-1.fc33 | |blender-2.93.0-1.fc34 | Resolution|--- |RAWHIDE Status|NEW |CLOSED Last Closed|2021-06-13 01:19:47 |2021-11-30 13:18:18
--- Comment #24 from Mamoru TASAKA mtasaka@fedoraproject.org --- Now this is really fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=1874398
--- Comment #25 from Dan Horák dan@danny.cz --- Thanks a lot, Mamoru.
design-devel@lists.fedoraproject.org