[Bug] Nullpointer Exception in of_diff

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Jun 12 07:50:24 PDT 2023


Hello Johannes,

On 12.06.23 16:26, Johannes Zink wrote:
> Hi,
> 
> I observed a Nullpointer Exception in barebox barebox 2023.05.0 on a Rock3a when calling
> 
> of_diff . .

This should be already fixed in next. You can ask Sascha to pick
"commands: of_diff: simplify error handling" to master if that
fixes your issue.

> on the shell. Please find the complete dump below:

[snip]

> The behaviour is stable and reproducable on a Rock3A, probably also on other boards. Maybe someone of the more experienced barebox devs already has an idea what's going wrong here and wants to have a closer look, otherwise I'd probably give it a shot within the next few days (and if I manage to find some spare time...)

You can pipe barebox crash logs into Linux scripts/decode_stacktrace.sh
to get line numbers (don't forget to set ARCH/CROSS_COMPILE).
Enabling CONFIG_KASAN=y can also be very useful to pinpoint the origin
of memory corruptions.

Cheers,
Ahmad

> 
> Best regards
> Johannes
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list