Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space INSDEVEL and version 2021.1

...

This produces the following output:

Code Block
languagetext
titleOutput for Windows
[strsort.c:15] **READ_NULL**
>> 			if(dir * strcmp(a[j-1], a[j]) > 0) {

   Reading null pointer: <argument 2>

   Stack trace where the error occurred:
			  	  strcmp() (interface)
			 bubble_sort() strsort.c, 15
					main() strsort.c, 41

**Memory corrupted. Program may crash!!**

**Insure trapped exception: 0xc0000005**

  Stack trace where the error occurred:
				  strcmp() (interface)
 strsort.exe bubble_sort() strsort.c, 15
	    strsort.exe main() strsort.c, 41
Access violation
Code Block
languagetext
titleOutput for Unix
[strsort.c:15] **READ_NULL**
>> 			if(dir * strcmp(a[j-1], a[j]) > 0) {

   Reading null pointer: <argument 2>

   Stack trace where the error occurred:
			  	  strcmp() (interface)
			 bubble_sort() strsort.c, 15
					main() strsort.c, 41

**Memory corrupted. Program may crash!!**

**Insure trapped signal: 11**

   Stack trace where the error occurred:
				  strcmp() ../sysdeps/generic/strcmp.c, 39
				  strcmp() (interface)
			 bubble_sort() strsort.c, 15
					main() strsort.c, 41
Segmentation violation
Abort (core dumped)
Exit 134

...