Problem with longjmp on Pi Zero W - Raspberry Pi Forums


i've got issue using longjmp statement on pi 0 w.

code uses longjmp part of error handling of user input restart program logic. large program has been ported pic32 , works there , works on pi 3.

there single error reporting routine prints error message , executes longjmp. routine called total of 660 places in code!

on pi 0 w of calls work calls specific routines print error message (but delay) , pi locks , won't respond (e.g. attempt open new session) , need power cycled recover. there no signal generated.

problem occurs under both jessie lite , stretch lite , specific pi 0 above same code works on pi 3.

development done netbeans / gcc , makes no difference whether use pi 0 or pi 3 build host.

, ideas appreciated

just very long shot, have "-wclobbered" enabled?

-wclobbered
warn variables might changed "longjmp" or "vfork". warning enabled -wextra.


raspberrypi



Comments

Popular posts from this blog

Help with Missing Filename Error?

more info - Joomla! Forum - community, help and support

Using phone battery to power a plane.