Announcement

Collapse
No announcement yet.

valgrind sucks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    The official compiler on AIX these days is xlc for C, xlC for C++.

    gcc is supported but only if you go get the ****er yourself.
    "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
    Ben Kenobi: "That means I'm doing something right. "

    Comment


    • #17
      Note xlc/xlC costs $3600 USD to buy. You pay a pretty penny for it to tell you your code is stupid.
      "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
      Ben Kenobi: "That means I'm doing something right. "

      Comment


      • #18
        Sorry for not remembering the right name - it's some 10 years since I had the "pleasure" to battle that stupid system
        With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion.

        Steven Weinberg

        Comment


        • #19
          Bad code. Both the C/C++ Standards demand main() have a return type.


          Comment


          • #20
            Originally posted by Kuciwalker View Post
            Bad code. Both the C/C++ Standards demand main() have a return type.


            I am very serious.
            "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
            Ben Kenobi: "That means I'm doing something right. "

            Comment


            • #21
              Originally posted by BlackCat View Post
              Sorry for not remembering the right name - it's some 10 years since I had the "pleasure" to battle that stupid system
              Fact: xlc/xlC are the fastest C/C++ compilers in the world. They smoke gcc so bad it's not even funny.
              "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
              Ben Kenobi: "That means I'm doing something right. "

              Comment


              • #22
                Originally posted by Asher View Post
                Note xlc/xlC costs $3600 USD to buy. You pay a pretty penny for it to tell you your code is stupid.
                Well, they may have improved, but I had a program that I could compile and run on a nuber of unix flavors except AIX. It compiled fine without warns but crashed before main.
                With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion.

                Steven Weinberg

                Comment


                • #23
                  As promised last week, I have here some benchmarks that compare the performance of double-precision floating point operations between a PowerMac (2.5 GHz G5), a PlayStation 3 (3.2 GHz Cell) and a Mac Pro (2.66 GHz Xeon). The PowerMac and Mac Pro are running Mac OS X Tiger. The PS3 is running Yellow Dog Linux 5.0. The
                  "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                  Ben Kenobi: "That means I'm doing something right. "

                  Comment


                  • #24
                    Originally posted by BlackCat View Post
                    Well, they may have improved, but I had a program that I could compile and run on a nuber of unix flavors except AIX. It compiled fine without warns but crashed before main.
                    Post 2001 or so they became very anal about standards compliance.
                    "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                    Ben Kenobi: "That means I'm doing something right. "

                    Comment


                    • #25
                      Could explain it - we scrapped our last AIX before 2000.

                      Though, it still pisses me off that it crash before main - makes it kinda problematic to debug .
                      With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion.

                      Steven Weinberg

                      Comment


                      • #26
                        Code:
                        main ()
                        {
                        	struct sembuf sbuf;
                        	int semid;
                        
                        	semid = semget(KEY, 1, IPC_CREAT | IPC_EXCL | 0777);
                        	printf("semid = %d\n", semid);
                        
                        	semctl(semid, 0, SETVAL, 0);
                        
                        	semctl(semid, 0, IPC_RMID);
                        	puts("destroyed semid");
                        }
                        This results in no valgrind errors. But the following does:

                        Code:
                        main ()
                        {
                        	struct sembuf sbuf;
                        	int semid;
                        	int r;
                        
                        	semid = semget(KEY, 1, IPC_CREAT | IPC_EXCL | 0777);
                        	printf("semid = %d\n", semid);
                        
                        	r = semctl(semid, 0, SETVAL, 0);
                        	printf("initialized semid = %d\n", r);
                        
                        	semctl(semid, 0, IPC_RMID);
                        	puts("destroyed semid");
                        }
                        Code:
                        ==13830== Syscall param semctl(arg) points to uninitialised byte(s)
                        ==13830==    at 0xB8AA08: semctl@@GLIBC_2.2 (in /lib/tls/libc-2.3.4.so)
                        ==13830==    by 0x804849E: main (in /home/a0132838/play/semtest)
                        ==13830==  Address 0xBEE123D4 is on thread 1's stack
                        What the fvck.

                        Comment


                        • #27
                          Never used this lib.
                          "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                          Ben Kenobi: "That means I'm doing something right. "

                          Comment


                          • #28
                            Valgrind likes to tease Kuci
                            With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion.

                            Steven Weinberg

                            Comment


                            • #29
                              xpost

                              Be glad. I'm tempted to take the codebase I'm working with and just migrate it wholesale to named semaphores in semaphore.h. sys/sem.h dates back to 1983.

                              Comment


                              • #30
                                You have never found a compiler bug before?

                                JM
                                Jon Miller-
                                I AM.CANADIAN
                                GENERATION 35: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

                                Comment

                                Working...
                                X