3308 static const CPUArchIdList *spapr_possible_cpu_arch_ids(MachineState *machine) 3309 { 3310 int i; 3311 int spapr_max_cores = max_cpus / smp_threads; <<<<<< max_cpus is -ve and spapr_max_cores will also be -ve
...
3321 3322 machine->possible_cpus = g_malloc0(sizeof(CPUArchIdList) + 3323 sizeof(CPUArchId) * spapr_max_cores);
g_malloc0(is getting a -ve value) and then fails with a trap.
3308 static const CPUArchIdList *spapr_ possible_ cpu_arch_ ids(MachineStat e *machine)
3309 {
3310 int i;
3311 int spapr_max_cores = max_cpus / smp_threads; <<<<<< max_cpus is -ve and spapr_max_cores will also be -ve
...
3321 >possible_ cpus = g_malloc0( sizeof( CPUArchIdList) +
3322 machine-
3323 sizeof(CPUArchId) * spapr_max_cores);
g_malloc0(is getting a -ve value) and then fails with a trap.