Skip to contentSkip to conversation

Using SmPL script to switch to formatted log/print function

Cocci Markus Elfring 2 participants 3 messages Mar 28, 2020

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

I have this all working with the following script with the caveat that running it on moderately complicated source files makes it never finish (after an hour or so the spatch process crashes with a stack overflow error).

Do you find any information interesting from a previous bug report?
https://github.com/coccinelle/coccinelle/issues/30

Quoted 2 lines

Any suggestions on changes to my script that would make this work on lengthy source files would be greatly appreciated!

Additional adjustments can be considered for transformation approaches.

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

#1 lore raw
Quoted 7 lines · Markus Elfring
Quoted 4 lines

I have this all working with the following script with the caveat that running it on moderately complicated source files makes it never finish (after an hour or so the spatch process crashes with a stack overflow error).

Do you find any information interesting from a previous bug report?
https://github.com/coccinelle/coccinelle/issues/30

This discussion is about parsing the source code.

George, if you still get a stack overflow, you could try spatch -parse-c . but that would be disjoint from the problems with the semantic patch.

julia

Quoted 5 lines
Quoted 4 lines

Any suggestions on changes to my script that would make this work on lengthy source files would be greatly appreciated!

Quoted 9 lines

Additional adjustments can be considered for transformation approaches.

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci