#144 closed defect (fixed)
Aliases with undefined particle sets cause segfaults
Reported by: | Christian Speckner | Owned by: | kilian |
---|---|---|---|
Priority: | P1 | Milestone: | |
Component: | core | Version: | 2.0.0rc1 |
Severity: | minor | Keywords: | |
Cc: |
Description
Using an alias containing an undefined particle class in cuts causes an segfault once the integration starts. Testcase to reproduce:
model = SM alias visible = charged:hup process test = "e+", "e-" -> "W+", "W-" compile sqrts = 500 cuts = all -0.9 < cos (Theta) < 0.9 [visible] integrate (test)
Backtrace:
#0 0xb7e0d53a in __pdg_arrays_MOD_pdg_array_match_integer () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #1 0xb7e0edc2 in __prt_lists_MOD_prt_list_select_pdg_code () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #2 0xb7e1f244 in __expressions_MOD_select_pdg_ca () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #3 0xb7e23894 in __expressions_MOD_eval_node_evaluate () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #4 0xb7e232e1 in __expressions_MOD_eval_node_evaluate () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #5 0xb7e26ac4 in __expressions_MOD_eval_tree_evaluate () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #6 0xb7ef4a60 in __processes_MOD_process_passes_cuts () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #7 0xb7ef5560 in __processes_MOD_sample_function () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #8 0xb7f7e0fd in __vamp_rest_MOD_vamp_sample_grid0 () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #9 0xb7f85aed in __vamp_rest_MOD_vamp_sample_grids () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #10 0xb7f08716 in __processes_MOD_process_integrate () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #11 0xb7f49965 in __commands_MOD_cmd_integrate_execute () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #12 0xb7f45e67 in __commands_MOD_command_execute () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #13 0xb7f45ed2 in __commands_MOD_command_list_execute () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #14 0xb7f4e51d in __whizard_MOD_whizard_process_stream () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #15 0xb7f4f136 in __whizard_MOD_whizard_process_file () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard.so.0 #16 0xb7fd03b7 in MAIN__ () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard_main.so.0 #17 0xb7fd0a12 in main () from /home/pestix/physik/svn/whiz_trunk/trunk/install/lib/whizard/libwhizard_main.so.0 #18 0x7ade8a51 in __libc_start_main () from /lib/libc.so.6 #19 0x08048511 in _start ()
Change History (3)
comment:1 Changed 15 years ago by
Priority: | P4 → P1 |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The program correctly issued an error when the unitialized variable 'hup' was encountered.
This is categorized as an ordinary error, so the program continues. In r1580 I added the code that avoids segfaults; the uninitialized variable is treated as an empty variable. However, the error should have told the user that something was wrong with the input.