« first day (297 days earlier)      last day (2780 days later) » 

03:05
Hello, can somone help me please? I need a c++ executable for Linux x86_64 that does only on thing: attempt to return the value at 0xffffffffffffffff and crash straight away. The problem is I do not have access to a computer where I can install compiler and I fail to find a web service that allow to download executables.
your motive seems to be dodgy
@user2284570 okay sure one sec
I need to test the handling of crashing in bash script, but I have no crashing program.
I can only access to a phone.
5 messages moved from Lounge<C++>
@Mikhail is it still ok?
03:19
Does that work?
else you don't get the crash
@user2284570 ufile.io/fdjz7
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/5.4.0/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/5.4.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/5.4.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.4.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.4.0/man --infodir=/usr/share/gcc-data/x86_64-pc-lin
@Mikhail I do not have a linker.
I cannot create executables.
its an exe
you just download it
@Mikhail I also said I was needing a x86_64 Linux executable
Target: x86_64-pc-linux-gnu
crash_o_matic.exe: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped
@Mikhail but because of the extension chromium refuse to download it.
03:30
@user2284570 ufile.io/1ohmd
Here its now a tar
@Mikhail thank you, it crash.
 
4 hours later…
07:19
struct dirent {
               ino_t          d_ino;       /* Inode number */
               off_t          d_off;       /* Not an offset; see below */
               unsigned short d_reclen;    /* Length of this record */
               unsigned char  d_type;      /* Type of file; not supported
                                              by all filesystem types */
               char           d_name[256]; /* Null-terminated filename */
           };
I have this structure. When I use cout to print directory name I get some weird unicode characters but printf does it fine. cout supports C strings then why?
std::cout supports them, so you're doing something else wrong
also I would strongly encourage you do change that to std::wstring
no. That structure is a structure in dirent.h
I just created object (pointer) to it and pointed to d_name
 
3 hours later…
10:31
So I have this code:

int * v4 = scanf("%s");
func1();
if (v4 != (int *)1) {
printf("Wrong!");
}
by my understanding, there is no situation where v4 != 1, so it shouldn't go into the if. But it does, so does func1() have effect on v4 although not in the same scope?
nwp
nwp
@Phantom None of this makes any sense. scanf returns an int, the second argument for scanf is missing and it can totally return 0 if reading the string failed.
undefined behavior is undefined, trying to reason about it is foolish
It isn't really a scanf. More likely vfscanf. This is decompiled code, I need to reverse engineer it. Here's the real (not scanf) function: pastebin.com/wMFDX1cR
 
3 hours later…
13:39
hi there
@milleniumbug I know what caused the error:
int main() {
    std::mutex m;
    std::unique_lock<std::mutex> l; // error: no argument given in the constructor!
    l.lock();
    if (true) {
        l.unlock();
    }

    return 0;
}
how do you expect l to know what mutex to lock?
@ratchetfreak I don't know. I just forgot about it somehow :P Now it's fixed!
nwp
nwp
should have been easy to debug since l.lock() throws an exception in this case
 
7 hours later…
jrh
jrh
21:12
Does anybody know offhand where I can get the sample code for the book Inside COM?
I ordered the book used and the CD was unreadable by the time I got it. The author doesn't seem to have a personal website, facebook, twitter, etc. or any MS e-mail I could find.
Umm, there is an Inside COM+ book
jrh
jrh
ah rats this is probably another Q/A thing, I forgot there's a separate room for that
4 messages moved from Lounge<C++>
jrh
jrh
thanks
have you tried checking their official website, if they have one?
that's where I would look first
jrh
jrh
21:16
redirects to a generic Microsoft Learning site that doesn't have books older than 2010-ish
or at least it didn't have the MFC companion CD when I looked a while ago
jrh
jrh
21:28
It looks like Microsoft never put the CDs on their website, and you just needed to write them to replace it, but then again this archive is from 2001 so maybe that changed at some point web-beta.archive.org/web/20011206101738/http://…

« first day (297 days earlier)      last day (2780 days later) »