
Hi Andrzej,
On Mon, 1 Apr 2019 at 08:26, Witkowski, Andrzej andrzej.witkowski@intel.com wrote:
Hi,
I’m SW Developer at Intel, Poland.
I try to enable tracing in u-boot to see how it works.
I follow the procedure described in “doc/README.trace” file.
Unfortunately, I always receive segmentation fault.
I compile and run u-boot on my development machine with Fedora 28.
- for the latest u-boot code on master branch I receive segmentation fault (refer to latest_u-boot_master_branch.log in attachment)
After setting CONFIG_TRACE_EARLY_SIZE to 8725512 in “include/configs/sandbox.h” file, I receive different segmentation fault (refer to latest_u-boot_maseter_branch_1.log in attachment).
What I do wrong?
(Please always send emails to the mailing list - it is OK to cc me but it should go to this list. In this instance I'm copying the list in the reply.)
I found that the early console conflicts with the early trace buffer, which causes the segfault. Also the early trace buffer as given in sandbox.h is too small (although you got around that one).
I've sent some patches to fix this and a few other things I think could be improved. Thanks for the report.
Regards, Simon
Andrzej Witkowski
NSG Poland
Host Storage SW & FW Development
Intel Technology Poland
ul. Slowackiego 173
80-298 Gdansk
Poland
Intel Technology Poland sp. z o.o. ul. Słowackiego 173 | 80-298 Gdańsk | Sąd Rejonowy Gdańsk Północ | VII Wydział Gospodarczy Krajowego Rejestru Sądowego - KRS 101882 | NIP 957-07-52-316 | Kapitał zakładowy 200.000 PLN.
Ta wiadomość wraz z załącznikami jest przeznaczona dla określonego adresata i może zawierać informacje poufne. W razie przypadkowego otrzymania tej wiadomości, prosimy o powiadomienie nadawcy oraz trwałe jej usunięcie; jakiekolwiek przeglądanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.